*** povbot has joined #zope3-dev | 13:01 | |
*** _drzoltron has left #zope3-dev | 13:07 | |
*** _drzoltron has joined #zope3-dev | 13:08 | |
*** bskahan has quit IRC | 13:09 | |
*** vlado has joined #zope3-dev | 13:10 | |
*** vlado has quit IRC | 13:15 | |
VladDrac | hmm.. what's zc.page? | 13:29 |
---|---|---|
J1m | A more pythonic and powerful way to create forms. | 13:31 |
J1m | (still bases on schema) | 13:31 |
J1m | based | 13:32 |
VladDrac | got an example somewhere? | 13:32 |
J1m | Look at the documentation at: | 13:33 |
J1m | http://svn.zope.org/Sandbox/zc/page/ | 13:33 |
VladDrac | tx | 13:36 |
*** Theuni has quit IRC | 13:38 | |
*** zagy has quit IRC | 13:38 | |
*** Aiste has joined #zope3-dev | 13:41 | |
*** Aiste has quit IRC | 13:43 | |
j-w | VladDrac: faassen are trying it today | 13:46 |
j-w | we really need to seperate the content object's schema from the forms displayed in the UI | 13:46 |
j-w | zc.page apears to make this much easier | 13:46 |
VladDrac | j-w I saw the postings, that's why I asked | 13:47 |
j-w | thought so :) | 13:47 |
*** zagy has joined #zope3-dev | 13:47 | |
*** stub has joined #zope3-dev | 13:47 | |
j-w | VladDrac: BTW, the forms.txt and page.txt do explain the use of zc.page rather well | 13:48 |
SteveA | J1m: have you found problems with linking page templates with view classes in zcml ? | 13:49 |
J1m | no | 13:50 |
J1m | (I'm not sure what you mean) | 13:51 |
J1m | However, philosophically, I don't like *constructing* things in zcml. | 13:51 |
J1m | IMO, ZCML should be for registering things constructed elsewhere. | 13:52 |
J1m | This is an important idea behind zc.page. | 13:52 |
J1m | Pages (and forms) are constructed in Python and then registered in zcml. | 13:52 |
SteveA | that's interesting | 13:52 |
SteveA | i went the same way with menus | 13:53 |
SteveA | i started off with zcml directives to construct menus | 13:53 |
SteveA | but have now moved to constructing menus in python | 13:53 |
SteveA | and registering them in zcml | 13:53 |
J1m | Menus are imo very much a pattern that can be realized in a number of ways. | 13:53 |
SteveA | in launchpad, we have the need for menu items whose text includes information from the context | 13:54 |
J1m | so there is limited value in baking one particular pattern into zcml. | 13:54 |
SteveA | i'm not talking about the zope 3 zcml directives for zope3 standard menus | 13:54 |
SteveA | sorry for being confusing | 13:54 |
SteveA | i'm talking about my experience starting off constructing something in zcml, and finding it much better in python, registered in zcml | 13:55 |
J1m | yup | 13:55 |
J1m | Some folks would like higher-level ways to define some things (e.g. schema) than in Python. | 13:55 |
J1m | That's fine. | 13:55 |
J1m | But zcml should not be that higher-level way. | 13:56 |
*** Theuni has joined #zope3-dev | 13:56 | |
J1m | There could be other implementation/definition languages than Python, but zcml should not be used that way. | 13:56 |
J1m | This will, eventually, allow zcml to become much simpler and easier to use for it's intended purpose. | 13:57 |
*** J1m has quit IRC | 14:00 | |
mgedmin | zc.page is interesting stuff | 14:13 |
jhauser_ | perhaps an oversight, but how will a form be registered in zcml with zc.page | 14:20 |
jhauser_ | I mean for what? | 14:20 |
*** backrain has joined #zope3-dev | 14:23 | |
backrain | hi,all. how about the ecm?is the right time move on it? | 14:26 |
backrain | anybody here? | 14:27 |
jhauser_ | if there are discussions about this, they are taking place in #z3-base | 14:30 |
_drzoltron | anyone working with sqlos here ? | 14:30 |
*** bskahan has joined #zope3-dev | 14:35 | |
strichter | jhauser_: I bet you a Page will simply be a view that can be registered as such | 14:36 |
jhauser_ | ok | 14:36 |
*** ignas has joined #zope3-dev | 14:43 | |
backrain | ok,thanks | 14:51 |
*** strichter is now known as srichter | 14:56 | |
*** ChanServ sets mode: +o srichter | 14:56 | |
*** bradb|away is now known as bradb | 14:58 | |
*** Aiste has joined #zope3-dev | 15:27 | |
*** regebro has joined #zope3-dev | 15:30 | |
*** _drzoltron has quit IRC | 15:49 | |
*** philiKON has joined #zope3-dev | 15:52 | |
*** bradb is now known as bradb-afk | 15:58 | |
*** mexiKON has quit IRC | 15:59 | |
*** backrain has left #zope3-dev | 16:06 | |
*** SureshZ has joined #zope3-dev | 16:23 | |
*** timte has joined #zope3-dev | 16:32 | |
*** bradb-afk is now known as bradb | 16:43 | |
*** guido_g has quit IRC | 16:48 | |
*** sashav_ has quit IRC | 16:57 | |
bob2 | hm | 17:07 |
bob2 | so, I'd like to attach some metadata to an object (ala chapter 25 of srichter's book). I thought that just having the class implement IAttributeAnnotatable would be enough, but it seems not; I get a "unable to adapt MyClass to zope...IAnnotations" error. | 17:08 |
bob2 | er, ala chapter 19 | 17:09 |
*** stub has quit IRC | 17:20 | |
philiKON | bob2, it should be enough... are you on zope 3 or five? | 17:22 |
*** hdima has quit IRC | 17:22 | |
*** ignas has quit IRC | 17:24 | |
*** faassen has joined #zope3-dev | 17:25 | |
*** mooded has joined #zope3-dev | 17:26 | |
bob2 | zope3 | 17:29 |
philiKON | weird | 17:32 |
VladDrac | bob2 do you register your adapter through zcml? | 17:33 |
bob2 | ah, I need to define my own adapter? | 17:33 |
VladDrac | oh wait no, never mind | 17:34 |
philiKON | bob2, no, normally not | 17:34 |
VladDrac | bob2: introspect your object, check if it really implements IAttributeAnnotatable | 17:34 |
bob2 | ahh | 17:34 |
philiKON | if an object is attribute annotatable, you should be able to adapt it to IAnnotations | 17:34 |
bob2 | yup, it's in the "inetrfaces from class" list | 17:36 |
bob2 | so, code like IAnnotations(instanceOfClasse) should return something I can get and set on? | 17:37 |
philiKON | yup | 17:37 |
philiKON | normally you do: | 17:37 |
philiKON | IAnnotations[my_key] = PersistentDict() | 17:37 |
philiKON | IAnnotations[my_key]['store-my-data'] = mydata1 | 17:37 |
philiKON | IAnnotations[my_key]['store-my-data2'] = mydata2 | 17:38 |
philiKON | etc. | 17:38 |
philiKON | my_key is a key unique to your app | 17:38 |
philiKON | that way, different parts of an app don't conflict for annotations | 17:38 |
philiKON | e.g. DublinCore has a 'title', other annotation systems might also want a title | 17:38 |
bob2 | hm | 17:41 |
bob2 | I'd prefer to store the metadata on the object itself | 17:42 |
bob2 | not in a seperate PersistentDict() | 17:42 |
bob2 | but I might be misinterpreting what the above does | 17:42 |
*** timte has quit IRC | 17:57 | |
*** j-w has quit IRC | 17:59 | |
*** mooded has quit IRC | 18:07 | |
*** projekt01 has quit IRC | 18:28 | |
*** ignas has joined #zope3-dev | 18:32 | |
*** palmTree has joined #zope3-dev | 18:58 | |
*** tarek has quit IRC | 19:39 | |
*** palmTree has quit IRC | 20:11 | |
*** timte has joined #zope3-dev | 20:12 | |
*** faassen has quit IRC | 20:13 | |
*** zagy has quit IRC | 20:17 | |
*** zagy has joined #zope3-dev | 20:22 | |
*** J1m has joined #zope3-dev | 20:29 | |
J1m | srichter, any news? | 20:29 |
srichter | I am trying to put some time in today; yesterday was again a no go. | 20:29 |
srichter | if everything fails before the weekend, then it will happen then | 20:29 |
srichter | I have already cleared it for work | 20:30 |
J1m | k | 20:31 |
*** alga has joined #zope3-dev | 20:37 | |
*** niemeyer has joined #zope3-dev | 20:50 | |
*** gintas has joined #zope3-dev | 21:18 | |
*** garrett-smith has joined #zope3-dev | 21:24 | |
*** garrett-smith has left #zope3-dev | 21:24 | |
*** regebro has quit IRC | 21:36 | |
*** SureshZ has quit IRC | 21:50 | |
*** mgedmin has quit IRC | 22:19 | |
*** SureshZ has joined #zope3-dev | 22:20 | |
*** alga has quit IRC | 22:23 | |
*** andrew_m has quit IRC | 22:27 | |
*** deo has quit IRC | 22:38 | |
*** ignas has quit IRC | 22:44 | |
*** zagy has quit IRC | 22:52 | |
*** bska|mobile has joined #zope3-dev | 22:54 | |
*** andrew_m has joined #zope3-dev | 22:54 | |
*** bskahan has quit IRC | 22:56 | |
*** SteveA has quit IRC | 23:00 | |
*** yota has quit IRC | 23:02 | |
*** yota has joined #zope3-dev | 23:03 | |
*** SteveA has joined #zope3-dev | 23:06 | |
*** nederhoed has joined #zope3-dev | 23:15 | |
*** bskahan_ has joined #zope3-dev | 23:34 | |
J1m | srichter, ayt? | 23:36 |
*** timte has quit IRC | 23:38 | |
*** bska|mobile has quit IRC | 23:41 | |
*** SureshZ has quit IRC | 23:53 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!