IRC log of #zope3-dev for Sunday, 2006-07-30

*** rocky has quit IRC00:02
mgedmintimte: List() is more suitable than Tuple() here, I'd say00:09
timteyes, right00:09
timtebut should this List() be in the utility class or is that inappropriate?00:11
*** rocky has joined #zope3-dev00:14
mgedminI don't know00:15
mgedminwhat's your application?00:15
mgedminyou can either have a local utility that stores some data persistently, or you can store data in a content object and have a global utility locate and use it00:16
timteI want to show rss feeds.00:16
timteAnd I thought it I'd store the feeds in a utility.00:17
timtebut the feed urls should be editable, so I need a schema00:18
*** nathany has quit IRC00:19
mgedminwhy utility?00:19
timteI thought that would be the right thing to do00:20
mgedminI think utilities are useful when you have something pluggable, when you have more than one kind of something and need one of those configured explicitly00:21
mgedminthings like SQL database connections00:22
timteI associate zope3 utilities with zope2 tools, they have APIs and store some data that are global for the site.00:22
mgedminI think what I'm trying to say is that if you have a global utility, you have difficulties storing data persistently00:22
timteoh00:22
mgedminand if you have a local utility, you have difficulties, period00:22
mgedmin;)00:22
mgedminI wouldn't say zope3 is ready for through-the-web dynamic site building00:23
mgedminit is very good for filesystem-based application building00:23
timtehmm, how do you mean? I don't develop this through the web00:24
* mgedmin is not entirely sure what he means himself00:25
mgedminif I were going to build an rss reader with zope 300:26
timteyes...  :)00:26
mgedminI'd create a content object that stores a list of feeds00:26
mgedminwhere each feed has a name/title/url/icon/whatever00:26
mgedminI'd probably be inclined to make the content object a container that stores objects providing IFeed00:27
mgedminthen I'd write some views00:27
mgedminsome for editing the feed list00:27
mgedminand one for aggregating the feeds00:27
mgedminum00:27
timteand when I want all feeds I use a utility that locates this object and returns all its feeds?00:28
mgedminwhere do you want these feeds?00:28
timtein the root of my site00:29
mgedminwhat comprises your site?00:29
mgedminfolders and page templates stored in the zodb?00:29
timtepage templates are on file system of course00:30
mgedminso your site is a custom application?00:30
timteyes00:30
mgedminwell, then00:30
mgedminsuppose your site provides IMySite00:30
mgedminyou could have an attribute rss_feeds = Attribute("a container of IRssFeed objects")00:31
mgedminand the index.html view on IMySite would know to use context/rss_feeds00:31
mgedminor, if you want to be more flexible, you could adapt IMySite to some interface like IRssFeedConfiguration00:31
mgedminor you could go down the local utility route00:32
mgedminmaybe it won't be painful00:32
mgedminthe z3 developers seem to have stopped redesigning that part00:32
timte:)00:32
timteif I want members to be able to choose feeds, how should their feed form know where to get the "all available feeds" from?00:34
mgedmingetSite().rss_feeds00:34
timtehmm00:35
timteok, this should probably work00:36
timtewhat is the problem using global utilities? wouldn't that be similar?00:37
*** eldafar has quit IRC00:39
*** batlogg has joined #zope3-dev00:43
*** timte has quit IRC00:45
mgedmingetSite() will work only when you're rendering a request that traversed inside00:45
mgedminit's ok to assume that in a view registered for an interface specific to your app00:46
mgedminit is somewhat less ok to assume that in a global utility that could be called from any context00:46
mgedminotoh you can make the utility perform an interface check and fall back to some default, an empty list perhaps00:46
*** batlogg has quit IRC00:47
mgedmindisclaimer: it is kind of the middle of the night, and I'm not sure I am able to think clearly enough to design applications I know little about00:47
mgedmin;)00:47
*** srichter has quit IRC00:49
*** srichter has joined #zope3-dev00:50
*** alecm has joined #zope3-dev00:58
*** mgedmin has quit IRC00:59
*** alecm has quit IRC01:14
*** philiKON has quit IRC01:15
*** rock1 has joined #zope3-dev01:18
*** The|uni has quit IRC01:18
*** srichter has quit IRC01:21
*** srichter has joined #zope3-dev01:22
*** alecm has joined #zope3-dev01:29
*** rocky has quit IRC01:33
smokeydhey all. How can I pass data to a zpt page from the page class (the class declared in configure.zcml in a browser:page directive). I tried setting an extra attribute in self.context (self.context.data=somehing) but I get a ForbinnenAttribute error. Is there another way to pass data to the tempate, or to set data in the context? Or is the only official way is to do it in the actual object of the context01:35
smokeydI hope this is still understandable :)01:36
*** rock1 has quit IRC01:38
*** eldafar has joined #zope3-dev02:14
*** ChanServ sets mode: +o srichter02:21
*** vlado has joined #zope3-dev02:24
*** srichter has quit IRC02:30
*** nathany has joined #zope3-dev02:30
*** srichter has joined #zope3-dev02:31
*** smokeyd has quit IRC03:04
*** eldafar has quit IRC03:31
*** srichter has quit IRC03:32
*** vlado has quit IRC04:01
*** yota has quit IRC04:16
*** nathany has quit IRC04:35
*** stub has joined #zope3-dev04:54
*** alecm has quit IRC04:58
*** adamSummers has joined #zope3-dev06:26
*** srichter has joined #zope3-dev06:27
*** baijum has joined #zope3-dev08:41
*** stub has quit IRC09:08
*** philiKON has joined #zope3-dev09:53
*** vlado has joined #zope3-dev10:21
*** romanofski has quit IRC11:00
*** romanofski has joined #zope3-dev11:36
*** dunny has joined #zope3-dev11:41
*** ktwilight has quit IRC11:47
*** ktwilight has joined #zope3-dev11:48
*** philiKON has quit IRC12:02
*** zagy has joined #zope3-dev12:19
*** dunny has quit IRC12:46
*** philiKON has joined #zope3-dev12:57
*** yota has joined #zope3-dev13:09
*** batlogg has joined #zope3-dev13:43
*** batlogg has quit IRC14:01
*** stub has joined #zope3-dev14:05
*** rocky has joined #zope3-dev14:27
*** oferw has joined #zope3-dev14:36
*** timte has joined #zope3-dev14:51
*** adamSummers has quit IRC14:59
*** adamSummers has joined #zope3-dev15:00
*** rock1 has joined #zope3-dev15:14
*** ignas has joined #zope3-dev15:23
*** rocky has quit IRC15:25
*** oferw has quit IRC15:28
*** srichter has quit IRC15:36
*** rock1 has quit IRC15:42
*** rocky has joined #zope3-dev16:07
*** srichter has joined #zope3-dev16:11
*** baijum has left #zope3-dev16:11
*** tiredbones has quit IRC16:34
*** tiredbones has joined #zope3-dev16:35
*** pcardune has joined #zope3-dev16:46
*** rocky has quit IRC16:57
*** rocky has joined #zope3-dev17:07
*** stub has quit IRC17:35
*** ChanServ sets mode: +o srichter18:07
*** ktwilight has quit IRC18:07
*** ktwilight has joined #zope3-dev18:08
*** mgedmin has joined #zope3-dev18:11
philiKONMJ, ayt?18:24
*** rocky is now known as rocky|away18:40
*** philiKON has quit IRC18:49
*** alecm has joined #zope3-dev18:49
*** philiKON has joined #zope3-dev18:49
*** BjornT has joined #zope3-dev18:59
*** ktwilight has quit IRC19:08
*** ktwilight has joined #zope3-dev19:08
*** batlogg has joined #zope3-dev19:12
*** oferw has joined #zope3-dev19:20
*** volvox has joined #zope3-dev19:23
*** oferw has quit IRC19:46
*** rocky|away has quit IRC19:48
*** ktwilight has quit IRC19:51
*** ktwilight has joined #zope3-dev19:52
*** mexiKON has joined #zope3-dev20:24
*** philiKON has quit IRC20:32
*** batlogg has quit IRC20:40
*** batlogg has joined #zope3-dev20:41
*** rocky has joined #zope3-dev20:41
*** ignas has quit IRC20:48
*** rock1 has joined #zope3-dev20:53
*** rocky has quit IRC20:58
*** rock1 is now known as rocky20:58
*** ignas has joined #zope3-dev21:28
*** whit__ has quit IRC21:32
*** rocky has quit IRC21:40
*** rocky has joined #zope3-dev21:40
*** rock1 has joined #zope3-dev21:50
*** pcardune has quit IRC22:03
*** rocky has quit IRC22:04
*** rock1 is now known as rocky22:04
*** srichter has quit IRC22:15
*** rock1 has joined #zope3-dev22:27
*** vlado has quit IRC22:41
*** rocky has quit IRC22:42
*** dunny has joined #zope3-dev22:45
*** romanofski has quit IRC22:52
*** rocky has joined #zope3-dev22:53
*** rock1 has quit IRC23:09
*** rock1 has joined #zope3-dev23:09
*** whit has joined #zope3-dev23:13
*** rocky has quit IRC23:17
*** mgedmin has quit IRC23:18
*** russf has joined #zope3-dev23:19
*** dunny has quit IRC23:20
*** ignas has quit IRC23:45
*** rocky has joined #zope3-dev23:49
*** ignas has joined #zope3-dev23:51
*** russf_ has joined #zope3-dev23:52
*** dobee has joined #zope3-dev23:54
*** rock1 has quit IRC23:56
*** zagy has quit IRC23:57

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