IRC log of #zope3-dev for Thursday, 2005-04-28

*** niemeyer has quit IRC00:19
*** srichter has quit IRC00:26
*** jbb666 has quit IRC00:28
*** jhauser has quit IRC00:29
*** MrTopf has quit IRC00:35
*** bskahan has quit IRC00:42
*** bskahan has joined #zope3-dev00:43
*** yota has quit IRC00:44
*** hazmat has joined #zope3-dev00:46
*** srichter has joined #zope3-dev00:54
*** bskahan has quit IRC01:08
*** alga has quit IRC01:10
*** GaryPoster has quit IRC01:23
*** mohsen has joined #zope3-dev01:52
*** ChanServ sets mode: +o srichter01:52
*** ChanServ sets mode: +o hazmat02:20
*** `anthony has joined #zope3-dev02:28
*** mohsen has quit IRC02:50
*** efge has quit IRC03:19
srichterhey, 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
srichterhazmat: do you know any?03:20
*** bradb has joined #zope3-dev03:55
*** projekt01 has quit IRC04:07
*** hazmat has quit IRC04:49
*** BjornT has joined #zope3-dev04:56
*** povbot has joined #zope3-dev05:02
*** BjornT has quit IRC05:05
*** BjornT has joined #zope3-dev05:07
*** mp has quit IRC05:08
*** mp has joined #zope3-dev05:08
*** `anthony has quit IRC05:11
*** d2m has quit IRC05:11
*** MalcolmC has quit IRC05:11
*** Damascene has quit IRC05:11
*** vinsci has quit IRC05:11
*** d2m has joined #zope3-dev05:13
*** `anthony has joined #zope3-dev05:13
*** MalcolmC has joined #zope3-dev05:13
*** Damascene has joined #zope3-dev05:13
*** vinsci has joined #zope3-dev05:13
*** Damascene has quit IRC05:19
*** MalcolmC has quit IRC05:19
*** `anthony has quit IRC05:19
*** d2m has quit IRC05:19
*** vinsci has quit IRC05:19
*** tvon has quit IRC05:19
*** vinsci has joined #zope3-dev05:20
*** Damascene has joined #zope3-dev05:20
*** MalcolmC has joined #zope3-dev05:20
*** `anthony has joined #zope3-dev05:20
*** d2m has joined #zope3-dev05:20
*** tvon has joined #zope3-dev05:20
*** tvon|desk has quit IRC05:20
*** VladDrac has quit IRC05:20
*** jack-e|away has quit IRC05:20
*** tvon|desk has joined #zope3-dev05:22
*** VladDrac has joined #zope3-dev05:22
*** jack-e|away has joined #zope3-dev05:22
*** Jim7J1AJH has quit IRC05:22
*** Jim7J1AJH has joined #zope3-dev05:23
*** RaFromBRC|mtg is now known as RaFromBRC05:39
*** hazmat has joined #zope3-dev06:00
*** BjornT has quit IRC06:28
*** bradb has quit IRC06:47
*** `anthony has quit IRC06:52
*** mohsen|away has quit IRC07:19
*** `anthony has joined #zope3-dev08:01
*** viyyer has joined #zope3-dev08:12
*** zagy has joined #zope3-dev08:51
*** BjornT has joined #zope3-dev08:57
*** hdima has joined #zope3-dev09:17
*** MacYET has joined #zope3-dev09:19
*** Theuni has joined #zope3-dev09:21
*** hazmat has quit IRC09:23
*** d2m has quit IRC09:48
*** yota has joined #zope3-dev09:55
*** sashav has joined #zope3-dev10:00
*** alga has joined #zope3-dev10:08
*** BjornT has quit IRC10:15
*** sashav has quit IRC10:21
*** lunatik has joined #zope3-dev10:23
*** alga has quit IRC10:23
*** BjornT has joined #zope3-dev10:24
*** sashav has joined #zope3-dev10:29
*** MrTopf has joined #zope3-dev10:34
*** RaFromBRC is now known as RaFromBRC|zZz10:47
*** lunatik has left #zope3-dev10:51
*** RaFromBRC|zZz has quit IRC10:53
*** ignas has joined #zope3-dev10:59
* MacYET is away: troll hunting11:01
*** projekt01 has joined #zope3-dev11:11
*** Theuni has quit IRC11:44
*** Theuni has joined #zope3-dev11:46
*** d2m has joined #zope3-dev12:11
VladDracphilikon around?12:36
*** regebro has joined #zope3-dev12:50
*** BjornT has quit IRC13:03
*** MacYET has quit IRC13:06
*** MacYET has joined #zope3-dev13:12
* VladDrac 's trying to do a bit of skin customization as described in phil's book13:16
VladDracnow I have a broken contents.html13:16
VladDrac(it displays a table with 'content thingy'13:19
VladDracah, forgot the body slot13:23
*** [apoirier] has joined #zope3-dev13:24
*** tvon has quit IRC13:24
VladDracI wonder why I explicitly have to redefine an empty body slot13:25
*** tvon|desk has quit IRC13:26
*** tvon|desk has joined #zope3-dev13:35
*** tvon has joined #zope3-dev13:35
*** faassen has joined #zope3-dev13:36
*** `anthony has quit IRC13:46
*** bskahan has joined #zope3-dev13:54
philiKONVladDrac, i'm here now14:02
philiKONyou have to re-define every slot when re-using a macro, unfortunately14:03
MacYETmorninkon14:03
VladDracphil: I mailed you a smal error in your book (and some remarks in general yesterday)14:05
philiKONyes, i saw that. thank you14:05
VladDracphil: but the page macro has alot more slots that are not redefined, correct?14:05
philiKONyes14:06
philiKONi left them out for brevity14:06
VladDracok14:06
VladDracthen everything makes sense again14:06
philiKONrotterdam is really not the ideal basis for skin customization14:07
jpfarias|work[philiKON] hey, can you tell me more about web development with zope on filesystem14:09
jpfarias|workand not on web forms14:09
jpfarias|work?14:09
jpfarias|workis there some good tutorial for that?14:09
philiKONyes14:09
philiKONthe programmer tutorial14:09
philiKONhttp://www.zope.org/Zope3/ProgrammerTutorial14:10
jpfarias|workabout the buddy?14:10
philiKONyes14:10
jpfarias|workcool14:10
jpfarias|workis there some other showing how to use relational databases?14:10
philiKONno, unfortunately not14:11
jpfarias|workand the ZODB?14:11
philiKONbut look at http://codespeak.net/z3/sqlos14:11
philiKONthe programmer tutorial explains the zodb14:11
jpfarias|worknice14:11
philiKONyou might not notice because using the zodb is pretty much transparent14:11
jpfarias|workI would like to see some database aware tutorial14:12
jpfarias|worklike for an e-commerce or something like that14:12
philiKONwell, sorry, there isn't... but you could write one :)14:12
jpfarias|work=P14:12
philiKONif you're looking for a more in-depth documentation, see http://worldcookery.com14:13
jpfarias|workfirst I need to learn zope14:13
jpfarias|work=D14:13
philiKONit has a whole chapter about the zodb14:15
VladDracdrop the color crap, please14:16
jpfarias|workwhat's the src dir the programmer tutorial talks about?14:25
*** MrTopf has quit IRC14:25
philiKONjpfarias|work, it talks about a checkout14:25
jpfarias|workI have no src dir on my zope instance tree?14:25
jpfarias|workI have no src dir on my zope instance tree...14:25
philiKONjpfarias|work, right, in an instance, you have lib/python14:25
jpfarias|workhmm, ok14:26
jpfarias|workcan I create the package direct there?14:26
philiKONyes14:26
jpfarias|workcool14:26
jpfarias|workanother question14:26
jpfarias|workshould I restart zope every time I change things?14:27
philiKONyup14:28
philiKONwell, page templates you can change w/o restarting zope14:28
jpfarias|workI see... I need a restart only when I change the source of some package, right?14:28
philiKONand the zcml configuration14:29
jpfarias|workok14:29
*** srichter has quit IRC14:37
*** anguenot has joined #zope3-dev14:48
*** srichter has joined #zope3-dev15:19
*** ChanServ sets mode: +o srichter15:20
VladDracphil: al zpt's always reloaded? Plone/CMF only does this in debug mode15:26
philiKONthis is not zope2 :)15:26
VladDracI know :)15:26
philiKONz3 doesn't have a debug mode15:27
VladDracis a skin a utility that implements ISkin?15:27
VladDracif I want to change the skin by default (without override.zcml), can I register my skin as a utility?15:27
philiKONin X3.0, skins are managed by the presentation service15:28
philiKONas well as skin layers15:28
philiKONthey're not utilities15:28
philiKONin 3.1 and onwards, skins and layers are interfaces15:28
philiKONextending IBrowserRequest15:29
VladDracok, I'm trying to understand what skin = zope.component.getUtility(ISkin, 'Debug') does15:29
philiKONand the request is made to provide a certain skin interface15:29
philiKONVladDrac, that's code from the trunk15:30
philiKONthe skin interfaces are also registered as utilities15:30
philiKONutilities providing ISkin (which is an interface extending IInterface)15:30
philiKONsort of like IContentType15:31
VladDracbut 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
philiKONyou end up with an interface15:34
*** __gotcha_ has joined #zope3-dev15:48
*** __gotcha_ is now known as __gotcha15:48
*** regebro has quit IRC15:49
*** MrTopf has joined #zope3-dev15:51
*** tvon|desk has quit IRC15:56
*** philiKON has quit IRC15:56
*** tvon|desk has joined #zope3-dev15:57
*** philiKON has joined #zope3-dev15:58
*** lunatik has joined #zope3-dev16:00
*** lunatik has left #zope3-dev16:02
VladDracanyway, any hints on how I can force a skin to be used within my site?16:04
philiKONVladDrac, are you using trunk or x3.0?16:05
VladDractrunk16:05
philiKONso, write a traversal adapter that does alsoProvides(request, IMySkinInterface) for your site16:06
VladDrachmm16:07
*** bska|mobile has joined #zope3-dev16:08
*** bskahan has quit IRC16:13
VladDracok16:24
VladDractime to test16:24
VladDracwonder if it'll work :)16:24
srichteractually this is not the best way16:25
srichterthere is an API function for this16:25
philiKONah, true16:25
philiKONsetSkin or somethign, right?16:25
srichterbecause you have to remove the old skin from the request as well16:25
srichteryep16:25
philiKONis this in zapi?16:25
philiKON(if not, it maybe should be)16:25
*** alga has joined #zope3-dev16:25
srichternot sure16:25
VladDracI'm using applySkin16:25
srichterI think it is in zope.app.publisher.browser16:25
philiKONright, that's the one16:25
VladDracbut I still have to 'hook' it somewhere in the traversing16:25
philiKONright, in a traversal adapter16:26
VladDracITraversable?16:26
philiKONyup16:26
MacYETre16:26
philiKONactually16:27
philiKONthere's a browser traverser too i think16:27
VladDracMy ITraversable.traverse doesn't work (not called)16:28
philiKONhow did you register it?16:29
VladDrac        <adapter16: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
philiKONactually, ITraversable is the wrong interface16:30
philiKONi just noticed16:30
philiKONit's not even about the request16:30
philiKONi think zope.publisher.interfaces.browser.IBrowserPublisher is the right one16:31
philiKONchecking...16:31
philiKONVladDrac, look at zwiki16:32
philiKONVladDrac, zwiki.traversal16:33
VladDracah ok good tip16:33
philiKONVladDrac, you only want the WikiPageTraverser16:33
philiKONthe first class16:33
philiKONthe thing is registered for the browser request in zwiki.browser/configure.zcml16:34
VladDrachmmm16:51
VladDracstill not called (adapter doesn't get created either)16:51
*** hdima has quit IRC16:52
* VladDrac 's introspecting16:55
VladDracit has the adapter registered as a view16:56
*** sashav has quit IRC17:02
VladDrachmmm17:10
philiKONVladDrac, views == adapters17:10
VladDracI know17:12
VladDracmy adapter only works for standard traversal, not when traversing @@views17:13
philiKONyou could also write your own ++view++ traversal namespace adapter17:14
*** GaryPoster has joined #zope3-dev17:16
* VladDrac sobs softly.. all I wanted was to set a skin :(17:17
*** SureshZ has joined #zope3-dev17:21
VladDrachurray!17:27
VladDraclong live IBeforeTraverseEvent :)17:27
*** mexiKON has joined #zope3-dev17:32
*** tvon has quit IRC17:32
VladDracmexikon == philikon?17:34
VladDracanyway in case you missed it, subscribing to IBeforeTraverseEvent and setting the skin from there seems to work well17:35
MacYETchilikon: i checked your i18n stuff in five17:35
MacYETtoo z3-ish :)17:35
*** philiKON has quit IRC17:43
mexiKONVladDrac, ah, cool. i think that event is new17:57
srichterVladDrac: yeah, this is what I did in my skin preference demo as well17:57
mexiKONMacYET, not sure what you mean by that. after all, i *am* using z3's i18n facilities17:58
*** __gotcha has quit IRC17:59
*** __gotcha has joined #zope3-dev18:00
MacYETit 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
mexiKONwell, the code in that branch exercise the minimal i18n stuff zope3 has18:01
mexiKONif that is too much z3 api for you, i don't know what to say18:02
mexiKONi don't think you're gonna find something as simple as18:02
mexiKONutil = zapi.queryUtility(ITranslationDomain, domain)18:02
mexiKONanywhere else18:02
MacYETi don't  need z3 interfaces :)18:04
MacYETtoomuch overhead18:04
srichterand why are you using five then? :-)18:05
MacYETsrichter: that's another project :)18:05
srichteroh, I see! :-)18:05
mexiKONok, if you want i18n w/o interfaces, use PTS or something.18:05
srichterlocalizer....18:06
MacYETwrote my own thing already :918:07
mexiKONoh well, if that suits you18:08
MacYETone module to load..18:10
MacYETinstead of 20 or so18:10
*** __gotcha has quit IRC18:14
*** zagy has quit IRC18:39
*** viyyer has quit IRC19:06
*** mgedmin has joined #zope3-dev19:09
*** MrTopf has quit IRC19:25
*** mp has quit IRC19:47
*** MacYET has quit IRC19:48
*** faassen has left #zope3-dev20:56
*** bska|mobile has quit IRC21:01
*** alga has quit IRC21:14
*** RaFromBRC has joined #zope3-dev21:30
*** tvon has joined #zope3-dev21:46
*** ignas has quit IRC21:47
*** [apoirier] has quit IRC21:49
*** MrTopf has joined #zope3-dev22:05
*** bskahan has joined #zope3-dev22:07
*** mgedmin has quit IRC22:12
*** d2m has quit IRC22:15
*** zagy has joined #zope3-dev22:18
*** bskahan has quit IRC22:34
*** juka has joined #zope3-dev22:41
*** juka has left #zope3-dev22:46
*** srichter has quit IRC23:16
*** mgedmin has joined #zope3-dev23:18
*** mgedmin has quit IRC23:24
*** bskahan has joined #zope3-dev23:36
*** srichter has joined #zope3-dev23:50
*** ChanServ sets mode: +o srichter23:51

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!