IRC log of #zope3-dev for Wednesday, 2008-07-02

*** gstratton has joined #zope3-dev00:03
*** b52laptop has quit IRC00:07
*** b52laptop has joined #zope3-dev00:07
*** benji has quit IRC00:10
*** jsadjohnson__ has joined #zope3-dev00:12
*** jsadjohnson_ has quit IRC00:16
*** jsadjohnson__ has left #zope3-dev00:16
*** jsadjohnson_ has joined #zope3-dev00:18
*** natea_ has quit IRC00:18
*** jsadjohnson has quit IRC00:19
*** Jell-O-Fishi has quit IRC00:19
*** jsadjohnson has joined #zope3-dev00:20
*** jsadjohnson_ has quit IRC00:20
*** jhauser has quit IRC00:25
*** tdoggette has quit IRC00:25
*** jsadjohnson_ has joined #zope3-dev00:26
*** jsadjohnson has quit IRC00:26
*** flox has quit IRC00:26
*** derek_richardson has quit IRC00:26
*** flox has joined #zope3-dev00:27
*** derek_richardson has joined #zope3-dev00:27
*** jsadjohnson has joined #zope3-dev00:30
*** jsadjohnson_ has quit IRC00:30
*** georgyberdyshev has joined #zope3-dev00:30
*** gberdyshev_ has quit IRC00:30
*** georgyberdyshev is now known as gberdyshev_00:30
*** reedobrien has quit IRC00:34
*** natea_ has joined #zope3-dev00:38
*** harobed has joined #zope3-dev00:38
*** philiKON has quit IRC00:42
*** natea___ has joined #zope3-dev00:42
*** philiKON has joined #zope3-dev00:43
*** natea___ has quit IRC00:47
*** natea___ has joined #zope3-dev00:47
*** natea___ has quit IRC00:47
*** natea___ has joined #zope3-dev00:49
*** natea_ has quit IRC00:52
*** natea_ has joined #zope3-dev00:53
*** natea___ has quit IRC00:53
*** natea_ has quit IRC00:54
*** natea_ has joined #zope3-dev00:55
*** natea_ has quit IRC00:59
*** aclark|away is now known as aclark01:00
*** jamur2 has quit IRC01:01
*** rcrafton has quit IRC01:03
*** lurkymclurkleton has quit IRC01:04
*** reco has joined #zope3-dev01:07
*** sp0cksbeard has quit IRC01:07
*** quodt has joined #zope3-dev01:15
*** stub has quit IRC01:16
*** tarek_ has joined #zope3-dev01:17
*** tarek_ has quit IRC01:23
*** projekt01 has joined #zope3-dev01:23
*** tarek_ has joined #zope3-dev01:23
*** harobed has quit IRC01:24
*** tarek has quit IRC01:26
*** RaFromBRC|lunch is now known as RaFromBRC01:26
*** gstratton has quit IRC01:27
*** aclark is now known as aclark|dinner01:28
*** vimes656_ has quit IRC01:29
*** salfield has joined #zope3-dev01:32
*** lucielejard has quit IRC01:32
*** whit has quit IRC01:33
*** aaronv has joined #zope3-dev01:41
*** theuni has quit IRC01:44
*** b52lap has joined #zope3-dev01:54
*** srichter has quit IRC01:55
*** srichter has joined #zope3-dev01:55
*** rcrafton has joined #zope3-dev01:56
*** lucielejard has joined #zope3-dev01:56
*** regebro has quit IRC01:59
*** lucielejard has quit IRC02:00
*** tdoggette has joined #zope3-dev02:01
*** nathany has quit IRC02:03
*** gstratton has joined #zope3-dev02:10
*** b52laptop has quit IRC02:11
*** quodt has quit IRC02:13
*** rcrafton has quit IRC02:16
*** jodok has quit IRC02:23
*** dunny has quit IRC02:24
*** aaronv has quit IRC02:26
*** flox has left #zope3-dev02:36
*** greenman has quit IRC02:37
*** b52lap has quit IRC02:38
*** whit has joined #zope3-dev02:39
*** rmarianski has quit IRC02:45
*** whit has quit IRC02:51
*** aclark|dinner is now known as aclark03:10
*** RaFromBRC has quit IRC03:24
*** rcrafton has joined #zope3-dev03:25
*** srichter has quit IRC03:26
*** reco has quit IRC03:34
*** jsadjohnson_ has joined #zope3-dev03:36
*** rcrafton has quit IRC03:40
*** jsadjohnson__ has joined #zope3-dev03:48
*** jsadjohnson has quit IRC03:50
*** jsadjohnson_ has quit IRC03:58
*** rmarianski has joined #zope3-dev04:00
*** jsadjohnson__ has quit IRC04:11
*** aclark is now known as aclark|away04:13
*** georgyberdyshev has joined #zope3-dev04:30
*** gberdyshev_ has quit IRC04:30
*** georgyberdyshev is now known as gberdyshev_04:30
*** dunny has joined #zope3-dev04:48
*** rcrafton has joined #zope3-dev05:03
*** projekt01 has quit IRC05:05
*** alecm has quit IRC05:43
*** whit has joined #zope3-dev05:54
*** georgyberdyshev has joined #zope3-dev06:30
*** gberdyshev_ has quit IRC06:30
*** georgyberdyshev is now known as gberdyshev_06:30
*** rmarianski has quit IRC06:44
*** rcrafton has quit IRC06:46
*** whit has quit IRC06:51
*** jukart has joined #zope3-dev06:58
*** srichter has joined #zope3-dev07:01
*** binseer has joined #zope3-dev07:01
*** fairwinds has left #zope3-dev07:02
*** ChanServ sets mode: +o srichter07:02
*** greenman has joined #zope3-dev07:50
*** greenman has quit IRC07:51
*** greenman has joined #zope3-dev07:51
*** baijum has joined #zope3-dev08:01
*** stub has joined #zope3-dev08:15
*** afd__ has joined #zope3-dev08:21
*** jukart has quit IRC08:38
*** jodok has joined #zope3-dev08:43
*** jukart has joined #zope3-dev09:01
*** jayaraj has joined #zope3-dev09:10
*** __mac__ has joined #zope3-dev09:10
*** quodt has joined #zope3-dev09:20
*** acsr has quit IRC09:26
*** mustap has joined #zope3-dev09:30
*** greenman has quit IRC09:36
*** jodok has quit IRC09:43
*** theuni has joined #zope3-dev09:47
*** timte has joined #zope3-dev09:47
*** vimes656 has joined #zope3-dev09:59
*** vimes656_ has joined #zope3-dev10:01
*** tarek_ has quit IRC10:07
*** tarek_ has joined #zope3-dev10:08
*** flox has joined #zope3-dev10:11
*** jodok has joined #zope3-dev10:11
*** charith_para has joined #zope3-dev10:15
*** zagy has quit IRC10:17
*** jodok has joined #zope3-dev10:17
*** dobee has joined #zope3-dev10:17
*** vimes656 has quit IRC10:18
*** malthe has joined #zope3-dev10:25
*** charith_para has quit IRC10:28
*** georgyberdyshev has joined #zope3-dev10:30
*** gberdyshev_ has quit IRC10:30
*** georgyberdyshev is now known as gberdyshev_10:30
*** MJ has joined #zope3-dev10:33
*** markusleist has quit IRC10:41
*** tarek_ is now known as tarek10:43
*** goschtl has joined #zope3-dev10:53
*** jodok has quit IRC10:54
*** vimes656_ has quit IRC10:54
*** jodok has joined #zope3-dev10:54
*** zagy has joined #zope3-dev10:55
*** maurits has joined #zope3-dev10:57
*** jodok has quit IRC10:59
*** harobed has joined #zope3-dev11:03
*** harobed has quit IRC11:07
*** bigkevmcd_ has joined #zope3-dev11:13
*** bigkevmcd has quit IRC11:13
*** bigkevmcd_ is now known as bigkevmcd11:15
*** charith_para has joined #zope3-dev11:19
*** gstratton has quit IRC11:20
*** b52laptop has joined #zope3-dev11:28
*** agroszer has joined #zope3-dev11:35
*** MJ is now known as MJ|afk11:41
*** Rolando has joined #zope3-dev11:42
*** gberdyshev_ is now known as georgyberdyshev11:42
*** mkerrin has joined #zope3-dev11:42
*** georgyberdyshev has quit IRC11:43
*** projekt01 has joined #zope3-dev11:48
*** MJ|afk is now known as MJ11:48
*** Rolando has quit IRC11:52
*** Rolando has joined #zope3-dev11:52
*** gstratton has joined #zope3-dev11:55
*** ktwilight has quit IRC11:58
*** jodok has joined #zope3-dev12:04
*** tdoggette has quit IRC12:04
*** ktwilight has joined #zope3-dev12:05
*** harobed has joined #zope3-dev12:05
*** greenman has joined #zope3-dev12:07
*** gstratton_ has joined #zope3-dev12:11
*** jukart has quit IRC12:12
*** jodok has quit IRC12:15
*** philiKON_ has joined #zope3-dev12:16
*** jodok has joined #zope3-dev12:17
*** afd__ has quit IRC12:19
*** gstratton has quit IRC12:20
*** jodok has quit IRC12:22
*** philiKON has quit IRC12:24
*** gstratton has joined #zope3-dev12:24
*** jodok has joined #zope3-dev12:26
*** tuxella has joined #zope3-dev12:30
*** gstratton has quit IRC12:30
*** jodok has quit IRC12:35
*** gstratton_ has quit IRC12:36
*** alga has joined #zope3-dev12:37
*** jodok has joined #zope3-dev12:37
*** jodok has quit IRC12:40
*** salfield_ has joined #zope3-dev12:43
*** salfield has quit IRC12:43
*** ccomb has joined #zope3-dev12:46
*** tuxella_ has joined #zope3-dev12:54
*** gstratton_ has joined #zope3-dev12:57
*** gstratton_ has joined #zope3-dev12:58
*** tuxella has quit IRC12:58
*** ktwilight_ has joined #zope3-dev13:01
*** __gotcha has joined #zope3-dev13:02
*** jukart has joined #zope3-dev13:05
*** alga has quit IRC13:07
*** gstratton has joined #zope3-dev13:09
*** __gotcha has joined #zope3-dev13:11
*** ktwilight has quit IRC13:15
*** jodok has joined #zope3-dev13:26
*** gstratton_ has quit IRC13:26
*** acsr has joined #zope3-dev13:35
*** acsr has quit IRC13:39
*** acsr has joined #zope3-dev13:42
*** dobee has quit IRC13:54
*** thruflo has joined #zope3-dev13:54
*** alga has joined #zope3-dev13:54
*** theuni has quit IRC13:58
*** fairwinds has joined #zope3-dev14:00
*** theuni has joined #zope3-dev14:00
*** Rolando has quit IRC14:01
*** projekt01 has quit IRC14:02
*** jodok has quit IRC14:10
*** jsadjohnson has joined #zope3-dev14:22
*** dobee has joined #zope3-dev14:29
*** aclark|away is now known as aclark14:30
*** jodok has joined #zope3-dev14:30
*** afd_ has joined #zope3-dev14:42
*** salfield_ is now known as salfield14:46
*** vimes656 has joined #zope3-dev14:48
*** MJ is now known as MJ|lunch14:52
*** vimes656_ has joined #zope3-dev14:52
*** theuni has quit IRC14:55
*** theuni has joined #zope3-dev14:55
*** benji has joined #zope3-dev14:59
Pan_how can i use in templates datetime module?15:02
Pan_i want to show users date and time of page generation15:02
afd_Pan_: if you get a datetime object in your template, then you can use that directly15:03
*** vimes656_ has quit IRC15:03
Pan_ok. but it is main page template15:04
afd_if you're doing zope 2 stuff, perhaps it's better to ask this on #plone15:04
*** MJ|lunch is now known as MJ15:05
*** vimes656 has quit IRC15:05
Pan_no, im doing it in zope 315:09
*** andres has joined #zope3-dev15:15
*** charith_para has quit IRC15:16
*** lucielejard has joined #zope3-dev15:20
*** mgedmin has joined #zope3-dev15:29
*** agroszer has quit IRC15:33
*** agroszer has joined #zope3-dev15:35
*** rcrafton has joined #zope3-dev15:52
*** lurkymclurkleton has joined #zope3-dev15:55
*** stub has quit IRC15:56
*** stub has joined #zope3-dev15:56
*** stub has quit IRC15:58
*** jamur2 has joined #zope3-dev15:58
*** lurkymclurkleton has quit IRC16:01
*** lurkymclurkleton has joined #zope3-dev16:01
*** natea_ has joined #zope3-dev16:02
*** redir has joined #zope3-dev16:02
*** greenman has quit IRC16:04
*** vimes656 has joined #zope3-dev16:09
*** reedobrien has joined #zope3-dev16:11
*** aaronv has joined #zope3-dev16:18
*** benji has quit IRC16:20
*** redir has quit IRC16:20
*** benji has joined #zope3-dev16:23
*** zagy has quit IRC16:24
*** lucielejard has quit IRC16:24
*** mustap has quit IRC16:24
*** lucielejard has joined #zope3-dev16:24
*** dunny has quit IRC16:36
*** ignas has joined #zope3-dev16:37
*** whit has joined #zope3-dev16:39
*** gstratton has quit IRC16:41
*** afd__ has joined #zope3-dev16:42
*** jodok has quit IRC16:46
*** dunny has joined #zope3-dev16:51
*** sp0cksbeard has joined #zope3-dev16:51
*** baijum has quit IRC16:52
*** ccomb has quit IRC16:52
*** rmarianski has joined #zope3-dev16:55
*** jodok has joined #zope3-dev16:55
*** afd_ has quit IRC16:58
*** charith_para has joined #zope3-dev16:59
*** jodok has quit IRC17:02
Pan_argh! how can i show users time of page generation?17:03
*** rocky has joined #zope3-dev17:07
benjiPan_: I don't think I understand; why not put datetime.datetime.now().isoformat() in the page somewhere?17:08
*** `ro has joined #zope3-dev17:10
*** theuni has quit IRC17:11
mgedmintimezones?17:13
*** aclark is now known as aclark|away17:13
*** reedobrien has quit IRC17:19
Pan_benji: im trying, but how can i get access to datetime module :) ?17:19
*** whit has quit IRC17:21
*** reco has joined #zope3-dev17:21
Pan_tal:var tal:define="datetime modules/datetime.datetime" tal:content="python:datetime.now()"></tal:var>17:22
Pan_<tal:var tal:define="datetime modules/datetime.datetime" tal:content="python:datetime.now()"></tal:var>17:22
Pan_and im getting error:17:22
Pan_ImportError: No module named datetime17:22
Pan_whatim doing wrong?17:22
ignasdatetime is a class in the datetime module17:22
ignasmaybe modules/datetime17:22
ignasand then datetime/datetime/now ?17:22
benjidepends on how your app is set up, you might be able to do tal:replace="python:modules['time'].ctime()"17:23
Pan_tal:var tal:define="datetime modules/datetime" tal:content="python:datetime.datetime.now()"></tal:var>17:23
Pan_and again:17:23
Pan_ImportError: No module named datetime17:23
Pan_benji: lets try.17:24
Pan_<tal:var tal:content="python:modules['time'].ctime()"></tal:var>17:25
Pan_Module zope.pagetemplate.pagetemplatefile:75 in _read_file17:25
Pan_IOError: [Errno 2] No such file or directory: '/home/zope/moae/src/moae/skin/moae.pt'17:25
Pan_wow ;)17:25
Pan_ofcourse, /home/zope/moae/src/moae/skin/moae.pt exists and its working good.17:26
ignasand anyway - add the method to your view, and use Zope3 i18n date formatting to display it17:27
ignaslie view/now or view/today17:28
Pan_ignas: do i have to add method to all of my views, if i want to show time of generation every page?!17:28
ignastime of generation?17:28
ignasdo your users really care about it? ;)17:28
ignaswell - if you must do that, then add tales expression that does that or something17:29
Pan_no, but my users care of actual time on the server. i have to display javascript clock, which will take starting date from server time.17:29
Pan_system is some kind of ebay system nad users needs to know what time is on the server17:29
*** hexsprite_ has joined #zope3-dev17:30
ignasi'd add that thing as a viewlet and add the viewlet manager for the viewlets17:30
ignasif you need it displayed in all the templates in a specific slot a "clock" viewlet makes more sense17:30
*** whit has joined #zope3-dev17:30
mgedminsounds complicated17:31
mgedminwhy not have a trivial one-liner class CurrentTimeView(BrowserView): def __call__(self): return datetime.datetime.now().isoformat()17:32
mgedminand include it into your page macro or whatever as <p>The time on the server is now <span tal:replace="context/@@currenttime" /></p>17:32
ignasand register it on * ? like context/@@currentime17:32
Pan_ignas: perhaps yes, but it would be easier to import datetime module in view and just show datetime.datetime.now(). but i dont know how can i access to other modules than zope3/my application modules from template.17:33
afd__wouldn't he need start/end time for page generation? :)17:33
afd__Pan_: it doesn't really make sense to include that in your pages. If you want to see the time to generate the page, for debugging, there's zc.tracelog17:33
bigkevmcdafd__: see above17:34
afd__but including that info into pages makes them uncacheble17:34
bigkevmcd"my users care of actual time on the server"17:34
Pan_afd__: why?17:34
ignasPan_: because every page is different17:34
Pan_afd__: i need to show users what time is on server.17:34
afd__bigkevmcd: ok :)17:34
Pan_ignas: and ;) ?17:34
afd__Pan_: I thought you want to show them the time it took to generate the page17:34
ignasPan_: means - no caching, though you probably can live with it17:35
*** nathany has joined #zope3-dev17:35
Pan_ignas: i can, most of pages are created with dynamic content, i dont need caching ;)17:36
afd__Pan_: that doesn't mean they're not cacheble :)17:36
Pan_afd__: with good meta tags, why they should be ;) ?17:36
*** reedobrien has joined #zope3-dev17:36
*** jayaraj has quit IRC17:37
afd__yeah.. anyway... If you're doing an "ebay system" and you're having problems at getting the time displayed in a template, maybe you should spend some time first to understand the basics of Zope page generation... IMHO17:37
Pan_afd__: im just looking for good solution, i was thinking of viewlet and add it to viewlet manager, but i thought there is simpler solution. but anyway, thanks to good advice, which is not answer for my question ;)17:39
Pan_*for17:40
afd__Pan_: make a view that returns the time, register it for all types of contexts, call it in your main template with <div tal:content="context/@@timeview" />17:40
afd__the time view can be something like17:40
afd__class TimeView(object):17:40
afd__    def __call__(self):17:40
afd__         return datetime.datetime.now().strftime('%Y-%m') or whatever17:41
Pan_afd__: mgedmin told the same solution few mintues ago, thanks.17:41
Pan_mgedmin & ignas, thanks also :)17:41
*** `ro has quit IRC17:44
*** hexsprite has quit IRC17:46
*** jodok has joined #zope3-dev17:49
*** jodok has quit IRC17:51
*** markusleist has joined #zope3-dev17:51
*** theuni has joined #zope3-dev17:52
*** binseer has quit IRC18:09
*** rocky has quit IRC18:09
*** jodok has joined #zope3-dev18:12
*** rocky has joined #zope3-dev18:12
*** __gotcha is now known as __gotchaway18:13
*** zagy has joined #zope3-dev18:20
*** dvschramm has joined #zope3-dev18:21
*** markusleist has quit IRC18:22
*** markusleist has joined #zope3-dev18:22
*** jamur2 has quit IRC18:23
*** sp0cksbeard has left #zope3-dev18:26
*** dobee has quit IRC18:26
*** jamur2 has joined #zope3-dev18:30
*** MJ has quit IRC18:32
*** MJ has joined #zope3-dev18:33
*** goschtl has quit IRC18:34
*** jodok has quit IRC18:37
*** dobee has joined #zope3-dev18:50
*** charith_para has quit IRC18:58
*** jodok has joined #zope3-dev19:04
*** theuni has quit IRC19:14
*** theuni has joined #zope3-dev19:14
*** __mac__ has quit IRC19:19
*** harobed has quit IRC19:21
*** faassen has joined #zope3-dev19:34
*** gberdyshev has joined #zope3-dev19:43
*** quodt has quit IRC19:47
*** gberdyshev has quit IRC19:48
*** philiKON_ is now known as philiKON19:49
*** maurits has quit IRC19:51
*** markusleist has quit IRC19:55
*** mkerrin has quit IRC20:02
*** theuni has quit IRC20:02
*** jodok has quit IRC20:08
*** RaFromBRC has joined #zope3-dev20:14
*** tarek is now known as tarek|away20:20
*** fsufitch has joined #zope3-dev20:20
*** jodok has joined #zope3-dev20:23
*** thruflo has quit IRC20:28
*** charith_para has joined #zope3-dev20:31
*** tarek|away is now known as tarek20:38
*** jsadjohnson_ has joined #zope3-dev20:38
*** whit has quit IRC20:43
*** tarek is now known as tarek|away20:44
*** jsadjohnson_ has left #zope3-dev20:45
*** jsadjohnson has quit IRC20:55
*** MJ is now known as MJ|dinner20:56
*** whit has joined #zope3-dev20:59
*** faassen has quit IRC21:00
*** vimes656 has quit IRC21:00
*** rmarianski has quit IRC21:04
*** ignas has quit IRC21:07
*** afd__ has quit IRC21:09
*** vimes656 has joined #zope3-dev21:09
*** jukart has quit IRC21:18
*** jodok has quit IRC21:24
*** mgedmin has quit IRC21:28
*** rmarianski has joined #zope3-dev21:32
*** whit has quit IRC21:33
*** MJ|dinner is now known as MJ21:37
*** alga has quit IRC21:41
*** whit has joined #zope3-dev21:42
*** charith_para has quit IRC21:46
*** jodok has joined #zope3-dev21:48
*** jpcw2002 has joined #zope3-dev21:52
*** rmarianski has quit IRC21:53
*** gberdyshev has joined #zope3-dev21:54
*** gberdyshev has quit IRC21:57
*** jsadjohnson has joined #zope3-dev22:11
*** rocky has quit IRC22:11
*** rmarianski has joined #zope3-dev22:13
*** gberdyshev has joined #zope3-dev22:18
*** jsadjohnson_ has joined #zope3-dev22:30
*** J1m has joined #zope3-dev22:30
*** lucielejard has quit IRC22:32
*** jpcw2002 has quit IRC22:38
*** jsadjohnson has quit IRC22:39
*** J1m has quit IRC22:40
*** lucielejard has joined #zope3-dev22:41
*** jodok has quit IRC22:43
*** agroszer_ has joined #zope3-dev22:51
*** timte has quit IRC23:01
*** jodok has joined #zope3-dev23:02
*** agroszer_ has quit IRC23:02
*** jodok has quit IRC23:03
*** agroszer has quit IRC23:03
*** whit has quit IRC23:10
*** jodok has joined #zope3-dev23:10
*** tarek|away has quit IRC23:13
*** tuxella__ has joined #zope3-dev23:13
*** whit has joined #zope3-dev23:13
*** fairwinds_ has joined #zope3-dev23:17
*** fairwinds has quit IRC23:19
*** theuni has joined #zope3-dev23:22
*** tuxella_ has quit IRC23:23
*** quodt has joined #zope3-dev23:24
*** aclark|away is now known as aclark23:35
*** lisppaste6 has quit IRC23:39
*** lisppaste6 has joined #zope3-dev23:50
*** MJ is now known as MJ|afk23:53
*** tuxella__ has quit IRC23:56
*** dunny has quit IRC23:56
*** b52laptop has quit IRC23:56
*** febb has quit IRC23:56
*** timte has joined #zope3-dev23:57
*** tuxella__ has joined #zope3-dev23:57
*** dunny has joined #zope3-dev23:57
*** b52laptop has joined #zope3-dev23:57
*** febb has joined #zope3-dev23:57

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