*** Volpe has joined #zope3-dev | 00:32 | |
Volpe | I'm getting a TypeError: __call__() takes at least 2 arguements (1 given). But I have no idea what's caused this, as zcml generates this stuff doesn't it? | 00:33 |
---|---|---|
Volpe | this is when I try to create my content object :\ | 00:34 |
Volpe | Anyone have any suggestions? | 00:35 |
Volpe | No one? :( | 00:38 |
*** s1 has joined #zope3-dev | 00:38 | |
drzoltron_ | Volpe: could you provide a traceback ? | 00:39 |
Volpe | Is there a paste bin somewhere I could use? | 00:40 |
drzoltron_ | hmm | 00:40 |
drzoltron_ | paste.plone.org ? | 00:40 |
Volpe | http://paste.plone.org/975 | 00:41 |
drzoltron_ | Volpe: looks as if an argument is missing | 00:41 |
drzoltron_ | in the factory | 00:41 |
Volpe | That's in the zcml right? | 00:42 |
drzoltron_ | maybe | 00:42 |
Volpe | Well I haven't defined a factory anywhere | 00:42 |
drzoltron_ | hmmm | 00:42 |
Volpe | (I have no idea how to yet :)) | 00:42 |
drzoltron_ | do you have a <content class> in you zcml ? | 00:42 |
Volpe | yes | 00:43 |
Volpe | oh crap, I haven't implemented IContentContainer :( | 00:43 |
drzoltron_ | there you got it ;) | 00:44 |
drzoltron_ | i have a <factory> inside my <content class> but maybe thats not needed | 00:44 |
Volpe | Thanks drzoltron_ | 00:44 |
Volpe | I was about to give up with Z3 :) | 00:44 |
drzoltron_ | Volpe: np. it's quite hard, I know, but it gets easier with every day.. much more consistent than z2 | 00:45 |
Volpe | Yeah, compared to z2 some stuff is so much nicer. | 00:50 |
Volpe | (though I'm still getting that error) | 00:50 |
drzoltron_ | hmm | 00:50 |
Volpe | I added the '<implements>' tag. Still exactly the same. | 00:52 |
Volpe | This zcml seems very 'magical' to me | 00:53 |
*** sm has quit IRC | 00:53 | |
drzoltron_ | try a <factory> | 00:55 |
drzoltron_ | maybe like this one <factory | 00:55 |
drzoltron_ | id="absalon.ctr.ContentType" | 00:55 |
drzoltron_ | description="Absalon Content Type" | 00:55 |
drzoltron_ | /> | 00:55 |
Volpe | I have one of them | 00:55 |
Volpe | <factory id="weblog.Weblog.Weblog" description="Weblog" /> | 00:56 |
drzoltron_ | hmm | 00:58 |
drzoltron_ | do you have an __init__ in your class ? | 00:59 |
Volpe | nope | 00:59 |
Volpe | My class inherits from BTreeContainer and defines nothing itself | 00:59 |
drzoltron_ | hmm | 00:59 |
drzoltron_ | try a __init__(self): | 01:00 |
drzoltron_ | super(Weblog,self).__init__ | 01:00 |
drzoltron_ | () | 01:00 |
Volpe | Exact same error :( | 01:02 |
Volpe | I think something weird is happening | 01:03 |
drzoltron_ | hmm | 01:03 |
drzoltron_ | Why do you inherit from a BTreeContainer ? | 01:04 |
drzoltron_ | what about subclassing a simple container ? | 01:04 |
Volpe | (cause the Zope 3 Dev handbook told me too :)) | 01:04 |
Volpe | What's a simple container | 01:05 |
drzoltron_ | hmm | 01:05 |
drzoltron_ | Volpe: you are doing the sample app from the book ? | 01:06 |
Volpe | yes, except substituting messageboard, for weblog | 01:07 |
drzoltron_ | Container | 01:07 |
Volpe | zope.app.container ? | 01:08 |
*** SteveA has joined #zope3-dev | 01:08 | |
drzoltron_ | yes | 01:09 |
drzoltron_ | philiKON's tells you a lot about containers | 01:09 |
drzoltron_ | p's book | 01:09 |
Volpe | Do you mean SampleContainer? | 01:13 |
Volpe | I can't find any container called Container :( | 01:13 |
drzoltron_ | Volpe: have a look at zope.app.folder.folder.Folder | 01:15 |
drzoltron_ | this should work Foo(Persistent, Contained) | 01:16 |
drzoltron_ | and implement an IFoo | 01:17 |
drzoltron_ | IFoo(IContainer) | 01:17 |
Volpe | And in zcml implement IContainer? | 01:17 |
Volpe | Does zope3 have a 'refresh' like z2 has? | 01:19 |
srichter | no | 01:19 |
Volpe | drzoltron: still the exact same error | 01:21 |
Volpe | srichter, (I'm assuming your the same srichter who wrote the messageboard example) ? | 01:22 |
srichter | yes | 01:22 |
Volpe | http://paste.plone.org/975 - I'm getting that error, and have no idea why. | 01:24 |
srichter | I can't tell you anything without more context | 01:25 |
srichter | you should write a message to zope3-users exaplining your issue in detail | 01:25 |
Volpe | okay - the context, is that it's almost identical to the messageboard example | 01:26 |
Volpe | (except I've called mine 'weblog' ) :) | 01:26 |
Volpe | I'll write to the zope3-users list | 01:26 |
Volpe | :) | 01:26 |
*** natea has joined #zope3-dev | 01:27 | |
*** holybyte has joined #zope3-dev | 01:30 | |
*** natea_ has joined #zope3-dev | 01:43 | |
*** Volpe has quit IRC | 01:44 | |
*** sashav has quit IRC | 01:48 | |
*** natea_ has quit IRC | 01:50 | |
*** natea has quit IRC | 01:55 | |
*** s1 is now known as sm | 01:55 | |
*** drzoltron_ has quit IRC | 02:21 | |
*** SteveA has quit IRC | 02:34 | |
*** JoaoJoao has joined #zope3-dev | 02:44 | |
JoaoJoao | What is the Zope3ish way to do cataloging? | 02:47 |
srichter | zope.app.catalog | 02:58 |
JoaoJoao | srichter: I was looking for some documentation on it yesterday, or even a package that uses catalogs | 03:00 |
srichter | right, not many people use it yet | 03:01 |
srichter | I can't help you either, because I have not used it | 03:01 |
JoaoJoao | My guess is that it uses events and subscribers | 03:10 |
srichter | yes | 03:11 |
*** sm has quit IRC | 03:14 | |
JoaoJoao | Do you need help on translating Zope3 to brazilian Portuguese? | 03:16 |
srichter | sure, we take any translation help! :-) | 03:17 |
JoaoJoao | great, how can I help then? | 03:17 |
srichter | please join the zope3-i18n mailing list and sign up at Ubuntu's launchpad | 03:18 |
srichter | we are trying to manage the translations using Rosetta, the ubuntu translation system | 03:20 |
JoaoJoao | srichter: I'll do translations in Launchpad then | 03:23 |
srichter | thanks a lot! | 03:24 |
JoaoJoao | "Principals" is really hard to translate | 03:24 |
srichter | there will be harder ones :-) | 03:25 |
srichter | bring it up on zope3-i18n and see whether someone responds | 03:25 |
JoaoJoao | I just did my first translation :) | 03:43 |
JoaoJoao | I hope nobody tries to translate "Widget" | 03:56 |
*** efge has quit IRC | 04:01 | |
*** tarek has quit IRC | 04:50 | |
*** sashav has joined #zope3-dev | 04:53 | |
*** strichter has joined #zope3-dev | 04:55 | |
*** srichter has quit IRC | 04:55 | |
*** sm has joined #zope3-dev | 05:20 | |
JoaoJoao | bedtime, bye all u | 05:51 |
*** JoaoJoao has quit IRC | 06:05 | |
*** yota has quit IRC | 06:45 | |
*** philiKON has joined #zope3-dev | 06:53 | |
*** MiUlEr has joined #zope3-dev | 06:56 | |
*** strichter is now known as srichter | 07:56 | |
*** ChanServ sets mode: +o srichter | 07:56 | |
newpers | this is probably a terrible question: are there any plans for a 3.2 release date? | 08:06 |
philiKON | newpers, yup. december 1st i think | 08:31 |
newpers | thanks | 08:33 |
*** Volpe has joined #zope3-dev | 08:46 | |
Volpe | With a view page template, how can you access a contentObject's data. | 08:46 |
Volpe | ? | 08:48 |
Volpe | oh nm | 08:55 |
*** Volpe has quit IRC | 08:56 | |
*** newpers has quit IRC | 08:56 | |
*** sm has quit IRC | 08:59 | |
*** Volpe has joined #zope3-dev | 09:22 | |
*** natea has joined #zope3-dev | 10:09 | |
*** Volpe has quit IRC | 10:12 | |
*** natea has quit IRC | 10:13 | |
*** jhauser has joined #zope3-dev | 10:36 | |
*** efrerich has joined #zope3-dev | 12:03 | |
*** d2m has quit IRC | 12:18 | |
*** xenru has quit IRC | 13:02 | |
*** tarek has joined #zope3-dev | 13:19 | |
*** efrerich has quit IRC | 13:43 | |
*** zagy has quit IRC | 14:11 | |
*** zagy has joined #zope3-dev | 14:11 | |
*** zagy has left #zope3-dev | 14:27 | |
*** zagy has joined #zope3-dev | 14:28 | |
*** yota has joined #zope3-dev | 14:57 | |
*** sashav has quit IRC | 14:59 | |
*** mohsen has joined #zope3-dev | 15:10 | |
*** sashav has joined #zope3-dev | 15:34 | |
*** srichter has quit IRC | 16:05 | |
*** srichter has joined #zope3-dev | 16:06 | |
*** lunatik has joined #zope3-dev | 16:15 | |
*** lunatik has left #zope3-dev | 16:17 | |
*** mte_ has joined #zope3-dev | 16:45 | |
mte_ | hello..i'd like to uninstall zope3 (i need to do a project in zope2 and i don't have time to learn zope3 yet) from winxp but there is no uninstaller - which directories do i need to remove from the python dir? | 16:47 |
*** ChanServ sets mode: +o srichter | 16:54 | |
*** d2m has joined #zope3-dev | 16:55 | |
*** sashav has quit IRC | 16:56 | |
*** mp has joined #zope3-dev | 17:00 | |
*** yutakashino has joined #zope3-dev | 17:01 | |
*** mte_ has quit IRC | 17:03 | |
*** Alef has joined #zope3-dev | 17:14 | |
*** J1m has joined #zope3-dev | 17:36 | |
*** efge has joined #zope3-dev | 17:40 | |
*** roym has joined #zope3-dev | 17:44 | |
*** yutakashino has quit IRC | 17:52 | |
*** roym has quit IRC | 18:00 | |
*** mohsen is now known as mohsen|away | 18:11 | |
*** drzoltron_ has joined #zope3-dev | 18:28 | |
*** Alef has quit IRC | 18:31 | |
drzoltron_ | I've got a form in a page which is not registered, how do I read and process the data entered ? | 18:33 |
drzoltron_ | can i define a view which is not registered for a type ? | 18:33 |
philiKON | registered? | 18:34 |
philiKON | you can define a view for * | 18:34 |
philiKON | processing form data: write a view class with a method that does whatever you need to do | 18:34 |
drzoltron_ | philiKON: Hi :) | 18:34 |
philiKON | hi | 18:34 |
drzoltron_ | ok, an then set the view as the form action ? | 18:35 |
philiKON | yup | 18:35 |
drzoltron_ | philiKON: cool | 18:35 |
drzoltron_ | thanx | 18:35 |
philiKON | i'm surprised you find this hard | 18:35 |
philiKON | this shoudl be straight-forward | 18:35 |
drzoltron_ | philiKON: it might not be hard, but I haven't done it before and wanted to check .. | 18:35 |
philiKON | got a form, need to impelemnt an action... | 18:35 |
philiKON | you've never dealt with HTML form action handlers before? | 18:36 |
drzoltron_ | philiKON: in z3 ? | 18:36 |
philiKON | in general. say, zope 2 | 18:36 |
drzoltron_ | philiKON: I would use cpts and cpys ... | 18:37 |
philiKON | ack | 18:37 |
philiKON | that's plone | 18:37 |
drzoltron_ | which is quite straight forward for a layman like me | 18:37 |
drzoltron_ | exactly | 18:37 |
philiKON | ever done good old zope 2? | 18:37 |
drzoltron_ | not really | 18:37 |
philiKON | a page template and a method on a class? | 18:37 |
philiKON | def form_action(self, var1, var2, var3, REQUEST): | 18:38 |
drzoltron_ | nope | 18:38 |
philiKON | ... | 18:38 |
drzoltron_ | is there an example in your book ? | 18:38 |
philiKON | that's what zope 2 style form actions looked like | 18:38 |
philiKON | zope 3 style ones are very similar | 18:38 |
philiKON | except that the REQUEST is at self.request | 18:38 |
drzoltron_ | sure | 18:38 |
philiKON | and the 'form_action' method is not part of the content class but the view object | 18:38 |
philiKON | there are several examples iin my book | 18:38 |
drzoltron_ | philiKON: ok | 18:39 |
philiKON | take the rating view for example | 18:39 |
drzoltron_ | nice, then thats no problem : ;) | 18:39 |
drzoltron_ | ok, cool | 18:39 |
drzoltron_ | otherwise: zope3 rocks | 18:39 |
drzoltron_ | ;) | 18:39 |
philiKON | don't remember which chapter | 18:39 |
drzoltron_ | np, will find it | 18:39 |
philiKON | problem with .cpt and .cpy is that it's too complicated for simple things | 18:39 |
philiKON | otherwise a nice concept | 18:39 |
drzoltron_ | sure, very nice concept | 18:39 |
philiKON | but it's a do-it-all-with-us-or-nothing thing | 18:39 |
philiKON | like most of zope 2/cmf is | 18:40 |
drzoltron_ | should be implemented into agx ;) | 18:40 |
drzoltron_ | hehe | 18:40 |
philiKON | you can just use it a little... | 18:40 |
philiKON | you have to do it all the way | 18:40 |
philiKON | which sucks | 18:40 |
drzoltron_ | yeah | 18:40 |
drzoltron_ | it is just a little search form i need, no big deal with validation etc etc | 18:40 |
drzoltron_ | so i reckon it's no big deal | 18:40 |
drzoltron_ | ah page 224 ;=) | 18:41 |
philiKON | and it tends to let people think in too complicated ways | 18:41 |
philiKON | because they're used to thinking these ways | 18:41 |
philiKON | exactly! | 18:41 |
drzoltron_ | z3 is super cool, I learn extremely much about component arch. these days | 18:41 |
drzoltron_ | ;) | 18:41 |
philiKON | more like page 225 | 18:42 |
drzoltron_ | ok | 18:42 |
philiKON | um, no, that's not it either | 18:42 |
philiKON | p 231 | 18:42 |
philiKON | that's the browser view | 18:42 |
drzoltron_ | another question | 18:42 |
drzoltron_ | I want to have a selection field with a vocab / values which are created when you load the form | 18:43 |
drzoltron_ | how do I call a classe's method from the interface where the field is defined ? | 18:43 |
drzoltron_ | ok | 18:43 |
drzoltron_ | thanx | 18:43 |
philiKON | what do you want to call from the interface?? | 18:44 |
philiKON | and why? | 18:44 |
philiKON | usually you have a choice field: | 18:44 |
philiKON | Choice(..., vocabulary='Foobars') | 18:44 |
drzoltron_ | a method that generates the vocab | 18:44 |
philiKON | and somewhere out of magic it gets the 'Foobars' vocabulary | 18:44 |
philiKON | ok, you don't give it a method | 18:44 |
philiKON | you give it a vocab name | 18:45 |
drzoltron_ | ok, what if the Foobars is not static but generated ? | 18:45 |
philiKON | read the chapter on vocabs | 18:45 |
drzoltron_ | ok, will .) | 18:45 |
philiKON | of course 'Foobars' is generated | 18:45 |
*** sashav has joined #zope3-dev | 18:45 | |
philiKON | that's what vocabularies is all about | 18:45 |
philiKON | they're dynamic | 18:45 |
philiKON | context-dependent | 18:45 |
drzoltron_ | ah, theres a whole chapter ;) | 18:45 |
drzoltron_ | thanx, will do ;) | 18:45 |
*** sm has joined #zope3-dev | 18:46 | |
philiKON | drzoltron_, see page 289 for a simple vocabulary factory (kitchenToolVocabulary) | 18:47 |
philiKON | see, it takes a context paramter | 18:47 |
philiKON | so that makes it context-dependent | 18:47 |
philiKON | in this case the vocab factory is a simple function that returns a SimpleVocbulary instance | 18:47 |
philiKON | it could also be a whole class complying with the IVocabulary interface | 18:47 |
drzoltron_ | nice, thanx alot :) | 18:48 |
drzoltron_ | owe you 1,2 or 12 beers ;) | 18:48 |
philiKON | sure ;) | 18:49 |
drzoltron_ | or some Eierlikör, you decide ;) | 18:49 |
philiKON | i take the beer, thank you very much ;) | 18:49 |
drzoltron_ | no salmonella then ;=) | 18:49 |
philiKON | nope | 18:49 |
drzoltron_ | brb, food ;) | 18:50 |
*** sashav_ has joined #zope3-dev | 18:51 | |
philiKON | brb, sleep :) | 18:51 |
*** sashav has quit IRC | 18:51 | |
*** sashav_ is now known as sashav | 18:51 | |
*** philiKON has quit IRC | 18:51 | |
*** sashav has quit IRC | 18:59 | |
*** J1m has quit IRC | 19:35 | |
*** sm is now known as sm-market | 19:36 | |
*** sashav has joined #zope3-dev | 19:43 | |
*** Aiste has quit IRC | 20:15 | |
*** zmi_junkie has joined #zope3-dev | 20:40 | |
*** roym has joined #zope3-dev | 21:03 | |
roym | Is anyone out there having difficulty connecting to z3 via emacs(ange-ftp)? I pulled the latest trunk and ange-ftp stopped working (regular ftp from the shell is OK however!) | 21:05 |
srichter | I don't that that many people connect to Zope 3 via ange-ftp | 21:06 |
srichter | you need to figure out which server command fails | 21:06 |
roym | I get: | 21:07 |
roym | 200 PORT OK | 21:07 |
roym | 550 /-al : No such file or directory. | 21:07 |
roym | ls "-al /." /tmp/ange-ftp2356sDI | 21:07 |
*** suse-joe has joined #zope3-dev | 21:07 | |
srichter | ah, it might be that the twisted server does not support ls options | 21:07 |
srichter | certainly not a Zope issue | 21:08 |
roym | Is it possible to not use twisted for now? | 21:08 |
yota | maybe ask on twisted ml ? | 21:08 |
roym | no, I mean is the server (twisted vs the old one) settable via a configuration option? | 21:09 |
srichter | I am not sure how easy it is; it's possible but we did not try hard to make the switch very easy | 21:10 |
srichter | you have to change z3.py to point to server instead of twisted and change the configuration file to the old format | 21:10 |
*** MiUlEr has quit IRC | 21:10 | |
roym | ok - thanks... I think I'll pursue yota's suggestion and see if there are known issues w/twisted and ange-ftp. | 21:11 |
srichter | roym: note that the twisted FTP server has only recently been rewritten | 21:14 |
srichter | it used to suck big time | 21:14 |
srichter | it might be simply a feature they have not implemented yet | 21:14 |
yota | srichter: why to keep zserver in the bundle if the switching is hard ? | 21:16 |
yota | roym: it exists also chans on freenode : #twisted and #twisted.web | 21:19 |
roym | srichter: I think I see the issue - twisted does not support options to "ls" (ange-ftp issues "-la" by default), so it should be a simple matter of turning the options off. | 21:20 |
*** roym has quit IRC | 21:38 | |
*** drzoltron_ has quit IRC | 21:55 | |
*** efge has quit IRC | 22:04 | |
srichter | yota: because we need to deprecate in stages | 22:12 |
srichter | right now, all existing Zope 3 instances if updated to 3.2 will keep using ZServer, so that there are no surprises | 22:13 |
srichter | this is very important to a lot of people | 22:13 |
yota | oki, thx | 22:15 |
*** SiggyF has joined #zope3-dev | 22:27 | |
*** strichter has joined #zope3-dev | 22:28 | |
*** srichter has quit IRC | 22:28 | |
*** strichter is now known as srichter | 22:28 | |
*** ChanServ sets mode: +o srichter | 22:28 | |
*** suse-joe has left #zope3-dev | 22:48 | |
*** drzoltron_ has joined #zope3-dev | 22:50 | |
drzoltron_ | how do I call and render a BrowserView and hand some parameters over ? | 22:52 |
*** newpers has joined #zope3-dev | 22:58 | |
*** jinty has joined #zope3-dev | 23:04 | |
*** jinty has quit IRC | 23:05 | |
*** mp has quit IRC | 23:12 | |
*** ignas has quit IRC | 23:18 | |
*** MJ has quit IRC | 23:22 | |
*** MJ has joined #zope3-dev | 23:23 | |
drzoltron_ | how do I pack the ZODB in z3 ? | 23:58 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!