IRC log of #zope3-dev for Monday, 2006-07-24

gabrielboyscan some answer a couple basic questions for me about setting up the layout of a site00:00
philiKONjust ask questions. if there's anyone who can answer the question s/he will answer00:00
philiKONi didn't say you'll get your answers :)00:01
gabrielboysunderstood, helps just to write it out anyway ;)00:03
gabrielboysI am setting up a site, and have been reading through a couple of Zope3 books and I just want to make sure I have the right general idea with how to set up the site visually.  My understinfanding is the following00:10
gabrielboys1) I create a skin and in that skin a new layer plus the defualt and rotterdam layers.00:10
gabrielboys2) I create a macro that holds the basic markup for all of the pages.  In this macro I have slots for the differnet parts of the page.00:10
gabrielboysI would have slots for the title, meta, style in trhe header.  Then in the rest of the doc I put slots where dyanmic content will be going.00:10
gabrielboysSo for example I would have a main content area, a side bar area and so on.00:10
gabrielboys3)  Once I have all these slots set up then I make templates for the different content types I have.  So for example in my task there00:10
gabrielboysis a Project that has a bunch of attributes.  When the user goes to the template for that Project, they see the attributes from the00:11
gabrielboysproject displayed per how the template is set up.00:11
gabrielboysIs that the right genreal idea?00:11
*** dobee has joined #zope3-dev00:13
philiKONi would not base my skin on rotterdam, to be honest00:15
philiKONi've also experimented wiht viewlets recently and am quite satisfied00:16
philiKONthey make the whole slot juggling obsolete00:16
gabrielboysok thanks00:17
gabrielboysI have not checked out viewlets00:17
philiKONthere's a skin based on viewlets00:17
philiKONit's not in a release00:17
philiKONbut it's availble in svn00:17
philiKONcheck it out00:17
philiKONi wouldn't necessarily copy everything that boston does00:17
philiKONbut it gives good examples00:17
gabrielboysI just need examples......perfect00:17
*** dobee has quit IRC00:22
gabrielboysif you are not too busy, could you give me a quick overview of viewlets?00:23
floxsee /++apidoc++/Code/zope/viewlet/README.TXT00:24
gabrielboysawesome, thanks00:25
floxi try to use viewlets, too... and i started with Boston skin to understand it.00:25
gabrielboysexcellent, thanks for the help00:26
*** rock1 has joined #zope3-dev00:28
*** rocky has quit IRC00:30
*** rock1 is now known as rocky00:30
*** efge has joined #zope3-dev00:34
*** hazmat has quit IRC01:00
*** batlogg has quit IRC01:35
*** hazmat has joined #zope3-dev01:53
*** ChanServ sets mode: +o hazmat01:53
efgehi, can anyone explain why I get this:01:53
efgetz = pytz.timezone('Europe/Paris'); print datetime(2006, 7, 1, tzinfo=tz).utcoffset()01:54
efge0:09:00 instead of 2 hours...01:54
*** efge has quit IRC01:57
*** efge has joined #zope3-dev02:00
*** alecm has quit IRC02:31
*** philiKON has quit IRC02:39
*** rocky has quit IRC02:47
*** yota has quit IRC02:51
*** rocky has joined #zope3-dev02:53
*** rocky has quit IRC03:09
*** rocky has joined #zope3-dev03:11
*** rocky has joined #zope3-dev03:12
*** rocky has quit IRC03:43
*** SmokeyD has quit IRC04:23
*** efge has quit IRC04:30
*** roym has quit IRC04:34
*** hazmat has quit IRC05:46
*** nathany has joined #zope3-dev07:09
*** hazmat has joined #zope3-dev07:51
*** ChanServ sets mode: +o hazmat07:51
*** b_52CEntos_ has quit IRC08:16
*** b_52Centos__ has joined #zope3-dev08:16
*** eins has joined #zope3-dev08:19
*** romanofski has joined #zope3-dev08:28
*** hdima has joined #zope3-dev08:58
*** philiKON has joined #zope3-dev09:03
*** admp has joined #zope3-dev09:05
*** admp has quit IRC09:10
*** yota has joined #zope3-dev09:10
*** zagy has joined #zope3-dev09:12
*** dobee_ has joined #zope3-dev09:17
*** dobee_ is now known as dobee09:19
*** flox has quit IRC09:20
*** Theuni has joined #zope3-dev09:20
*** batlogg has joined #zope3-dev09:54
*** nathany has quit IRC10:22
*** flox has joined #zope3-dev10:26
*** ofer has joined #zope3-dev10:31
*** philiKON has quit IRC10:34
*** hazmat has quit IRC10:47
*** MJ has quit IRC11:02
*** wrobel has joined #zope3-dev11:04
*** povbot has joined #zope3-dev11:09
*** povbot` has quit IRC11:09
*** flox_ has joined #zope3-dev11:32
*** flox has quit IRC11:33
*** flox_ is now known as flox11:33
*** MJ has joined #zope3-dev11:38
*** ofer has quit IRC11:41
*** vlado has joined #zope3-dev11:53
*** flox_ has joined #zope3-dev12:08
*** flox has quit IRC12:09
*** flox_ is now known as flox12:09
*** vlado has quit IRC12:15
*** tonico has joined #zope3-dev12:20
*** efge has joined #zope3-dev12:45
*** regebro has joined #zope3-dev12:48
*** mgedmin has joined #zope3-dev12:52
*** vinsci has quit IRC13:01
*** efge has quit IRC13:08
*** SteveA has joined #zope3-dev13:10
*** vlado has joined #zope3-dev13:12
*** roym has joined #zope3-dev13:21
*** jhauser has joined #zope3-dev13:29
*** flox has quit IRC13:31
*** flox_ has joined #zope3-dev13:31
*** flox_ is now known as flox13:32
*** jinty has joined #zope3-dev13:37
*** Aiste has quit IRC13:45
*** vlado has quit IRC13:47
*** dunny has quit IRC13:59
*** volvox has joined #zope3-dev14:02
*** rocky has joined #zope3-dev14:04
*** gintas has joined #zope3-dev14:04
*** Kazade has joined #zope3-dev14:05
*** ignas has joined #zope3-dev14:13
*** rocky has quit IRC14:13
*** rocky has joined #zope3-dev14:24
*** benji has quit IRC14:24
*** dobee has quit IRC14:25
*** zbir has joined #zope3-dev14:33
*** volvox has quit IRC14:37
*** mexiKON has joined #zope3-dev14:40
*** bradb has joined #zope3-dev14:45
*** philiKON has quit IRC14:48
*** baijum has joined #zope3-dev14:51
*** dobee has joined #zope3-dev14:51
*** Aiste has joined #zope3-dev14:54
*** faassen has joined #zope3-dev15:02
*** benji has joined #zope3-dev15:05
*** bradb has quit IRC15:09
baijumhi all :)15:10
*** niemeyer has joined #zope3-dev15:12
baijum (interesting read)15:14
baijumbut it's not Zope 3, is it?15:16
*** rock1 has joined #zope3-dev15:20
*** rocky has quit IRC15:20
*** rock1 is now known as rocky15:20
ktwilightlack of confidence in zope3 you are :)15:22
*** hazmat has quit IRC15:26
*** b_52Centos__ has quit IRC15:34
*** flox has quit IRC15:36
*** flox_ has joined #zope3-dev15:37
*** flox_ is now known as flox15:37
roymhello folks - what would, if any, be the z3 equivalent of Message queues from the J2EE world (ie: JMS, MQ series, etc)?15:43
roym(being that z3 "subscribers" execute synchronously).15:44
benjiroym: not being familiar with the J2EE Message queues, I'd need more information about how they act to help15:47
benjiwhat property of the Z3 event system are you looking to avoid?15:47
*** alga has joined #zope3-dev15:54
*** dobee has quit IRC15:57
roymbenji: message queues basically allow for asynchronous execution - I suppose one could execute the code in a thread - is that the recommended way to do this?16:02
roymAlso, there are usually higher level tools built in to monitor/manage queues.16:02
benjiI'm still not clear on what you're trying to do, but it sounds like you want zasync (or something like it)16:03
roymah - let me dig into zasync.16:03
*** pcardune has joined #zope3-dev16:05
benjiroym: zasync may be Zope 2 only, I don't know if there's a Z3 version16:05
benjiGary and I have talked a bit about doing something like zasync in Z3, but haven't had a nead yet16:06
*** jinty has quit IRC16:08
*** rock1 has joined #zope3-dev16:14
*** rocky has quit IRC16:14
*** rock1 is now known as rocky16:14
rockyroym: there is no equivalent to the best of my knowledge16:16
benjiroym: I just talked to Gary, and by coincidence he started work on a Z3 version of zasync this weekend, but it'll probably be quite a while before it sees the light of day16:17
*** b_52Centos__ has joined #zope3-dev16:22
*** b_52Centos__ is now known as b_52Centos16:23
*** dobee has joined #zope3-dev16:24
*** oferw has joined #zope3-dev16:24
*** rock1 has joined #zope3-dev16:31
*** rocky has quit IRC16:46
roymbenji, rocky: is there a decent example that might serve for a simple starting point (ie: proper handling of threads in a z3 environment)?16:46
Theunithreads? /me runs16:46
benjiroym: I think my advice would be "don't" :)16:46
benjiIf you really need something like that, I'd have a seperate process that pulls things off a persistent queue and processes them16:47
benjiyou can use ZEO so two processes (Z3 and your other thing) can both access the same ZODB16:47
roymsometimes knowing what not to do is more valuable than knowing what to do - this seems like a good case in point. thanks!16:48
*** rocky has joined #zope3-dev16:53
*** baijum has left #zope3-dev16:54
*** rock1 has quit IRC17:08
*** rock1 has joined #zope3-dev17:12
*** oferw has quit IRC17:16
*** baldtrol has joined #zope3-dev17:16
*** batlogg has quit IRC17:16
*** eins has quit IRC17:18
baldtrolhi all.  i'm sure i've run into and solved this before, but i can't remember how now.  :\17:22
baldtroli have a btreecontainer that has some attributes.  if i set up IReadContainer and then require permissions for the attributes, it works.  but then i can't delete anything from the container, because I need IWriteContainer also, which conflicts with the require perms for hte attributes...17:23
Theuniright. you'll either have to rearrange that in your own interfaces, or just specify the writable attributes by listing them17:24
baldtrolhmm.  like how?  i'm confused.17:25
*** jinty has joined #zope3-dev17:25
*** rocky has quit IRC17:27
Theunihumm? if you listed the attributes for a permission requiredment, do the same for the write-interface (except leaving out those already given away for read permissions)17:28
* Theuni wonders if he actually misses something ... 17:28
Theuniwasn't there a difference between reading an attribute and writing it?17:29
baldtrolhmm...  yessir.  i know you can set both of them, but usually i just set_schema.17:29
baldtrolis set_schema and IWriteContainer the place where i'm seeing the conflict, do you think?17:29
*** rocky has joined #zope3-dev17:31
TheuniYou mentioned a set of attributes on the read permission. That's maybe conflicting with the IWriteContainer?17:32
baldtrolhmm.  well, with just IReadContainer set, i can put my permissions on both the read and write of the attributes.  and i can create content in the btree.  but __delitem__ is forbidden.  i assumed that was from the zcml permissions.  but maybe it's from something else?17:34
Theuniwell, __delitem__ should belong to IWriteContainer, if I'm not mistaken17:35
TheuniSo why don't you just declare <require permission="your.writepermission" interface=""/> ?17:35
*** rock1 has quit IRC17:37
baldtroli did...  but having permissions set on the attributes at the same time breaks things.  argh to me! ;)17:45
*** SmokeyD has joined #zope3-dev17:48
*** hdima has quit IRC17:56
baldtrolTheuni: turns out, i just needed to derive from IContainer.  I had, for whatever reason, thought i should build my interfaces from Interface and set the zcml up as necessary.  didn't realize i should/could be deriving from IContainer.  my mistake.18:05
*** whit has joined #zope3-dev18:09
*** zbir_ has joined #zope3-dev18:09
*** ChanServ sets mode: +o srichter18:11
*** zbir has quit IRC18:26
*** rock1 has joined #zope3-dev18:27
*** romanofski has quit IRC18:28
*** rocky has quit IRC18:28
*** rock1 is now known as rocky18:28
*** zbir_ is now known as zbir18:46
*** whit has quit IRC18:50
*** whit has joined #zope3-dev18:51
*** reco has joined #zope3-dev18:53
*** Theuni has quit IRC19:06
*** oferw has joined #zope3-dev19:07
*** timte has joined #zope3-dev19:11
*** baldtrol has left #zope3-dev19:11
*** whit_ has joined #zope3-dev19:13
*** whit has quit IRC19:14
*** whit_ is now known as whit19:15
*** MJ has quit IRC19:19
*** alecm has joined #zope3-dev19:24
*** oferw has quit IRC19:26
*** Kazade has quit IRC19:33
*** batlogg has joined #zope3-dev19:37
timtehmm, bin/runzope finds zope that belongs to python-zopeinterfaces that is installed as a dependency on twisted19:40
*** SmokeyD has left #zope3-dev19:44
*** whit_ has joined #zope3-dev19:45
*** whit has quit IRC19:55
*** gabrielboys has quit IRC19:59
*** jinty has quit IRC20:08
*** RaFromBRC has joined #zope3-dev20:13
*** ignas has quit IRC20:16
*** flox has quit IRC20:19
*** hazmat has joined #zope3-dev20:22
*** ChanServ sets mode: +o hazmat20:22
*** RaFromBRC has quit IRC20:23
*** RaFromBRC has joined #zope3-dev20:23
*** gintas has quit IRC20:32
*** faassen has quit IRC20:42
*** whit_ is now known as whit20:54
*** dobee has quit IRC20:59
*** pcardune has quit IRC21:01
*** SteveA has quit IRC21:07
*** MJ has joined #zope3-dev21:13
*** SteveA has joined #zope3-dev21:18
*** regebro has quit IRC21:21
*** rock1 has joined #zope3-dev21:21
*** b_52CEntos_ has joined #zope3-dev21:29
*** rocky has quit IRC21:34
*** dobee has joined #zope3-dev21:35
*** gintas has joined #zope3-dev21:38
*** b_52Centos has quit IRC21:46
*** dobee has quit IRC21:48
*** pcardune has joined #zope3-dev21:50
whitanyone having any issues with
*** tonico has quit IRC21:57
*** Theuni has joined #zope3-dev22:02
*** SteveA has quit IRC22:05
*** dobee has joined #zope3-dev22:08
*** hazmat has quit IRC22:09
*** rock1 has quit IRC22:14
*** dobee has quit IRC22:21
*** dunny has joined #zope3-dev22:22
*** jhauser has quit IRC22:47
*** dobee has joined #zope3-dev22:49
*** vlado has joined #zope3-dev22:49
*** RaFromBRC is now known as RaFromBRC|away23:05
*** mgedmin has quit IRC23:05
*** gintas has quit IRC23:12
*** dobee has quit IRC23:17
*** rocky has joined #zope3-dev23:21
*** nathany has joined #zope3-dev23:22
*** pcardune has quit IRC23:28
*** SteveA has joined #zope3-dev23:30
*** dobee has joined #zope3-dev23:31
*** timte has quit IRC23:34
*** Theuni has quit IRC23:36
*** rock1 has joined #zope3-dev23:39
*** ignas has joined #zope3-dev23:49
*** Bernulf has joined #zope3-dev23:50
*** rocky has quit IRC23:51

Generated by 2.15.1 by Marius Gedminas - find it at!