*** niemeyer has quit IRC | 00:19 | |
*** srichter has quit IRC | 00:26 | |
*** jbb666 has quit IRC | 00:28 | |
*** jhauser has quit IRC | 00:29 | |
*** MrTopf has quit IRC | 00:35 | |
*** bskahan has quit IRC | 00:42 | |
*** bskahan has joined #zope3-dev | 00:43 | |
*** yota has quit IRC | 00:44 | |
*** hazmat has joined #zope3-dev | 00:46 | |
*** srichter has joined #zope3-dev | 00:54 | |
*** bskahan has quit IRC | 01:08 | |
*** alga has quit IRC | 01:10 | |
*** GaryPoster has quit IRC | 01:23 | |
*** mohsen has joined #zope3-dev | 01:52 | |
*** ChanServ sets mode: +o srichter | 01:52 | |
*** ChanServ sets mode: +o hazmat | 02:20 | |
*** `anthony has joined #zope3-dev | 02:28 | |
*** mohsen has quit IRC | 02:50 | |
*** efge has quit IRC | 03:19 | |
srichter | hey, does anyone know a resource that provides a good algorithm to calculate the next occurrence of an event based on cron-like data? | 03:20 |
---|---|---|
srichter | hazmat: do you know any? | 03:20 |
*** bradb has joined #zope3-dev | 03:55 | |
*** projekt01 has quit IRC | 04:07 | |
*** hazmat has quit IRC | 04:49 | |
*** BjornT has joined #zope3-dev | 04:56 | |
*** povbot has joined #zope3-dev | 05:02 | |
*** BjornT has quit IRC | 05:05 | |
*** BjornT has joined #zope3-dev | 05:07 | |
*** mp has quit IRC | 05:08 | |
*** mp has joined #zope3-dev | 05:08 | |
*** `anthony has quit IRC | 05:11 | |
*** d2m has quit IRC | 05:11 | |
*** MalcolmC has quit IRC | 05:11 | |
*** Damascene has quit IRC | 05:11 | |
*** vinsci has quit IRC | 05:11 | |
*** d2m has joined #zope3-dev | 05:13 | |
*** `anthony has joined #zope3-dev | 05:13 | |
*** MalcolmC has joined #zope3-dev | 05:13 | |
*** Damascene has joined #zope3-dev | 05:13 | |
*** vinsci has joined #zope3-dev | 05:13 | |
*** Damascene has quit IRC | 05:19 | |
*** MalcolmC has quit IRC | 05:19 | |
*** `anthony has quit IRC | 05:19 | |
*** d2m has quit IRC | 05:19 | |
*** vinsci has quit IRC | 05:19 | |
*** tvon has quit IRC | 05:19 | |
*** vinsci has joined #zope3-dev | 05:20 | |
*** Damascene has joined #zope3-dev | 05:20 | |
*** MalcolmC has joined #zope3-dev | 05:20 | |
*** `anthony has joined #zope3-dev | 05:20 | |
*** d2m has joined #zope3-dev | 05:20 | |
*** tvon has joined #zope3-dev | 05:20 | |
*** tvon|desk has quit IRC | 05:20 | |
*** VladDrac has quit IRC | 05:20 | |
*** jack-e|away has quit IRC | 05:20 | |
*** tvon|desk has joined #zope3-dev | 05:22 | |
*** VladDrac has joined #zope3-dev | 05:22 | |
*** jack-e|away has joined #zope3-dev | 05:22 | |
*** Jim7J1AJH has quit IRC | 05:22 | |
*** Jim7J1AJH has joined #zope3-dev | 05:23 | |
*** RaFromBRC|mtg is now known as RaFromBRC | 05:39 | |
*** hazmat has joined #zope3-dev | 06:00 | |
*** BjornT has quit IRC | 06:28 | |
*** bradb has quit IRC | 06:47 | |
*** `anthony has quit IRC | 06:52 | |
*** mohsen|away has quit IRC | 07:19 | |
*** `anthony has joined #zope3-dev | 08:01 | |
*** viyyer has joined #zope3-dev | 08:12 | |
*** zagy has joined #zope3-dev | 08:51 | |
*** BjornT has joined #zope3-dev | 08:57 | |
*** hdima has joined #zope3-dev | 09:17 | |
*** MacYET has joined #zope3-dev | 09:19 | |
*** Theuni has joined #zope3-dev | 09:21 | |
*** hazmat has quit IRC | 09:23 | |
*** d2m has quit IRC | 09:48 | |
*** yota has joined #zope3-dev | 09:55 | |
*** sashav has joined #zope3-dev | 10:00 | |
*** alga has joined #zope3-dev | 10:08 | |
*** BjornT has quit IRC | 10:15 | |
*** sashav has quit IRC | 10:21 | |
*** lunatik has joined #zope3-dev | 10:23 | |
*** alga has quit IRC | 10:23 | |
*** BjornT has joined #zope3-dev | 10:24 | |
*** sashav has joined #zope3-dev | 10:29 | |
*** MrTopf has joined #zope3-dev | 10:34 | |
*** RaFromBRC is now known as RaFromBRC|zZz | 10:47 | |
*** lunatik has left #zope3-dev | 10:51 | |
*** RaFromBRC|zZz has quit IRC | 10:53 | |
*** ignas has joined #zope3-dev | 10:59 | |
* MacYET is away: troll hunting | 11:01 | |
*** projekt01 has joined #zope3-dev | 11:11 | |
*** Theuni has quit IRC | 11:44 | |
*** Theuni has joined #zope3-dev | 11:46 | |
*** d2m has joined #zope3-dev | 12:11 | |
VladDrac | philikon around? | 12:36 |
*** regebro has joined #zope3-dev | 12:50 | |
*** BjornT has quit IRC | 13:03 | |
*** MacYET has quit IRC | 13:06 | |
*** MacYET has joined #zope3-dev | 13:12 | |
* VladDrac 's trying to do a bit of skin customization as described in phil's book | 13:16 | |
VladDrac | now I have a broken contents.html | 13:16 |
VladDrac | (it displays a table with 'content thingy' | 13:19 |
VladDrac | ah, forgot the body slot | 13:23 |
*** [apoirier] has joined #zope3-dev | 13:24 | |
*** tvon has quit IRC | 13:24 | |
VladDrac | I wonder why I explicitly have to redefine an empty body slot | 13:25 |
*** tvon|desk has quit IRC | 13:26 | |
*** tvon|desk has joined #zope3-dev | 13:35 | |
*** tvon has joined #zope3-dev | 13:35 | |
*** faassen has joined #zope3-dev | 13:36 | |
*** `anthony has quit IRC | 13:46 | |
*** bskahan has joined #zope3-dev | 13:54 | |
philiKON | VladDrac, i'm here now | 14:02 |
philiKON | you have to re-define every slot when re-using a macro, unfortunately | 14:03 |
MacYET | morninkon | 14:03 |
VladDrac | phil: I mailed you a smal error in your book (and some remarks in general yesterday) | 14:05 |
philiKON | yes, i saw that. thank you | 14:05 |
VladDrac | phil: but the page macro has alot more slots that are not redefined, correct? | 14:05 |
philiKON | yes | 14:06 |
philiKON | i left them out for brevity | 14:06 |
VladDrac | ok | 14:06 |
VladDrac | then everything makes sense again | 14:06 |
philiKON | rotterdam is really not the ideal basis for skin customization | 14:07 |
jpfarias|work | [philiKON] hey, can you tell me more about web development with zope on filesystem | 14:09 |
jpfarias|work | and not on web forms | 14:09 |
jpfarias|work | ? | 14:09 |
jpfarias|work | is there some good tutorial for that? | 14:09 |
philiKON | yes | 14:09 |
philiKON | the programmer tutorial | 14:09 |
philiKON | http://www.zope.org/Zope3/ProgrammerTutorial | 14:10 |
jpfarias|work | about the buddy? | 14:10 |
philiKON | yes | 14:10 |
jpfarias|work | cool | 14:10 |
jpfarias|work | is there some other showing how to use relational databases? | 14:10 |
philiKON | no, unfortunately not | 14:11 |
jpfarias|work | and the ZODB? | 14:11 |
philiKON | but look at http://codespeak.net/z3/sqlos | 14:11 |
philiKON | the programmer tutorial explains the zodb | 14:11 |
jpfarias|work | nice | 14:11 |
philiKON | you might not notice because using the zodb is pretty much transparent | 14:11 |
jpfarias|work | I would like to see some database aware tutorial | 14:12 |
jpfarias|work | like for an e-commerce or something like that | 14:12 |
philiKON | well, sorry, there isn't... but you could write one :) | 14:12 |
jpfarias|work | =P | 14:12 |
philiKON | if you're looking for a more in-depth documentation, see http://worldcookery.com | 14:13 |
jpfarias|work | first I need to learn zope | 14:13 |
jpfarias|work | =D | 14:13 |
philiKON | it has a whole chapter about the zodb | 14:15 |
VladDrac | drop the color crap, please | 14:16 |
jpfarias|work | what's the src dir the programmer tutorial talks about? | 14:25 |
*** MrTopf has quit IRC | 14:25 | |
philiKON | jpfarias|work, it talks about a checkout | 14:25 |
jpfarias|work | I have no src dir on my zope instance tree? | 14:25 |
jpfarias|work | I have no src dir on my zope instance tree... | 14:25 |
philiKON | jpfarias|work, right, in an instance, you have lib/python | 14:25 |
jpfarias|work | hmm, ok | 14:26 |
jpfarias|work | can I create the package direct there? | 14:26 |
philiKON | yes | 14:26 |
jpfarias|work | cool | 14:26 |
jpfarias|work | another question | 14:26 |
jpfarias|work | should I restart zope every time I change things? | 14:27 |
philiKON | yup | 14:28 |
philiKON | well, page templates you can change w/o restarting zope | 14:28 |
jpfarias|work | I see... I need a restart only when I change the source of some package, right? | 14:28 |
philiKON | and the zcml configuration | 14:29 |
jpfarias|work | ok | 14:29 |
*** srichter has quit IRC | 14:37 | |
*** anguenot has joined #zope3-dev | 14:48 | |
*** srichter has joined #zope3-dev | 15:19 | |
*** ChanServ sets mode: +o srichter | 15:20 | |
VladDrac | phil: al zpt's always reloaded? Plone/CMF only does this in debug mode | 15:26 |
philiKON | this is not zope2 :) | 15:26 |
VladDrac | I know :) | 15:26 |
philiKON | z3 doesn't have a debug mode | 15:27 |
VladDrac | is a skin a utility that implements ISkin? | 15:27 |
VladDrac | if I want to change the skin by default (without override.zcml), can I register my skin as a utility? | 15:27 |
philiKON | in X3.0, skins are managed by the presentation service | 15:28 |
philiKON | as well as skin layers | 15:28 |
philiKON | they're not utilities | 15:28 |
philiKON | in 3.1 and onwards, skins and layers are interfaces | 15:28 |
philiKON | extending IBrowserRequest | 15:29 |
VladDrac | ok, I'm trying to understand what skin = zope.component.getUtility(ISkin, 'Debug') does | 15:29 |
philiKON | and the request is made to provide a certain skin interface | 15:29 |
philiKON | VladDrac, that's code from the trunk | 15:30 |
philiKON | the skin interfaces are also registered as utilities | 15:30 |
philiKON | utilities providing ISkin (which is an interface extending IInterface) | 15:30 |
philiKON | sort of like IContentType | 15:31 |
VladDrac | but what kind of utility do you end up with? What utility implements this interface? | 15:33 |
VladDrac | (I'm actually just trying to switch skins in my site in stead of globally) | 15:34 |
philiKON | you end up with an interface | 15:34 |
*** __gotcha_ has joined #zope3-dev | 15:48 | |
*** __gotcha_ is now known as __gotcha | 15:48 | |
*** regebro has quit IRC | 15:49 | |
*** MrTopf has joined #zope3-dev | 15:51 | |
*** tvon|desk has quit IRC | 15:56 | |
*** philiKON has quit IRC | 15:56 | |
*** tvon|desk has joined #zope3-dev | 15:57 | |
*** philiKON has joined #zope3-dev | 15:58 | |
*** lunatik has joined #zope3-dev | 16:00 | |
*** lunatik has left #zope3-dev | 16:02 | |
VladDrac | anyway, any hints on how I can force a skin to be used within my site? | 16:04 |
philiKON | VladDrac, are you using trunk or x3.0? | 16:05 |
VladDrac | trunk | 16:05 |
philiKON | so, write a traversal adapter that does alsoProvides(request, IMySkinInterface) for your site | 16:06 |
VladDrac | hmm | 16:07 |
*** bska|mobile has joined #zope3-dev | 16:08 | |
*** bskahan has quit IRC | 16:13 | |
VladDrac | ok | 16:24 |
VladDrac | time to test | 16:24 |
VladDrac | wonder if it'll work :) | 16:24 |
srichter | actually this is not the best way | 16:25 |
srichter | there is an API function for this | 16:25 |
philiKON | ah, true | 16:25 |
philiKON | setSkin or somethign, right? | 16:25 |
srichter | because you have to remove the old skin from the request as well | 16:25 |
srichter | yep | 16:25 |
philiKON | is this in zapi? | 16:25 |
philiKON | (if not, it maybe should be) | 16:25 |
*** alga has joined #zope3-dev | 16:25 | |
srichter | not sure | 16:25 |
VladDrac | I'm using applySkin | 16:25 |
srichter | I think it is in zope.app.publisher.browser | 16:25 |
philiKON | right, that's the one | 16:25 |
VladDrac | but I still have to 'hook' it somewhere in the traversing | 16:25 |
philiKON | right, in a traversal adapter | 16:26 |
VladDrac | ITraversable? | 16:26 |
philiKON | yup | 16:26 |
MacYET | re | 16:26 |
philiKON | actually | 16:27 |
philiKON | there's a browser traverser too i think | 16:27 |
VladDrac | My ITraversable.traverse doesn't work (not called) | 16:28 |
philiKON | how did you register it? | 16:29 |
VladDrac | <adapter | 16:29 |
VladDrac | for=".interfaces.ICubicPortal" | 16:29 |
VladDrac | provides="zope.app.traversing.interfaces.ITraversable" | 16:29 |
VladDrac | factory=".traversable.SkinChanger" | 16:29 |
VladDrac | /> | 16:29 |
VladDrac | (yeah naming needs work :) | 16:30 |
philiKON | actually, ITraversable is the wrong interface | 16:30 |
philiKON | i just noticed | 16:30 |
philiKON | it's not even about the request | 16:30 |
philiKON | i think zope.publisher.interfaces.browser.IBrowserPublisher is the right one | 16:31 |
philiKON | checking... | 16:31 |
philiKON | VladDrac, look at zwiki | 16:32 |
philiKON | VladDrac, zwiki.traversal | 16:33 |
VladDrac | ah ok good tip | 16:33 |
philiKON | VladDrac, you only want the WikiPageTraverser | 16:33 |
philiKON | the first class | 16:33 |
philiKON | the thing is registered for the browser request in zwiki.browser/configure.zcml | 16:34 |
VladDrac | hmmm | 16:51 |
VladDrac | still not called (adapter doesn't get created either) | 16:51 |
*** hdima has quit IRC | 16:52 | |
* VladDrac 's introspecting | 16:55 | |
VladDrac | it has the adapter registered as a view | 16:56 |
*** sashav has quit IRC | 17:02 | |
VladDrac | hmmm | 17:10 |
philiKON | VladDrac, views == adapters | 17:10 |
VladDrac | I know | 17:12 |
VladDrac | my adapter only works for standard traversal, not when traversing @@views | 17:13 |
philiKON | you could also write your own ++view++ traversal namespace adapter | 17:14 |
*** GaryPoster has joined #zope3-dev | 17:16 | |
* VladDrac sobs softly.. all I wanted was to set a skin :( | 17:17 | |
*** SureshZ has joined #zope3-dev | 17:21 | |
VladDrac | hurray! | 17:27 |
VladDrac | long live IBeforeTraverseEvent :) | 17:27 |
*** mexiKON has joined #zope3-dev | 17:32 | |
*** tvon has quit IRC | 17:32 | |
VladDrac | mexikon == philikon? | 17:34 |
VladDrac | anyway in case you missed it, subscribing to IBeforeTraverseEvent and setting the skin from there seems to work well | 17:35 |
MacYET | chilikon: i checked your i18n stuff in five | 17:35 |
MacYET | too z3-ish :) | 17:35 |
*** philiKON has quit IRC | 17:43 | |
mexiKON | VladDrac, ah, cool. i think that event is new | 17:57 |
srichter | VladDrac: yeah, this is what I did in my skin preference demo as well | 17:57 |
mexiKON | MacYET, not sure what you mean by that. after all, i *am* using z3's i18n facilities | 17:58 |
*** __gotcha has quit IRC | 17:59 | |
*** __gotcha has joined #zope3-dev | 18:00 | |
MacYET | it depends on too much z3 apis ...just too much for us:-) we are trying to reduce the number of modules and not to increase them :) | 18:00 |
mexiKON | well, the code in that branch exercise the minimal i18n stuff zope3 has | 18:01 |
mexiKON | if that is too much z3 api for you, i don't know what to say | 18:02 |
mexiKON | i don't think you're gonna find something as simple as | 18:02 |
mexiKON | util = zapi.queryUtility(ITranslationDomain, domain) | 18:02 |
mexiKON | anywhere else | 18:02 |
MacYET | i don't need z3 interfaces :) | 18:04 |
MacYET | toomuch overhead | 18:04 |
srichter | and why are you using five then? :-) | 18:05 |
MacYET | srichter: that's another project :) | 18:05 |
srichter | oh, I see! :-) | 18:05 |
mexiKON | ok, if you want i18n w/o interfaces, use PTS or something. | 18:05 |
srichter | localizer.... | 18:06 |
MacYET | wrote my own thing already :9 | 18:07 |
mexiKON | oh well, if that suits you | 18:08 |
MacYET | one module to load.. | 18:10 |
MacYET | instead of 20 or so | 18:10 |
*** __gotcha has quit IRC | 18:14 | |
*** zagy has quit IRC | 18:39 | |
*** viyyer has quit IRC | 19:06 | |
*** mgedmin has joined #zope3-dev | 19:09 | |
*** MrTopf has quit IRC | 19:25 | |
*** mp has quit IRC | 19:47 | |
*** MacYET has quit IRC | 19:48 | |
*** faassen has left #zope3-dev | 20:56 | |
*** bska|mobile has quit IRC | 21:01 | |
*** alga has quit IRC | 21:14 | |
*** RaFromBRC has joined #zope3-dev | 21:30 | |
*** tvon has joined #zope3-dev | 21:46 | |
*** ignas has quit IRC | 21:47 | |
*** [apoirier] has quit IRC | 21:49 | |
*** MrTopf has joined #zope3-dev | 22:05 | |
*** bskahan has joined #zope3-dev | 22:07 | |
*** mgedmin has quit IRC | 22:12 | |
*** d2m has quit IRC | 22:15 | |
*** zagy has joined #zope3-dev | 22:18 | |
*** bskahan has quit IRC | 22:34 | |
*** juka has joined #zope3-dev | 22:41 | |
*** juka has left #zope3-dev | 22:46 | |
*** srichter has quit IRC | 23:16 | |
*** mgedmin has joined #zope3-dev | 23:18 | |
*** mgedmin has quit IRC | 23:24 | |
*** bskahan has joined #zope3-dev | 23:36 | |
*** srichter has joined #zope3-dev | 23:50 | |
*** ChanServ sets mode: +o srichter | 23:51 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!