Re: [Zope] Why Not Zope? 'Cos I like to bitch! ;-)
Andy McKay <[EMAIL PROTECTED]> said: >The heavy lifting, logic and anything more should be in python. I won't >pretend its particularly easy Zope hurt quite a lot some times, but we got >there.. > I think this is the biggest problem of Zope. Contrary to Python, Zope makes it /hard/ to do things the simple, clean, correct way. The easiest way to add behavior to Zoplications is to add more DTML tags to your web pages; the second-easiest way is Python methods but it's not clear to a lot of people what the calling semantics are; still a bit harder is to write special ZClasses with Python methods that encapsulate your behavior (you can only add ZClasses at one point in the tree, and that's always /not/ the point you are doing all the other work), and the hardest way is to separate stuff out in products (which means, as far as I understood it, hitting lots of "Restart" buttons and certainly means that you loose the multi-versioning capability of ZODB. There are lots of similarities between Zope and Smalltalk. Just gimme a decent class browser! ;-) -- Cees de Groot http://www.cdegroot.com <[EMAIL PROTECTED]> GnuPG 1024D/E0989E8B 0016 F679 F38D 5946 4ECD 1986 F303 937F E098 9E8B ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Problem with a calling a stored procedure which returns data
Hi I am trying to run a stored procedure from Zope against Sybase 11.0.3. However it is returning the following error Error Type: Error Error Value: ct_command(): user api layer: external error: This routine cannot be called while results are pending for a command that has been sent to the server. The stored procedure is supposed to return several records. I am using the SybaseDAv2. Thanks Austin ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] ZDGChart Product
Hi I have modified ZDGChart to display multiple columns of data returned from a ZSQL query. However I have not been able to find a way to display a legend which describes what data each line on the graph represents. Can anyone tell me how to display a legend. Thanks Austin
Re: [Zope] Why not normal acl_users?
Chris Withers wrote: > > > and also nice > > wolud be a search-function which gives an administrator a list of all the > > users with all the roles in the system. > > That's not going to be pretty, as that's an _awful_ lot of data ;-) membership can be set up to do this :^) Can you say ZCatalog? I knew you could! :^) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: DC and the PTK?
Paul Everitt wrote: > > I'll take the blame on this miscommunication. I'm the one that told > Gary not to take support contracts on PTK. > > We have a nearly ironclad support policy: we don't support stuff that > isn't official. We won't support ZDiscussions, for instance. If we had > to support everything we made available, then we'd stop making as much > stuff available. > > Consulting, on the other hand, is a different story. As Ethan noted, we > use PTK stuff in our consulting engagements, because we are directly > involved in the development of the solution and know where the bodies > are buried. :^) Ok, then. What is the difference (or the line) between support and consultation? And on which side of it does a plea of "Please help me make this work, I've got money" fall? I've certainly been in the position of trying to get something to work, and asking "How much to fix this?" without even getting a response. Michael Bernstein. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Intercepting NotFoundError with standard_error_message
I need to intercept NotFoundErrors, but am banging my head against a problem Normally this can be done by changing the standard_error_message, but there I have some questions: considering a minimal standard_error_message: -- Error! -- When I provoke an error by referencing a non-existent resource the message 'Error!' gets displayed, but there is also a traceback which I cannot suppress, it always gets displayed as a HTML comment and now my questions 0: How can I suppress this traceback totally, my main goal Even on zope.org whe NotFoundError returns such a hidden traceback :( 1: when I remove the standard_header and footer from my standard_error_message I would expect that just the word 'Error' gets displayed, But no way, then I get a detailed Zope Error message with a traceback. How can I archive that I just get the word 'Error!' or something similar as a result. I need that desperately because such an exception is unusable when calling methods via XMLRPC, there I need a simple clear error code and not a long traceback message. 2: what makes me most happy would be returning a single XMLRPC marshallable value by dtml-return: I already have such a standard_error_message but it just works for user-generated exception, but not for the #@%&§$ NotFoundError I cannot believe that it is not possible to do error handling of NotFoundErrors but I've not found any information on that. Thanks in advance phil ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Instance within Instance
Tim Cook wrote: > The folder doesn't exist until after the first response. So you > can't GET it's context in the same call you create it in. > > Make more sense? It makes perfect sense, but still doesn't work. I returned it to the two file call setup as you gave it to me and I get the same Authorization Failed error. From the folder (as it originally worked) it DOES work from a single method. It's probably not neccessary for us to continue this. If I need to do this, I can set up a clone operation much like "Stan's ZAcme Website" from the ZCMG. I'm not sure there is any effective difference - it's just not as neat... Thanks again for all your help... ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] import/export
Hi, I have already copied the gadfly table to other mechine.There when i use a existing query for lookup table details it works. But i can't add a new record using the existing script. Thanks, jacintha ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] python methods
> The Doctor What <[EMAIL PROTECTED]> wrote: > * Tres Seaver ([EMAIL PROTECTED]) [001130 09:06]: > > Chris Withers <[EMAIL PROTECTED]> wrote: > > 'lambda' is actually a keyword, not a function, and hence works > > fine in PM0.1.7. 'map()', 'filter()', et al., were deemed to > > be susceptible to being used in DOS attacks, and hence are not > > permitted in through-the-web code (they would need to be added > > to the '_' namespace, like 'str()', et aliae). > > For those of us who are trying to figure out everything at a low > level, where would this be in the source? * 'lambda' as keyword: http://www.python.org/doc/1.5.2p2/ref/lambda.html#l2h-317 * DTML sets up the "safe" functions (available in the '_' namespace), in: $SOFTWARE_HOME/DocumentTemplate/DT_Util.py. * "Old" PythonMethod stuff tries hard to limit the user to the same set of "builtins" as DTML; see: $INSTANCE_HOME/Products/PythonMethod/Guarded.py (note that TemplateDict's "safe" methods are borrowed). Tres. -- === Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Custom tpValues for dtml-tree
I'm trying to write a method that works with dtml-tree. It works great, until I try to expand a node :( Here's what I've got: class Foo: __allow_access_to_unprotected_subobjects = 1 def __init__(self, item): self.title = item.title self.items = item.items def tpValues(self): "tpValues" r = [] for item in self.items: foo = Foo(item) r.append(foo) return r class Module(Folder, etc, etc, etc,): def tree(self): "used to create a dtml-tree" r = [] for item in self.items: foo = Foo(item) r.append(foo) class Bar: __allow_access_to_unprotected_subobjects = 1 def tpValues(self): "tpValues" return self.r b = Bar() b.r = r return b Then from a dtml method inside an instance of Module I have: This works fine for the first page, but once I try to expand an item I get: Error Type: AttributeError Error Value: 'tuple' object has no attribute 'append' Traceback (innermost last): File /usr/src/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/src/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/src/Zope-2.2.2-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/src/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/src/Zope-2.2.2-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: randy2) File /usr/src/Zope-2.2.2-src/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: randy2) File /usr/src/Zope-2.2.2-src/lib/python/OFS/DTMLMethod.py, line 172, in __call__ (Object: randy2) File /usr/src/Zope-2.2.2-src/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__ (Object: randy2) File /usr/src/Zope-2.2.2-src/lib/python/TreeDisplay/TreeTag.py, line 154, in render (Object: forums(orderby='dir')) File /usr/src/Zope-2.2.2-src/lib/python/TreeDisplay/TreeTag.py, line 237, in tpRender File /usr/src/Zope-2.2.2-src/lib/python/TreeDisplay/TreeTag.py, line 566, in apply_diff (Info: ([None, ([140975456, []],)], [140974880, 140974088])) AttributeError: (see above) I must be missing something simple here... But I haven't been able to find it. Thanks for you help, -Randy P.S. this is the second time I've tried to become a Zope convert, and thanks to a lot of help from this list I think I might make it this time. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Is it possible to build a folder zclass with user folder built in?
I built a user folder with LoginManager, tested it on normal folder. Then I tried to build a folder zclass containing the tested LM user folder, hoping that, when I instantiate this zclass, I have a folder ready for customized authentication. I tried this on objectmanager baseclass and ofs:folder baseclass, neither worked the way I anticipated, just weird behaviors. It seems to me the user folder works inside the zclass folder (under the product tree) rather than in its instance. Any hint please? Dirksen __ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Finding PARENTS in an external method.
Max, Try self.REQUEST.PARENTS[-1]. Phil - Original Message - From: "Max M" <[EMAIL PROTECTED]> To: "Zope@Zope. Org" <[EMAIL PROTECTED]> Sent: Thursday, November 30, 2000 10:50 PM Subject: [Zope] Finding PARENTS in an external method. | I have an external Method. How do I call PARENTS[-1] from it? | in dtml it would be: | | I have tried something like: | self.PARENTS[-1].objectValues('Folder') | | I have also checked if PARENTS get passed to the method like: | myMethod(self, PARENTS=None): | | To get a list of the root's Folder's, but no luck. | | Regards Max M | | Max M. W. Rasmussen,Denmark. New Media Director | private: [EMAIL PROTECTED] work: [EMAIL PROTECTED] | - | Specialization is for insects. - Robert A. Heinlein | | ___ | Zope maillist - [EMAIL PROTECTED] | http://lists.zope.org/mailman/listinfo/zope | ** No cross posts or HTML encoding! ** | (Related lists - | http://lists.zope.org/mailman/listinfo/zope-announce | http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Finding PARENTS in an external method.
Thank you... just what the doctor ordered. It was the passing of PARENTS that did the trick I was looking for. Regards maxm Max M. W. Rasmussen,Denmark. New Media Director private: [EMAIL PROTECTED] work: [EMAIL PROTECTED] - Specialization is for insects. - Robert A. Heinlein -Original Message- From: michael angelo ruberto [mailto:[EMAIL PROTECTED]] i tried this and it works. the output is pretty ugly if you return it to Zope though. maybe someone knows how to clean it up. def index(self, PARENTS, REQUEST): n = PARENTS[0].objectItems(['File','DTML Document','Folder','ListMate','DTML Method']) n.sort() ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Finding PARENTS in an external method.
PARENTS is part of REQUEST so: def test(self, REQUEST): msg = '' for parent in REQUEST.PARENTS: msg = msg + str(parent.absolute_url()) + '' return "%s" % msg Is a convoluted way of listing parents urls... -- Andy McKay, Developer. ActiveState. - Original Message - From: "michael angelo ruberto" <[EMAIL PROTECTED]> To: "Max M" <[EMAIL PROTECTED]>; "Zope@Zope. Org" <[EMAIL PROTECTED]> Sent: Thursday, November 30, 2000 3:19 PM Subject: RE: [Zope] Finding PARENTS in an external method. > hi, Max > > i tried this and it works. the output is pretty ugly if you return it to > Zope though. maybe someone knows how to clean it up. > > def index(self, PARENTS, REQUEST): > n = PARENTS[0].objectItems(['File','DTML Document','Folder','ListMate','DTML > Method']) > > n.sort() > #n.reverse() > return n > > this example just sorts the list and sends it back. you can remove the > sorting code. i named this method index_list and called it as such: > > > > Michael Angelo Ruberto > Webmaster, Webmind Inc. > www.webmind.com > > ps: if you run this example look at the HTML source for results page. you > should see something interesting like this: > > ('C_document', ), > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Max M > Sent: Thursday, November 30, 2000 5:50 PM > To: Zope@Zope. Org > Subject: [Zope] Finding PARENTS in an external method. > > > I have an external Method. How do I call PARENTS[-1] from it? > in dtml it would be: > > I have tried something like: > self.PARENTS[-1].objectValues('Folder') > > I have also checked if PARENTS get passed to the method like: > myMethod(self, PARENTS=None): > > To get a list of the root's Folder's, but no luck. > > Regards Max M > > Max M. W. Rasmussen,Denmark. New Media Director > private: [EMAIL PROTECTED] work: [EMAIL PROTECTED] > - > Specialization is for insects. - Robert A. Heinlein > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Why Not Zope? 'Cos I like to bitch! ;-)
Inspired by this I wrote a quote db in about 3 minutes using Zope, sometimes I just love it to bits. http://dna.yi.org/Quotes -- Andy McKay, Developer. ActiveState. - Original Message - From: "Andy McKay" <[EMAIL PROTECTED]> To: "Andy McKay" <[EMAIL PROTECTED]>; "Chris Withers" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, November 30, 2000 2:42 PM Subject: Re: [Zope] Why Not Zope? 'Cos I like to bitch! ;-) > I have to say though reading his site a few interesting quotations popped up > (http://www.amk.ca/quotations/python-quotes.html) > > I picture a lump of inanimate flesh (a result from a relational database > query) being infused with the spark of life (object behavior, aka class). > -Jim Fulton on the term "pluggable brains", 5 Jul 1999 > > (On the statement print "42 monkeys"+"1 snake") BTW, both perl and Python > get this wrong. Perl gives 43 and Python gives "42 monkeys1 snake", when the > answer is clearly "41 monkeys and 1 fat snake". > -Jim Fulton, 10 Aug 1999 > > When Jim [Fulton] says "tricky" it means your brain could explode. > -Michel Pelletier, 15 Dec 1999 > > :) > > For those, thanks... > > -- > Andy McKay, Developer. > ActiveState. > > - Original Message - > From: "Andy McKay" <[EMAIL PROTECTED]> > To: "Chris Withers" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Thursday, November 30, 2000 2:18 PM > Subject: Re: [Zope] Why Not Zope? 'Cos I like to bitch! ;-) > > > > > > Hi guys, > > > > I found this article written by someone from Quixote concerning Zope, > > > > describing its weaknesses and possible future development > > > > http://www.amk.ca/python/writing/why-not-zope.html > > > > > > This guy is quite far up his own arse :-) > > > > I agree and Im just agreeing with what Chris said but putting it in a > > different way. > > > > His main arguement here seem to be that building complicated stuff in DTML > > sucks. He's right it does, but you shouldn't be building big complicated > > stuff in DTML (as Chris says). > > > > We almost exclusively write our code in python which means: > > -you can grep it > > -you can use CVS > > -you can write any test suite you like > > > > For most small applications DTML can suffice, but when it gets large you > > should separate your code the way its intended, DTML is for simple logic > and > > presentation ONLY. Whilst PythonMethods are cool, I would naturally stray > > away from them for the above reasons for anything longer than about 5 > lines. > > > > The heavy lifting, logic and anything more should be in python. I won't > > pretend its particularly easy Zope hurt quite a lot some times, but we got > > there.. > > > > > It's probably more useful to work around the problems he describes > > > rather than bitching about them and telling people not to use Zope: > > > > > > The 'no grep' is probably the most serious of his points. You can easily > > > get around it though, by using a ZCatalog. Admittedly, a decent search > > > and replace interface (which I'm plugging for on zope-dev ;-) would be > > > really nice (Zope 3? ;-) > > > > We actually tried cataloging the dtml... and it didnt work. This can be a > > pain I agree. > > > > [..] > > > The test suite stuff is true for any web application, as has been > > > discussed on the XP lists (so I'm told ;-) That said, there's ZUnit and > > > PyUnit now, so I'm not sure that his opinion on this is valid at all. > > > > You can write a your own test suite and for most web applications thats > what > > people do. > > > > > His comments about DTML are all valid, but it's a choice he'd made to > > > write logic in DTML and he's a fool for doing so. IMNSHO, all 'logic' > > > should be kept in python and you should never need to use the "" in a > > > DTML tag. > > [..] > > > > Hear, hear. As above, the "" is useful though... > > > > [..] > > > Yes, it can be confusing, but maybe you should just write > > > code which doesn't make assumptions about variables, or handles the > > > cases when they're not there. The same is true of acquisition and the > > > namespaces concepts, maybe with better documentation, people like him > > > wouldn't have such problems. > > > > To me you should "never" make the assumptions you suggest regardless of > the > > environment... > > > > > Zope's built in FTP server is one of it's huge stengths, IMO. He hasn't > > > realised this and so bitches about it. You can always turn it off you > > > know! Likewise the HTTP server, run Zope as a CGI if you must! :P > > > > "Apache already exists and is highly flexible and configurable" of course > it > > is, use it if you want, grrr. TMTOWTODI. > > > > More comments I would like to argue with: > > > > "it's not apparent that DC is quickly responding to fixes." > > > > I think DC and this group are great at responding to fixes, especially > > anything serious or security related. Ok there are still a few bugs out > > there that havent quite gone yet, but everybody ha
RE: [Zope] Finding PARENTS in an external method.
hi, Max i tried this and it works. the output is pretty ugly if you return it to Zope though. maybe someone knows how to clean it up. def index(self, PARENTS, REQUEST): n = PARENTS[0].objectItems(['File','DTML Document','Folder','ListMate','DTML Method']) n.sort() #n.reverse() return n this example just sorts the list and sends it back. you can remove the sorting code. i named this method index_list and called it as such: Michael Angelo Ruberto Webmaster, Webmind Inc. www.webmind.com ps: if you run this example look at the HTML source for results page. you should see something interesting like this: ('C_document', ), -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Max M Sent: Thursday, November 30, 2000 5:50 PM To: Zope@Zope. Org Subject: [Zope] Finding PARENTS in an external method. I have an external Method. How do I call PARENTS[-1] from it? in dtml it would be: I have tried something like: self.PARENTS[-1].objectValues('Folder') I have also checked if PARENTS get passed to the method like: myMethod(self, PARENTS=None): To get a list of the root's Folder's, but no luck. Regards Max M Max M. W. Rasmussen,Denmark. New Media Director private: [EMAIL PROTECTED] work: [EMAIL PROTECTED] - Specialization is for insects. - Robert A. Heinlein ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Finding PARENTS in an external method.
I have an external Method. How do I call PARENTS[-1] from it? in dtml it would be: I have tried something like: self.PARENTS[-1].objectValues('Folder') I have also checked if PARENTS get passed to the method like: myMethod(self, PARENTS=None): To get a list of the root's Folder's, but no luck. Regards Max M Max M. W. Rasmussen,Denmark. New Media Director private: [EMAIL PROTECTED] work: [EMAIL PROTECTED] - Specialization is for insects. - Robert A. Heinlein ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Why Not Zope? 'Cos I like to bitch! ;-)
I have to say though reading his site a few interesting quotations popped up (http://www.amk.ca/quotations/python-quotes.html) I picture a lump of inanimate flesh (a result from a relational database query) being infused with the spark of life (object behavior, aka class). -Jim Fulton on the term "pluggable brains", 5 Jul 1999 (On the statement print "42 monkeys"+"1 snake") BTW, both perl and Python get this wrong. Perl gives 43 and Python gives "42 monkeys1 snake", when the answer is clearly "41 monkeys and 1 fat snake". -Jim Fulton, 10 Aug 1999 When Jim [Fulton] says "tricky" it means your brain could explode. -Michel Pelletier, 15 Dec 1999 :) For those, thanks... -- Andy McKay, Developer. ActiveState. - Original Message - From: "Andy McKay" <[EMAIL PROTECTED]> To: "Chris Withers" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, November 30, 2000 2:18 PM Subject: Re: [Zope] Why Not Zope? 'Cos I like to bitch! ;-) > > > Hi guys, > > > I found this article written by someone from Quixote concerning Zope, > > > describing its weaknesses and possible future development > > > http://www.amk.ca/python/writing/why-not-zope.html > > > > This guy is quite far up his own arse :-) > > I agree and Im just agreeing with what Chris said but putting it in a > different way. > > His main arguement here seem to be that building complicated stuff in DTML > sucks. He's right it does, but you shouldn't be building big complicated > stuff in DTML (as Chris says). > > We almost exclusively write our code in python which means: > -you can grep it > -you can use CVS > -you can write any test suite you like > > For most small applications DTML can suffice, but when it gets large you > should separate your code the way its intended, DTML is for simple logic and > presentation ONLY. Whilst PythonMethods are cool, I would naturally stray > away from them for the above reasons for anything longer than about 5 lines. > > The heavy lifting, logic and anything more should be in python. I won't > pretend its particularly easy Zope hurt quite a lot some times, but we got > there.. > > > It's probably more useful to work around the problems he describes > > rather than bitching about them and telling people not to use Zope: > > > > The 'no grep' is probably the most serious of his points. You can easily > > get around it though, by using a ZCatalog. Admittedly, a decent search > > and replace interface (which I'm plugging for on zope-dev ;-) would be > > really nice (Zope 3? ;-) > > We actually tried cataloging the dtml... and it didnt work. This can be a > pain I agree. > > [..] > > The test suite stuff is true for any web application, as has been > > discussed on the XP lists (so I'm told ;-) That said, there's ZUnit and > > PyUnit now, so I'm not sure that his opinion on this is valid at all. > > You can write a your own test suite and for most web applications thats what > people do. > > > His comments about DTML are all valid, but it's a choice he'd made to > > write logic in DTML and he's a fool for doing so. IMNSHO, all 'logic' > > should be kept in python and you should never need to use the "" in a > > DTML tag. > [..] > > Hear, hear. As above, the "" is useful though... > > [..] > > Yes, it can be confusing, but maybe you should just write > > code which doesn't make assumptions about variables, or handles the > > cases when they're not there. The same is true of acquisition and the > > namespaces concepts, maybe with better documentation, people like him > > wouldn't have such problems. > > To me you should "never" make the assumptions you suggest regardless of the > environment... > > > Zope's built in FTP server is one of it's huge stengths, IMO. He hasn't > > realised this and so bitches about it. You can always turn it off you > > know! Likewise the HTTP server, run Zope as a CGI if you must! :P > > "Apache already exists and is highly flexible and configurable" of course it > is, use it if you want, grrr. TMTOWTODI. > > More comments I would like to argue with: > > "it's not apparent that DC is quickly responding to fixes." > > I think DC and this group are great at responding to fixes, especially > anything serious or security related. Ok there are still a few bugs out > there that havent quite gone yet, but everybody has been great. The good > community spirit for me is one of Zope's strengths. > > "Object traversal is complicated since objects can affect how they're > traversed" > > And again this is bad for what reason. More power to us I say. > > Thats it. > -- >Andy McKay, Developer. > > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > ___ Zope maillist -
Re: [Zope] Why Not Zope? 'Cos I like to bitch! ;-)
> > Hi guys, > > I found this article written by someone from Quixote concerning Zope, > > describing its weaknesses and possible future development > > http://www.amk.ca/python/writing/why-not-zope.html > > This guy is quite far up his own arse :-) I agree and Im just agreeing with what Chris said but putting it in a different way. His main arguement here seem to be that building complicated stuff in DTML sucks. He's right it does, but you shouldn't be building big complicated stuff in DTML (as Chris says). We almost exclusively write our code in python which means: -you can grep it -you can use CVS -you can write any test suite you like For most small applications DTML can suffice, but when it gets large you should separate your code the way its intended, DTML is for simple logic and presentation ONLY. Whilst PythonMethods are cool, I would naturally stray away from them for the above reasons for anything longer than about 5 lines. The heavy lifting, logic and anything more should be in python. I won't pretend its particularly easy Zope hurt quite a lot some times, but we got there.. > It's probably more useful to work around the problems he describes > rather than bitching about them and telling people not to use Zope: > > The 'no grep' is probably the most serious of his points. You can easily > get around it though, by using a ZCatalog. Admittedly, a decent search > and replace interface (which I'm plugging for on zope-dev ;-) would be > really nice (Zope 3? ;-) We actually tried cataloging the dtml... and it didnt work. This can be a pain I agree. [..] > The test suite stuff is true for any web application, as has been > discussed on the XP lists (so I'm told ;-) That said, there's ZUnit and > PyUnit now, so I'm not sure that his opinion on this is valid at all. You can write a your own test suite and for most web applications thats what people do. > His comments about DTML are all valid, but it's a choice he'd made to > write logic in DTML and he's a fool for doing so. IMNSHO, all 'logic' > should be kept in python and you should never need to use the "" in a > DTML tag. [..] Hear, hear. As above, the "" is useful though... [..] > Yes, it can be confusing, but maybe you should just write > code which doesn't make assumptions about variables, or handles the > cases when they're not there. The same is true of acquisition and the > namespaces concepts, maybe with better documentation, people like him > wouldn't have such problems. To me you should "never" make the assumptions you suggest regardless of the environment... > Zope's built in FTP server is one of it's huge stengths, IMO. He hasn't > realised this and so bitches about it. You can always turn it off you > know! Likewise the HTTP server, run Zope as a CGI if you must! :P "Apache already exists and is highly flexible and configurable" of course it is, use it if you want, grrr. TMTOWTODI. More comments I would like to argue with: "it's not apparent that DC is quickly responding to fixes." I think DC and this group are great at responding to fixes, especially anything serious or security related. Ok there are still a few bugs out there that havent quite gone yet, but everybody has been great. The good community spirit for me is one of Zope's strengths. "Object traversal is complicated since objects can affect how they're traversed" And again this is bad for what reason. More power to us I say. Thats it. -- Andy McKay, Developer. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] xen?
I am a zope newbie and I have downloaded Xen to try. I realise it is no longer being developed but has anyone got it to work with Zope2.2.4? Whatever I try and open it gives me the following error message: AttributeError Sorry, a Zope error occurred. Traceback (innermost last): File /usr/local/Zope224/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/Zope224/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/Zope224/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/Zope224/lib/python/ZPublisher/Publish.py, line 162, in publish File /usr/local/Zope224/lib/python/ZPublisher/BaseRequest.py, line 442, in traverse File /usr/local/Zope224/lib/python/Products/XUserFolder/GenericUserFolder.py, line 457, in validate (Object: Traversable) File /usr/local/Zope224/lib/python/Products/XUserFolder/GenericUserFolder.py, line 408, in _cookie_validate (Object: Traversable) File /usr/local/Zope224/lib/python/Products/XUserFolder/GenericUserFolder.py, line 258, in _recurse_validate (Object: Traversable) AttributeError: 'None' object has no attribute 'authenticate' Any ideas? Guy ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Re: [Zope-dev] ZUnit - feedback convocation
Hi, Michel Pelletier wrote: > > Lalo Martins wrote: > > > > Hi all > > > > I'trying to write a document on ZUnit and Unit Testing in > > general, following Michel's and Amos' documentation process. I > > wrote an outline, and now I'm stuck :-) anyone with a few free > > moments is welcome to take a look and send me some words. Also, > > anyone very interested in the subject is welcome to volunteer > > for editorial help (read the Process to know what this means). > > Where would we find this outline? > As attachment in the email?? :-) Ciao, Jochen -- -- Jochen Knuth WebMaster http://www.ipro.de IPRO GmbH Phone ++49-7152-93330 Steinbeisstr. 6 Fax ++49-7152-933340 71229 LeonbergEMail: [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] mysql & zope
Alexander DePauli writes: > ... using Zope management interface with custom objects ... The form actions of the Zope management interface are not built in. They are methods of the managed objects. This implies, if your objects override these management method, you get different behaviour. I am not sure, whether ZClass'es will allow you to override the methods. If not, you will need special Python base classes that implement the basic infrastructure for you ZClasses. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] SQL and dtml-tree
> ... dtml-tree with SQL tables ... There is a HowTo on zope.org about advanced usage of dtml-tree. Search for "tree". I think, it covers the use of "dtml-tree" with SQL tables. Alternatively, you may search the list archive (at NIP). There are several threads on this issue. Dieter ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Commercial Zope Commercial?
Greetings Zope Fans, I don't know how long this has been on the Web, but it got my attention: http://www.powernethk.com/~gobeyond/t2server/model_z.html Very interesting . . . ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] MySQL
http://www.zope.org/Members/alanpog/zmysqlda_steps -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of K H Subrahmanyan Sent: Thursday, November 30, 2000 4:08 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: [Zope] MySQL hi, I want to add MySQL to my ZOPE. Please help me in installing it. Please give the links, necessary information. thanks bye subrahmayan. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] has_permission in PythonMethod
I have this (internal) PythonMethod called filtered_meta_types user=self.REQUEST.AUTHENTICATED_USER meta_types=[] if callable( self.all_meta_types ): all=self.all_meta_types() else: all=self.all_meta_types for meta_type in all: if meta_type.has_key( 'permission' ): # this is always false :( if user.has_permission( meta_type['permission'], context ): meta_types.append( meta_type ) else: meta_types.append( meta_type ) return meta_types I do not get why the 'has_permission' condition is always false If I mimic this function in DTML (yuk), it *does* work. TIA, Stefan -- Things work better when plugged in ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] python methods
From: The Doctor What <[EMAIL PROTECTED]> > For those of us who are trying to figure out everything at a low > level, where would this be in the source? Here's an example of adding stuff to '_' using a monkey patch Product. Contents of __init__.py of directory Products/MoreBuiltins: def _AddBuiltins(): from urllib import urlopen, quote, unquote from base64 import decodestring, encodestring def same_type(self, a, b): return type(a)==type(b) def attr_map(self, o): r = o.__dict__.copy() for k in r.keys(): if k[:1] == '_': del r[k] return r class AnObject: def __init__(self, **kw): self.__dict__.update(kw) NewBuiltins = { 'list': list, 'tuple': tuple, 'map': map, 'filter': filter, 'reduce': reduce, 'urllib': AnObject(open=urlopen, quote=quote, unquote=unquote), 'base64': AnObject(decode=decodestring, encode=encodestring), 'same_type': same_type, 'attr_map': attr_map, } from DocumentTemplate.DT_Util import TemplateDict TemplateDict.__dict__.update(NewBuiltins) #call it _AddBuiltins() ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] VHost logs.
seb bacon wrote: >> Rob Miller wrote: >> >> In a manner of speaking, yes. That is, Apache needs to have correctly >> configured VirtualHost directives to handle the requests from the >> outside world appropriately, and Zope needs to have the SiteAccess >> product installed with correctly configured SiteRoots and access rules. >> It takes a little bit of time to figure out, but it works like a charm >> and is really quite simple, once you wrap your head around it. There's >> a great HOW-TO on this at http://www.zope.org/Members/anser/apache_zserver. > > > I would also point you to > > http://www.apache.org/docs/vhosts/mass.html > > for more info on the apache side, particularly this bit: > > The main disadvantage is that you cannot have a different log > file for each virtual host; however if you have very many virtual > hosts then doing this is dubious anyway because it eats file > descriptors. It is better to log to a pipe or a fifo and arrange > for the process at the other end to distribute the logs to the > customers (it can also accumulate statistics, etc.). This document refers to handling situations where you have a very large number of virtual hosts and don't want a separate VirtualHost directive for each one (because they're all very similar). This is not my case, but it could be the original poster's. You certainly CAN log to different log files if you have a VirtualHost directive for each host; I'm doing so. > > >> Another benefit of this setup is that it can allow for both regular HTTP >> and SSL connections to all of your sites, so you can remotely access the >> manage screens without sending your passwords in the clear. A HOW-TO >> for this lives at http://www.zope.org/Members/unfo/apache_zserver_ssl. >> I still haven't figured out a clean way to make it impossible to access >> sensitive areas UNLESS you're using SSL, however. Anyone out there >> doing this? > > > mod_rewrite is your friend. You just make a Rule that redirects > anyone accessing your site on port 80 to port 443, something like > this: > > > ServerName www.foobar.com > RewriteEngine on > RewriteRule ^/(.*) https://www.foobar.com/ > I don't want to force ALL access to port 443, only certain sections of the site which require authentication to access. I guess the above still holds true (your correction in a later message is noted), I just need to get more creative with my rewrite rules. Thanks for the tip. -rob ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] New Zope.org
Where'd the collector go? The link on the resources page is pointing to: http://www.zope.org:8080/Collector Ciao! -- When a trainstation is were a train stops what is a workstation? The Doctor What: "What, Doctor What" http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Status of HiperDom, again ;-) (Re: [Zope] Presentation & Object Model)
On Thu, Nov 30, 2000 at 01:20:06PM +, Chris Withers wrote: > Paul Everitt wrote: > > > > > Brian veto'd it, declaring it too ambitious. He's basically waiting for > > Zope to better figure out how to keep presentation separate from the object > > model. > > Been pretty quiet on the lists WRT HiperDOM, which I got the impression > was going to be about this. Are there any DC initiatives into this? > > Lalo, any word from the trenches? ;-) As I said, HiperDom is "stable", in that it can be used in production as is (IMHO). It's not 1.0 because it lacks documentation *and* we (I, Hiper and DC) would like to add some features before that. The current effort is on documentation. We have me and Martijn Pieters working on this officially (our base is the Wiki on dev.zope.org) and me and Michel Pelletier extra-oficially writing a more user-oriented manual in ZopeBook style. Any development of these "a few more features" is postponed to after the discussion about them in the Wiki settles down. The only thing that *can* happen before that, if I feel like it and have a free weekend, is a version of HiperDom based on 4DOM instead of the old xml-sig code. Version 1.0 definitely *will* be based on 4DOM, as that is the official DOM now for both Zope and Python, so I'd like to tackle that ASAP, but I don't think that will be possible as soon as I'd like it. []s, |alo + -- Hack and Roll ( http://www.hackandroll.org ) The biggest site for whatever-it-is-that-we-are. http://zope.gf.com.br/lalo mailto:[EMAIL PROTECTED] pgp key: http://zope.gf.com.br/lalo/pessoal/pgp Brazil of Darkness (RPG)--- http://zope.gf.com.br/BroDar ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Accessing methods in Python Objects
Hi Zopistas, My first message :-) How can access Python objects' methods from a DTML Method. I get An 'Unauthorized' exception. I would like to do the following: etc... where 'newObj()' is defined in an Extensions module as: import someObject # a module defining the someObject class def newObj(): return someObject.Object() Actually I must wrap methods in my extension module, not very clean :-/ Is it possible to create roles and permissions in Extensions modules ? And if yes, is a good fellow ready to explain how :-) Thanks in advance, Cyril Elkaim ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Re: DC and the PTK?
I'll take the blame on this miscommunication. I'm the one that told Gary not to take support contracts on PTK. We have a nearly ironclad support policy: we don't support stuff that isn't official. We won't support ZDiscussions, for instance. If we had to support everything we made available, then we'd stop making as much stuff available. Consulting, on the other hand, is a different story. As Ethan noted, we use PTK stuff in our consulting engagements, because we are directly involved in the development of the solution and know where the bodies are buried. :^) PTK is part of our march towards getting into content management, and I agree that we need to march quickly to a 1.0 release. --Paul Paul Everitt Digital Creations [EMAIL PROTECTED] 540.371.6909 - The Open Source Zope application server http://www.zope.org/ - Dennis Nichols wrote: > > At 11/29/00 03:42 PM, ethan mindlace fremen wrote: > >Dennis Nichols wrote: > > > >>At 11/28/00 11:34 AM, albert boulanger wrote: > >> > >>>Whether to go with portal products from Plumtree or iPlanet. > >> > >>If this implies that you are considering using Zope's PTK, then you > >>should be aware of this: You can *not* get commercial support from > >>Digital Creations for PTK because PTK is not a released product. If you > >>think you may need such support before PTK gets to 1.0, then you had > >>best not use the PTK. But that's no reason to not use the rest of Zope. > > > > > >This needs to be clarified. We actively do consulting with the PTK. > >If you want to enter into a consulting contract with Digital Creations > >that involves the PTK, that's not a problem. > > > >If you decide you want to use the PTK yourself, there exists a mailing > >list and a product tracker. (see http://www.zope.org/Products/PTK ) The > >PTK is under heavy development and is not a full release yet, so that does > >need to be taken into account if you wish to use it yourself. > > What Ethan says, however true it may be, is contrary to my experience. I > worked on developing a site based on PTK for several months and was within > a month of going live, but had problems I could not solve, either alone or > with the help of the mailing lists. I contacted DC via email, explained > what my problems were, and asked how to arrange for consulting time. That > was 11 weeks ago, on 10 Sept 2000. The very next day I received an email > from Gary Graham ([EMAIL PROTECTED], Director, Sales & Marketing) stating: > > "PTK is a 0.01 release and not commercially supported yet. Zope is > commercially supported yet. Zope.org is the best PTK source at > present until we are able to release a commercially supportable > version." > > Of course, PTK wasn't a 0.01 release at that point, but the message was > clear. That caused me to (a) look for a substitute not using Zope, of which > I found nothing worth considering, and (b) expend an extra two months > redeveloping the site, still using Zope but not using the PTK. This caused > substantial lateness in the project launch as well as considerable > additional expense. > > As you might imagine, I was none too pleased at not being able to obtain > consulting in September. To hear that consulting really was available isn't > about to make me any happier! > > So Ethan, what is the story here? > > -- > Dennis Nichols > [EMAIL PROTECTED] > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] sqlgroup
Hi, Is there a reason why the attribute 'having' doesn't exists? I want to use this way when the sql-test tag contains nothing, also the having clause is not attached to the query. Why does 'where' exists and 'having' not? Is there another way to mimic 'having'? Thanks, Tom. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] New Zope.org
Congrats on the clusters. We are all waiting for a full detailed description of how it works.. (ie, logs, products, load balancing, speed, etc). J At 1:26 AM -0500 11/30/2000, emf wrote: >Zopatistas! > >Zope.org is finally living in its new home. > >Right now, you may be getting zope.org through the old apache, so >don't be surprised if it's a tad slow. By late tomorrow, just about >everybody's dns should have updated to the new IP address. > >If you want to know, do a nslookup www.zope.org: you should get >63.102.49.33 as your answer. > >When I finally wake up tomorrow, the first thing I'm going to do is >start working on a write-up of what the new zope setup is all about. > >Thanks for your patience! > >ethan mindlace fremen >Zopatista Community Liason > > >___ >Zope maillist - [EMAIL PROTECTED] >http://lists.zope.org/mailman/listinfo/zope >** No cross posts or HTML encoding! ** >(Related lists - http://lists.zope.org/mailman/listinfo/zope-announce >http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] dtml-tree stuff
I have a similar need and have found the How-To's cryptic also. I too get company1 over and over. Original Message dated 11/30/00, 3:12:00 PM Author: Mike Kelland <[EMAIL PROTECTED]> Re: [Zope] dtml-tree stuff: I think I may not have asked a specific enough question last time round. I'll try it again. I've been looking through the How-To's and the documentation and the dtml-tree stuff that I have found seems exceedingly cryptic. The closest that I've come to a solution is the following code: where getAllClientNames looks like: select company_name,clientID from client; and getClientsForProjects looks like: select company_name, clientID from client where deleted = 0 and clientID = ; This gives me a tree structure which, when I expand company1 gives me company1 again and again (ie Company1 Company1 Company1 Company1 etc as deep as I care to go Company2 Company2 etc Company3 Company4 What I'm trying to do is list my company name as the tree branch and have the sub headings of each branch be my projects for that company. Can anyone help? Thanks very much Mike Kelland [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] date in Z Gadfly Database
Note that Gadfly does not support the DATE datatype. You can use VARCHAR to store a string, or switch to a different database, such as PostgreSQL (my personal preference) or MySQL. The answer to your question is found here: http://www.chordate.com/kwParsing/gadfly.html#table The main Gadfly pages are here: http://www.chordate.com/gadfly.html Troy -Original Message- From: Angietel [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 23, 2000 2:16 AM To: [EMAIL PROTECTED] Subject: [Zope] date in Z Gadfly Database When i create a table, one of the fields is consider as date type, but the Z Gadfly Database does not allow me to do that, it only accepts INTEGER instead of DATE type. The following is my SQL for creating a table:- CREATE TABLE customer (custid VARCHAR(10), custname VARCHAR(15), custactdate DATE, custadd1 VARCHAR(30), custadd2 VARCHAR(30)) Please let me know if i got an error.Thank You. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] python methods
* Tres Seaver ([EMAIL PROTECTED]) [001130 09:06]: > Chris Withers <[EMAIL PROTECTED]> wrote: > 'lambda' is actually a keyword, not a function, and hence works > fine in PM0.1.7. 'map()', 'filter()', et al., were deemed to > be susceptible to being used in DOS attacks, and hence are not > permitted in through-the-web code (they would need to be added > to the '_' namespace, like 'str()', et aliae). For those of us who are trying to figure out everything at a low level, where would this be in the source? Ciao! -- When a trainstation is were a train stops what is a workstation? The Doctor What: Un-Humble http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Why Not Zope? 'Cos I like to bitch! ;-)
> > I found this article written by someone from Quixote concerning Zope, > > describing its weaknesses and possible future development > > http://www.amk.ca/python/writing/why-not-zope.html > > No CVS is also a problem, but with the improvements in the History tab > and the like, this less of an issue. Besides, it's again easy to work > around by keeping CVS-ish stuff on the filesystem either by putting them > in python products or HTMLFiles. There's even ZCVSMixing should you > really be pedantic. Or put the business logic methods in a LocalFS and use CVS on the files. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] New Zope.org
emf wrote: > > Zopatistas! > > Zope.org is finally living in its new home. > > Right now, you may be getting zope.org through the old apache, so don't > be surprised if it's a tad slow. By late tomorrow, just about > everybody's dns should have updated to the new IP address. > > If you want to know, do a nslookup www.zope.org: you should get > 63.102.49.33 as your answer. > > When I finally wake up tomorrow, the first thing I'm going to do is > start working on a write-up of what the new zope setup is all about. Was this the 'stealth' project? Michael Bernstein. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] login dialog text
Thanks a lot! Do you know whether it's also possible to set a folder based variable within Zope to allow for different messages when logging into different folders? Ragnar >On Thu, 30 Nov 2000, Ragnar Beer wrote: > >> Hi Zopistas! >> >> When users connect to a restricted area a dialog box pops up that >> looks more or less like this: >> >> >> Enter user name for Zope at myhost: >> User: _ >> Password: _ >> >> >> Where and how can I change the content of the first line so that it >> would e.g. read "Enter user name for funky stuff at myhost"? > >you can put the following in your start script somewhere before the exec > >Z_REALM='my funky stuff' >export Z_REALM > >HTH, >Stefan ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] dtml-tree stuff
I think I may not have asked a specific enough question last time round. I'll try it again. I've been looking through the How-To's and the documentation and the dtml-tree stuff that I have found seems exceedingly cryptic. The closest that I've come to a solution is the following code: where getAllClientNames looks like: select company_name,clientID from client; and getClientsForProjects looks like: select company_name, clientID from client where deleted = 0 and clientID = ; This gives me a tree structure which, when I expand company1 gives me company1 again and again (ie Company1 Company1 Company1 Company1 etc as deep as I care to go Company2 Company2 etc Company3 Company4 What I'm trying to do is list my company name as the tree branch and have the sub headings of each branch be my projects for that company. Can anyone help? Thanks very much Mike Kelland [EMAIL PROTECTED]
Re: [Zope] python methods
Chris Withers <[EMAIL PROTECTED]> wrote: > > Terry Kerr wrote: > > > > Hi, > > > > Is there any way to get access to inbuild python functions like 'filter' > > and 'lambda' within pythonMethods? > > I think the powers that be decided they were 'unsafe' :-( > > Can anyone confirm or deny? 'lambda' is actually a keyword, not a function, and hence works fine in PM0.1.7. 'map()', 'filter()', et al., were deemed to be susceptible to being used in DOS attacks, and hence are not permitted in through-the-web code (they would need to be added to the '_' namespace, like 'str()', et aliae). Tres. -- === Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] login dialog text
On Thu, 30 Nov 2000, Ragnar Beer wrote: > Hi Zopistas! > > When users connect to a restricted area a dialog box pops up that > looks more or less like this: > > > Enter user name for Zope at myhost: > User: _ > Password: _ > > > Where and how can I change the content of the first line so that it > would e.g. read "Enter user name for funky stuff at myhost"? you can put the following in your start script somewhere before the exec Z_REALM='my funky stuff' export Z_REALM HTH, Stefan ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] DC and the PTK?
Dennis Nichols <[EMAIL PROTECTED]> wrote: > At 11/29/00 03:42 PM, ethan mindlace fremen wrote: > >Dennis Nichols wrote: > > > >>At 11/28/00 11:34 AM, albert boulanger wrote: > >> > >>>Whether to go with portal products from Plumtree or iPlanet. > >> > >>If this implies that you are considering using Zope's PTK, then you > >>should be aware of this: You can *not* get commercial support from > >>Digital Creations for PTK because PTK is not a released product. If you > >>think you may need such support before PTK gets to 1.0, then you had > >>best not use the PTK. But that's no reason to not use the rest of Zope. > > > > > >This needs to be clarified. We actively do consulting with the PTK. > >If you want to enter into a consulting contract with Digital Creations > >that involves the PTK, that's not a problem. > > > >If you decide you want to use the PTK yourself, there exists a mailing > >list and a product tracker. (see http://www.zope.org/Products/PTK ) The > >PTK is under heavy development and is not a full release yet, so that does > >need to be taken into account if you wish to use it yourself. > > What Ethan says, however true it may be, is contrary to my experience. I > worked on developing a site based on PTK for several months and was within > a month of going live, but had problems I could not solve, either alone or > with the help of the mailing lists. I contacted DC via email, explained > what my problems were, and asked how to arrange for consulting time. That > was 11 weeks ago, on 10 Sept 2000. The very next day I received an email > from Gary Graham ([EMAIL PROTECTED], Director, Sales & Marketing) stating: > > "PTK is a 0.01 release and not commercially supported yet. Zope is > commercially supported yet. Zope.org is the best PTK source at > present until we are able to release a commercially supportable > version." I think we need to distinguish between "support" and "consulting". DC is primarily a *consulting* company (we build custom software for our clients), which also sells support contracts for Zope. Because the PTK is not (yet) a "released product", we don't (yet) sell support contracts for it; we *do* use it in consulting engagements, however. Tres. -- === Tres Seaver[EMAIL PROTECTED] Digital Creations "Zope Dealers" http://www.zope.org ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] mysql & zope
Hi Ruediger, You might consider ZPatterns. It allows you to develop applications with ZODB, and then, later, 'easily' switch to other forms of attribute storage for your objects. -steve > "Alexander" == Alexander DePauli <[EMAIL PROTECTED]> writes: Alexander> Hi Zopistas! Alexander> we are looking for a method to do a better integration Alexander> of mysql 3.23.27 with zope 2.2.2. (we are using the Z Alexander> MySQL database adapter Z MySQL DA 1.1.3.) Alexander> We have to store data in a mysql database - we can´t Alexander> use ZODB because we need the data accessible by other Alexander> programs via ODBC. Alexander> We habe implemented several ZClasses like "customer", Alexander> "product" and "orders". We store their instances Alexander> (eg. each product, customer and so on) to the Alexander> mysql-database. Alexander> Our problem: we can´t use the standard ZOPE management Alexander> interface to manage the objects, because the methods of Alexander> this interface store content to the ZODB - and not to Alexander> the mysql-database. Alexander> Is there a way to extend the standard ZOPE management Alexander> interface with additional mysql statements? For Alexander> example: we select an object in a zope folder, press Alexander> the ZOPE Delete-Button, then this object is deleted on Alexander> the mysql-database, not on the ZODB? Alexander> For each zclass (customer, products, orders) we need Alexander> these extra methods (Delete, Update, Insert ...), so Alexander> our thought is that we would prefer to use the ZOPE Alexander> management interface to do this instead of programming Alexander> "extra methods" which obviously can't be used within Alexander> the standard ZOPE management interface. Alexander> Hope there is somebody out there with an similarly Alexander> problem solved. Alexander> best regards Alexander> Ruediger ~ Alexander> http://www.herrenausstatter.de - Der Alexander> Online-Herrenausstatter Kostenlose Serviceline: 0800 Alexander> -999 66 33 Versandkostenfreie Lieferung - 30 Tage Alexander> Rückgaberecht ~ Alexander> Verwaltungsadresse: DePauli.com Aktiengesellschaft Alexander> Stahlgruberring 3 - 81829 München Telefon: 089 / 530 75 Alexander> 170 - Telefax 089 / 514 50 666 Alexander> ___ Zope Alexander> maillist - [EMAIL PROTECTED] Alexander> http://lists.zope.org/mailman/listinfo/zope ** No cross Alexander> posts or HTML encoding! ** (Related lists - Alexander> http://lists.zope.org/mailman/listinfo/zope-announce Alexander> http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Instance within Instance
Daryl Stultz wrote: > It DID import into the root folder (I did this purely by accident!) I > was then able to recreate the called-for classes and IT WORKED!! I > haven't figured out HOW yet but I will. Thanks a lot for the help, and Maybe we COULD say the how is, "because it creates one object( the folder) in the first call. Then the second object (the document) in a seperate call. Since HTTP is stateless it requires a seperate call for each activity." The folder doesn't exist until after the first response. So you can't GET it's context in the same call you create it in. Make more sense? -- Tim Cook, President -- Free Practice Management,Inc. | http://FreePM.com Office: (901) 884-4126 Censorship: The reaction of the ignorant to freedom. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Why GUF or Loginmanager??
> Hallo, > I'got a fundamental question: > Why should you switch from the built-in authentication mechanism to a > product like GUF or Login-manager?? You can choose the storage for your userdata yourself, which may be practical for i.e. - huge user base and/or you also like to store adresses etc. easily. - adding/changing users through mechanism outside of zope - verifying users through mechanism outside of zope (ie. apache's various mod_auth_*) for tasks outside of zope (try to stream a .rm-file only to built-in authenticated users) cheers. oliver ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] login dialog text
Hi Zopistas! When users connect to a restricted area a dialog box pops up that looks more or less like this: Enter user name for Zope at myhost: User: _ Password: _ Where and how can I change the content of the first line so that it would e.g. read "Enter user name for funky stuff at myhost"? Ragnar ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Instance within Instance
Daryl Stultz wrote: > > Tim Cook wrote: > > > > Daryl, > > > > Import the DarylProduct.zexp into your Products folder. > > The DarylExample.zexp can go anywhere in you Zope tree. > > As luck would have it, the file did not import into Products (File > /usr/local/Zope/lib/python/OFS/CopySupport.py, line 406, in > _verifyObjectPaste) > > It DID import into the root folder (I did this purely by accident!) I Well, that shouldn't have happened. At least in previous versions of Zope you could not import a Product into anything but the Products folder. > was then able to recreate the called-for classes and IT WORKED!! I > haven't figured out HOW yet but I will. Thanks a lot for the help, and Maybe this worked out better since you had to actually recreate them . You're welcome. > let me know if you need any fancy Python methods... I will. -- Tim Cook, President -- Free Practice Management,Inc. | http://FreePM.com Office: (901) 884-4126 Censorship: The reaction of the ignorant to freedom. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Presentation & Object Model
Paul Everitt wrote: > > Brian veto'd it, declaring it too ambitious. He's basically waiting for > Zope to better figure out how to keep presentation separate from the object > model. Been pretty quiet on the lists WRT HiperDOM, which I got the impression was going to be about this. Are there any DC initiatives into this? Lalo, any word from the trenches? ;-) cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] VHost logs.
> > ServerName www.foobar.com > RewriteEngine on > RewriteRule ^/(.*) https://www.foobar.com/ > of course i actually meant: ServerName www.foobar.com RewriteEngine on RewriteRule ^/(.*) https://www.foobar.com/$1 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Why Not Zope? 'Cos I like to bitch! ;-)
Karim Yaici wrote: > > Hi guys, > I found this article written by someone from Quixote concerning Zope, > describing its weaknesses and possible future development > http://www.amk.ca/python/writing/why-not-zope.html This guy is quite far up his own arse :-) It's probably more useful to work around the problems he describes rather than bitching about them and telling people not to use Zope: The 'no grep' is probably the most serious of his points. You can easily get around it though, by using a ZCatalog. Admittedly, a decent search and replace interface (which I'm plugging for on zope-dev ;-) would be really nice (Zope 3? ;-) No CVS is also a problem, but with the improvements in the History tab and the like, this less of an issue. Besides, it's again easy to work around by keeping CVS-ish stuff on the filesystem either by putting them in python products or HTMLFiles. There's even ZCVSMixing should you really be pedantic. The test suite stuff is true for any web application, as has been discussed on the XP lists (so I'm told ;-) That said, there's ZUnit and PyUnit now, so I'm not sure that his opinion on this is valid at all. His comments about DTML are all valid, but it's a choice he'd made to write logic in DTML and he's a fool for doing so. IMNSHO, all 'logic' should be kept in python and you should never need to use the "" in a DTML tag. If you do, you're doing too much in DTML. Put it in a product or one of Evan's new-fangled python methods (although these aren't CVS'able, so I'd advise against it, unless is 'python scripting') If used this way, DTML actually provides quite a nice scripting layer for people who only understand/care about HTML, and there's the promise of XHTML for the future. He sees DTML's 'dynamic scoping' as a hinderance, it's actually one of its strengths. Yes, it can be confusing, but maybe you should just write code which doesn't make assumptions about variables, or handles the cases when they're not there. The same is true of acquisition and the namespaces concepts, maybe with better documentation, people like him wouldn't have such problems. Zope's built in FTP server is one of it's huge stengths, IMO. He hasn't realised this and so bitches about it. You can always turn it off you know! Likewise the HTTP server, run Zope as a CGI if you must! :P Oh yeah, TTW editing does _not_ mean code has to live in the ODB as I've already mentioned. Of course, in being behind Quixote, this guy has an alternative motive for slagging off Zope, but I do wish he wouldn't. In (almost) his own words, he just wants a filesystem of python scripts to build his website. Fine, but that doesn't solve a lot of people's problems and has a lot of limitations, hence Zope came into being. Yes, it's a complex beast but, if handled correctly, it'll save you loads of development time and leaves you with a graceful, quick application that is seperately configurable and scriptable, and has a _lot_ of code re-use. I'm pretty sure this is true for the vast majority of web applications but, of course, there are exceptions, although I'm not sure MEMS Exchange is one of them ;-) The one problem with Zope that he _should_ have mentioned is this: You have to try pretty hard to write nasty code in Python, which si why it's so great. Conversely, it's quite easy to build 'nasty' applications in Zope that are messy and hard to maintain. Such is life, that's a possibility I'm willing to live with for the power that Zope gives me. cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Fast Access.
On Tuesday 28 November 2000, at 19 h 19, the keyboard of "Jason C. Leach" <[EMAIL PROTECTED]> wrote: > Is there a faster way to access Zope? I find I wate too long for page > refreshing and updates. Several are documented. I like the Squid accelerator. http://www.zope.org/Members/htrd/howto/squid http://www.zope.org/Members/htrd/howto/caching ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Rookie Question - Syntax
On Wednesday 29 November 2000, at 8 h 20, the keyboard of Eric Walstad <[EMAIL PROTECTED]> wrote: > I like to let javascript handle the validation, it lightens the load a > little on the server. You still need server-side validation, otherwise, a rogue user can set up a form which will allow invalid entries (or he can simply disable Javascript). ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Why not normal acl_users?
[EMAIL PROTECTED] wrote: > > Why should you switch from the built-in authentication mechanism to a > product like GUF or Login-manager?? When you want to do something that the built in user folder can't, like authenticate against usernames and passwords stored in an SQL table, or and LDAP server, or if you want cookie-based authentication... > What I'm looking for is a product that redirects the authenticated-user to > the part of the website where he has got his "home-folder" why not just use and index_html DTML Method as follows: ...for example? > and also nice > wolud be a search-function which gives an administrator a list of all the > users with all the roles in the system. That's not going to be pretty, as that's an _awful_ lot of data ;-) HTH, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] mysql & zope
Hi Zopistas! we are looking for a method to do a better integration of mysql 3.23.27 with zope 2.2.2. (we are using the Z MySQL database adapter Z MySQL DA 1.1.3.) We have to store data in a mysql database - we can´t use ZODB because we need the data accessible by other programs via ODBC. We habe implemented several ZClasses like "customer", "product" and "orders". We store their instances (eg. each product, customer and so on) to the mysql-database. Our problem: we can´t use the standard ZOPE management interface to manage the objects, because the methods of this interface store content to the ZODB - and not to the mysql-database. Is there a way to extend the standard ZOPE management interface with additional mysql statements? For example: we select an object in a zope folder, press the ZOPE Delete-Button, then this object is deleted on the mysql-database, not on the ZODB? For each zclass (customer, products, orders) we need these extra methods (Delete, Update, Insert ...), so our thought is that we would prefer to use the ZOPE management interface to do this instead of programming "extra methods" which obviously can't be used within the standard ZOPE management interface. Hope there is somebody out there with an similarly problem solved. best regards Ruediger ~ http://www.herrenausstatter.de - Der Online-Herrenausstatter Kostenlose Serviceline: 0800 -999 66 33 Versandkostenfreie Lieferung - 30 Tage Rückgaberecht ~ Verwaltungsadresse: DePauli.com Aktiengesellschaft Stahlgruberring 3 - 81829 München Telefon: 089 / 530 75 170 - Telefax 089 / 514 50 666 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] MySQL
K H Subrahmanyan wrote: > > hi, >I want to add MySQL to my ZOPE. > > Please help me in installing it. > > Please give the links, necessary information. How about actually doing some work for yourself for a change rather than expecting everyone else to do it for you? Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] MySQL
hi, I want to add MySQL to my ZOPE. Please help me in installing it. Please give the links, necessary information. thanks bye subrahmayan. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] User mangement
>>Zope has a function "get_valid_userids()". >>Now my question; >>How is it possible to get something like (username;role;path)? >refer to the ZQR: > http://zdp.zope.org/projects/zqr/ZopeQR >and look for the section describing the AUTHENTICATED_USER object. > Thanks seb, but i need to get (username;role;path) for all users (i.e. 500) of a zope site. AUTHENTICATED_USER seems to be only for the current user. sven ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] Why GUF or Loginmanager??
Hallo, I'got a fundamental question: Why should you switch from the built-in authentication mechanism to a product like GUF or Login-manager?? Except of the different login interface, I dosn't see any advantage?? Please correct me. What I'm looking for is a product that redirects the authenticated-user to the part of the website where he has got his "home-folder" and also nice wolud be a search-function which gives an administrator a list of all the users with all the roles in the system. -- Sent through GMX FreeMail - http://www.gmx.net ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] User mangement
* Sven B. <[EMAIL PROTECTED]> [001130 10:34]: > Zope has a function "get_valid_userids()". > Now my question; > How is it possible to get something like (username;role;path)? sven, refer to the ZQR: http://zdp.zope.org/projects/zqr/ZopeQR and look for the section describing the AUTHENTICATED_USER object. seb ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] authentication II
Olaf Zanger wrote: > > hi everybody, > > after a long 10h struggle with installing and running zope i found some > interesting things. > > may anybody be able to explain these to me? > > i run a suse7.0 system with a suse zope installation on 8080. > i changed the access file to a new account name. > > with this account name i can do everything in zope, add users, add > files, copy, paste ... > > if i add a new user i can not login for adding files ... > > aren't they made for that? You can use them for anything ;) What each can do is determined by their roles. > do i understand anything wrong? are they probably only for content > access? What roles did you give to these new users ? -- Hannu ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZClass security : a solution
* Bowyer, Alex <[EMAIL PROTECTED]> [001129 22:21]: > Essentially what we are doing is saying "If you want to View this object, > you have to have the Manage Properties permission" > > There are probably better ways, but if it ain't broke don't fix it. > > I don't understand why you have to choose a permission for each permission > (which is a very confusing concept). It would be much better if you could > choose a role to say e.g. "If you want to View this object, you have to have > the UAAdmin Role" yep, that's what I figured it had to mean. however, I tried it and it didn't work. This is probably because I messed up where the user was defined or something, but the whole thing took so long even to try out that I gave up. Are we the only ones who find it counter-intuitive?! or at the very least, downright unpleasant... perhaps it's just ZClasses. It usually is :) I gave up and did it in a product eventually. seb ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] VHost logs.
> In a manner of speaking, yes. That is, Apache needs to have correctly > configured VirtualHost directives to handle the requests from the > outside world appropriately, and Zope needs to have the SiteAccess > product installed with correctly configured SiteRoots and access rules. > It takes a little bit of time to figure out, but it works like a charm > and is really quite simple, once you wrap your head around it. There's > a great HOW-TO on this at http://www.zope.org/Members/anser/apache_zserver. I would also point you to http://www.apache.org/docs/vhosts/mass.html for more info on the apache side, particularly this bit: The main disadvantage is that you cannot have a different log file for each virtual host; however if you have very many virtual hosts then doing this is dubious anyway because it eats file descriptors. It is better to log to a pipe or a fifo and arrange for the process at the other end to distribute the logs to the customers (it can also accumulate statistics, etc.). > Another benefit of this setup is that it can allow for both regular HTTP > and SSL connections to all of your sites, so you can remotely access the > manage screens without sending your passwords in the clear. A HOW-TO > for this lives at http://www.zope.org/Members/unfo/apache_zserver_ssl. > I still haven't figured out a clean way to make it impossible to access > sensitive areas UNLESS you're using SSL, however. Anyone out there > doing this? mod_rewrite is your friend. You just make a Rule that redirects anyone accessing your site on port 80 to port 443, something like this: ServerName www.foobar.com RewriteEngine on RewriteRule ^/(.*)https://www.foobar.com/ seb ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] import/export
Guessing that you mean a Gadfly table: you need to copy the table you need from the ../var/Gadfly/.. directory to your other machine. hth, cb Cornelis J. de Brabander == Department of Education, Leiden University P.O.Box 9555, NL-2300 RB Leiden +31 71 527 3422/3401 [EMAIL PROTECTED] == > -Original Message- > Just to try , by using import/export i ported the product to another > windows 98 machine.I am able to open the whole folder in the > ported machine. > The problem is i am not able to add a new record there using the existing > script.If write new script to add record to the same table it > works . so why > it this happens like this ?. Do we need to import any other files?.When i > add a record using existing scripts it asks for username & password. > when i type it , it doesn't take. > > Thanks, >jacintha > > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) > > ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZCatalog: Query Syntax
Chris McDonough wrote: > > The place to start might be to actually help write some documentation. > There is a docs process description at > http://dev.zope.org/Wikis/DevSite/Projects/DocumentationProcess/Documentatio > nGuide . This should at least give you an idea of how to proceed. Doug, If you make a start with this, I'll see if I can help (although the problem is that while I use the catalog, I don't actually seem to know a lot about how it works, because so little of it is documented). I'd love to have a decent, working Catalog, but I'm under more than a little time pressure with other things right now :-S Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] python methods
Terry Kerr wrote: > > Hi, > > Is there any way to get access to inbuild python functions like 'filter' > and 'lambda' within pythonMethods? I think the powers that be decided they were 'unsafe' :-( Can anyone confirm or deny? cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Portal user personalisation
Bocquillon Philippe wrote: > > Hello everybody, > > I would like to know if Zope provides the functionality for the user of a > portal to have his personalized page of the portal. Checkout the PTK: http://www.zope.org/Products/PTK Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] User mangement
Zope has a function "get_valid_userids()". Now my question; How is it possible to get something like (username;role;path)? Thanks in advance Sven ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] How to remove Items from ZPatterns:Rack in the right way ?
Hi, I have a question about ZPatterns:Rack. I got 10 items in a Rack and I want to remove those objects. By reading Rack.py , I know that manage_pack can do this for me if getItem(key) return None for those objects. Well, how to return None? One way I found is that: under "Storage" manage_tab, there is a option: {Objects are: loaded by accessing attribute [x]} assign x to be a "non-existing method", ie, any string except those attributes' names. Then, by clicking "remove orphaned slot" which triggers manage_pack. I can see the counter of "Persistent slot in use" was reduced. The question is that: why it reduced gradually? It doesn't reduce to 0 by just one click. I have to click it several times in order to remove all of them. How does it happens? What's the right way to remove an item from a Rack? Thanks a lot. Iap,Singuan ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope+PostgreSQL
On Tuesday 28 November 2000, at 19 h 2, the keyboard of Robert Senger <[EMAIL PROTECTED]> wrote: > The ZPoPyDA module refuses to work properly. Give at least your operating system and the traceback you get (I had good help from the list because I gave the details). ZPyGreSQL works fine for me, on Debian (easily, thanks to the package) and on Tru64 (more difficult, but now I know the trick). ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] VHost logs.
Jason C. Leach wrote: > hi, > > With Apache in front of zope, do you disable Medusa? No. Apache merely acts as a proxy server. Apache gets a request, passes the request on to Zope, Medusa/Zserver serves up the results back to Apache, which then hands them out to the original requester. > And do you need to > set both Apache and Zope to have the vhosts (do I need to set up a vhost > twice?). In a manner of speaking, yes. That is, Apache needs to have correctly configured VirtualHost directives to handle the requests from the outside world appropriately, and Zope needs to have the SiteAccess product installed with correctly configured SiteRoots and access rules. It takes a little bit of time to figure out, but it works like a charm and is really quite simple, once you wrap your head around it. There's a great HOW-TO on this at http://www.zope.org/Members/anser/apache_zserver. Another benefit of this setup is that it can allow for both regular HTTP and SSL connections to all of your sites, so you can remotely access the manage screens without sending your passwords in the clear. A HOW-TO for this lives at http://www.zope.org/Members/unfo/apache_zserver_ssl. I still haven't figured out a clean way to make it impossible to access sensitive areas UNLESS you're using SSL, however. Anyone out there doing this? -rob > > On Wed, 29 Nov 2000, Rob Miller wrote: > > >> Jason C. Leach wrote: >> >> >>> hi, >>> >>> Has anyone implemented there own logging for Virtual Sites? >>> >>> I was thinking in the site rules an External Method could be called, >>> passed the Request obj, and from that generate logs for virtual sites. >>> >>> If anyone has done that, or knows of a better way I'd be interested in >>> hearing it. >> >> I'm not exactly sure what your goal is... but if you're just trying to >> generate separate log files for each of your virtual sites, I'm accomplishing >> that by having my virtual sites proxied behind Apache (using SiteAccess and >> the ProxyPass directive) and specifying the log files for each VirtualHost in >> my httpd.conf file. You can control the contents of the logs using the >> LogFormat directive; I use the same format for all of my virtual hosts, but I >> think you can specify a different log format for each host if you desire. >> >> If you're trying to accomplish something else which requires you to handle the >> logging on the Zope side of things, then it seems to me that your idea would >> work, although I'd want to find out how my server performance would be affected... >> >> Hope this is useful for you, >> >> rob >> >> ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] authentication II
hi everybody, after a long 10h struggle with installing and running zope i found some interesting things. may anybody be able to explain these to me? i run a suse7.0 system with a suse zope installation on 8080. i changed the access file to a new account name. with this account name i can do everything in zope, add users, add files, copy, paste ... if i add a new user i can not login for adding files ... aren't they made for that? do i understand anything wrong? are they probably only for content access? in previous (non-suse) installations i was allowed to add users to the acl_user with my superuser account but couldn't login to add files with these new accounts. greetings olaf -- soli-con Engineering Zanger Dipl.-Ing. (FH) Olaf Zanger Nusch Lorrainestrasse 23 3013 Bern / Switzerland Fon: +41-31-332 9782 Mob: +41-76-572 9782 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://www.soli-con.com begin:vcard n:Zanger;Olaf Marc tel;cell:+41-76-572 9782 tel;work:+41-31-332 9782 x-mozilla-html:FALSE url:www.soli-con.com org:soli-con Engineering Zanger adr:;;Lorrainestrasse 23;Bern;BE;3013;Switzerland version:2.1 email;internet:[EMAIL PROTECTED] title:Dipl.-Ing. note;quoted-printable:IT-Consulting=0D=0AEmbedded Systems=0D=0AEnergy Systems=0D=0AOpen Source Solutions=0D=0A x-mozilla-cpt:;-32176 fn:Olaf Zanger end:vcard
[Zope] import/export
Hi, Just to try , by using import/export i ported the product to another windows 98 machine.I am able to open the whole folder in the ported machine. The problem is i am not able to add a new record there using the existing script.If write new script to add record to the same table it works . so why it this happens like this ?. Do we need to import any other files?.When i add a record using existing scripts it asks for username & password. when i type it , it doesn't take. Thanks, jacintha ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] jcNTUserFolder on 2.2.x
Toby Dickenson wrote: > > On Mon, 20 Nov 2000 14:20:41 -0800, "Andy McKay" > <[EMAIL PROTECTED]> wrote: > > >Is there an updated version or product similar to jcNTUserFolder (allowing > >NT authenitcation in Zope) that works in Zope 2.2.x? Or am I going to have > >to upgrade jcNTUserFolder? > > API changes in 2.2 (and future developments, like PTK) make custom > user folders less attractive than they used to be. If you intend > committing some time to this then I recommend something based on > http://www.zope.org/Members/tsarna/LoginManager > > The simplest change would be to transplant the authentication code out > of (jc)NTUserFolder and into LoginManager methods. However that would > still only run on NT. Important: After you get authentication working the way you want it, you'll have to fix your LoginManager to integrate with the existing local roles machinery. Here's a link to help you out: http://lists.zope.org/pipermail/zope-ptk/2000-September/001739.html HTH, Michael Bernstein. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )