Re: [Zope] Product creation difficulty

2005-04-08 Thread Chris Withers
Pete Taylor wrote: Error Type: Fault Error Value: Fault 1: 'exceptions.Exception:method echo.__roles__.__contains__ is not supported' Yeah, that's Zope's security mechanisms kicking in. Don't use a python script for this code. Remove your allow_module anduse an external method, like you're

[Zope] The Zope Book

2005-04-08 Thread Chris Withers
Dieter Maurer wrote: When will they feature in *the* Zope Book? Which The Zope Book are you referring to? The 2.6 one on Zope.org? The 2.7 one on Plope.com? The 3.whatever one somewhere-I-don't-know? It's the age old documentation problem coming back to bite us again :-S cheers, Chris --

Re: [Zope] Re: Does anyone care whether we deprecate ZClasses?

2005-04-08 Thread Chris Withers
Jim Fulton wrote: I wish they were gone, but they are still there. Someday, I'd like to se a TALES-based DTML, but I doubt I'll ever have time to do it. You know that means you want to deprecate it really ;-) I still maintaining ofrcing users to learn two templating languages, one of which is one

Re: [Zope] Re: login page problem

2005-04-08 Thread Chris Withers
Dieter Maurer wrote: You are probably right -- but SimpleUserFolder is really simple (which sometimes is good). Simpler is ALWAYS good, as the name of my company kinda gives away ;-) Nothing should ever be less simple than is absolutely necessary! Had *you* used all these reusable components to

Re: [Zope] Re: login page problem

2005-04-08 Thread Chris Withers
Dieter Maurer wrote: The RAMCacheManager is associated with (what I call) site building objects (those have an identifying URL, for example). Why do you think that? User objects are not site building. But in zope, they should always have a url ;-) The UserFolder is but usual implementations do not

Re: [Zope] Plone/Zope on Debian Sarge

2005-04-08 Thread Chris Withers
Robert (Jamie) Munro wrote: There is no standard start up script (as far as I have seen), Then you haven't been looking very hard ;-) zopectl has been standard as of 2.7.0, it can be symlinked right into /etc/init.d and works prettymuch perfectly. to the same port. There's a patch here:

Re: [Zope] The Zope Book

2005-04-08 Thread Lennart Regebro
On Apr 8, 2005 8:48 AM, Chris Withers [EMAIL PROTECTED] wrote: Dieter Maurer wrote: When will they feature in *the* Zope Book? Which The Zope Book are you referring to? The 2.6 one on Zope.org? The 2.7 one on Plope.com? The 3.whatever one somewhere-I-don't-know? I would expect it to be

Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-08 Thread Lennart Regebro
On Apr 8, 2005 12:15 AM, Andreas Pakulat [EMAIL PROTECTED] wrote: Hmm, could you (just for my own interest) point out the difference between PropertySheets and ProperyManager (which I used to define properies for my own product-classes)? IIRC PropertySheets allow to have multiple groups of

[Zope] Persistent Objects

2005-04-08 Thread Roy S. Rapoport
A coworker of mine wrote his own web server framework from scratch for an internal application. We're looking to migrate this application to Zope (thank God!). The only question we need to deal with is: The reason he wrote his own webserver rather than use CGIs is that there was some

Re: [Zope] Persistent Objects

2005-04-08 Thread bruno modulix
Roy S. Rapoport wrote: A coworker of mine wrote his own web server framework from scratch for an internal application. We're looking to migrate this application to Zope (thank God!). The only question we need to deal with is: The reason he wrote his own webserver rather than use CGIs is that

[Zope] best practices Zope filesystem development

2005-04-08 Thread Milos Prudek
Hi, What are the best, most effective practices in leveraging filesystem when developing in Zope? I'm looking for an approach that would let me use keyboard and leave the mouse alone as much as possible. In other words, minimum use of ZMI even if TTW Python Scripts are used extensively.

Re: [Zope] best practices Zope filesystem development

2005-04-08 Thread Andreas Jung
--On Freitag, 8. April 2005 11:30 Uhr +0200 Milos Prudek [EMAIL PROTECTED] wrote: Hi, What are the best, most effective practices in leveraging filesystem when developing in Zope? I'm looking for an approach that would let me use keyboard and leave the mouse alone as much as possible. In other

[Zope] dtml-tree issue

2005-04-08 Thread Vangelis Mihalopoulos
Hello, I want to use dtml-tree. I want to populate this tree using an external method that like this one: getChildren(parent_id) = [child, child, child, ..] where parent_id is a string and each child is a node (python object). My problem is what kind of object must each node be, in order

Re: [Zope] Persistent Objects

2005-04-08 Thread Lennart Regebro
On Apr 8, 2005 11:05 AM, Roy S. Rapoport [EMAIL PROTECTED] wrote: A coworker of mine wrote his own web server framework from scratch for an internal application. We're looking to migrate this application to Zope (thank God!). The only question we need to deal with is: The reason he wrote

[Zope] how to set value of hidden form field by a cookie

2005-04-08 Thread prabuddha ray
I've to set the value of a hidden form field by a cookie value. e.g; invalidval request/cookies/login|nothing; i tried this : input name=invalid type=hidden value=string: ${invalidval} and also this input name=invalid type=hidden tal:attributes=value invalidval but it is rendering the text in

RE: [Zope] Product creation difficulty

2005-04-08 Thread Pete Taylor
argh! doing it the way i'm supposed to? i don't have time for that! i've got perfectly good banging my head against a wall while ignoring the door right next to me to do! thanks again for the help :). -Original Message- From: Chris Withers [mailto:[EMAIL PROTECTED] Sent: Friday,

Re: [Zope] best practices Zope filesystem development

2005-04-08 Thread bruno modulix
Andreas Jung wrote: --On Freitag, 8. April 2005 11:30 Uhr +0200 Milos Prudek [EMAIL PROTECTED] wrote: Hi, What are the best, most effective practices in leveraging filesystem when developing in Zope? I'm looking for an approach that would let me use keyboard and leave the mouse alone as much as

Re: RES: [Zope] login system discussion

2005-04-08 Thread prabuddha ray
Thanks the request var is set but the next line for redirection ie. return context.index_html renders a new page with text : ZopePageTemplate at index_html is there some object in context which refers to the self page. plz help. On Thu, 7 Apr 2005 11:22:25 -0300, Jose Henrique dos Reis

[Zope] FW: [newbie] Testing An External Method Object

2005-04-08 Thread Pier Paolo
From: Pier Paolo [mailto:[EMAIL PROTECTED] Sent: Friday, April 08, 2005 2:47 PM To: 'zope@zope.org' Subject: [newbie] Testing An External Method Object Hi everyone! Great work, Im overadmired. I just finished

[Zope] Zope/python: downloading images from the web and add them to Zope

2005-04-08 Thread BonviciniJ
I would like to know how to add image file from an URL. I created a form with to pissibilities: add an image from a local file , and a image from an url here is my form: input type=radio name=sourcePicture checked onClick=lock_option() value=file get from disk: input type=file name=pict_file

Re: [Zope] best practices Zope filesystem development

2005-04-08 Thread Chris McDonough
Yup. http://www.zope.org/Members/mcdonc/Products/Standalone%20Skins%20Tool On Fri, 2005-04-08 at 08:08, bruno modulix wrote: Andreas Jung wrote: --On Freitag, 8. April 2005 11:30 Uhr +0200 Milos Prudek [EMAIL PROTECTED] wrote: Hi, What are the best, most effective

Re: [Zope] symbols undefined after product refresh?

2005-04-08 Thread Jens Vagelpohl
On Apr 8, 2005, at 15:20, Jürgen Herrmann wrote: hi! after reloading my own products through the zmi it seems like some classes and methods gets undefined. please see the following traceback: Refresh is *not* the panacea to avoid all restarts. If things get funky, restart. Simple as that. jens

Re: [Zope] symbols undefined after product refresh?

2005-04-08 Thread Lennart Regebro
On Apr 8, 2005 3:20 PM, Jürgen Herrmann [EMAIL PROTECTED] wrote: TypeError: 'NoneType' object is not callable This means that one module that needed to be reloaded either did not get reloaded or was reloaded before the module from where it is called. Exactly why this happens is hard to say, but

[Zope] ZPT and attributes

2005-04-08 Thread Antonio Beamud Montero
Hi all: How I can create attribute names dynamically? For example, I want something like this: books ref1=http://boo; ref2=http://foo; ... Where ref1 and ref2, are created by the url list. I have done in DTML because I cannot with ZPT. Thanks... ___

Re: [Zope] ZPT and attributes

2005-04-08 Thread Lennart Regebro
On Apr 8, 2005 4:51 PM, Antonio Beamud Montero [EMAIL PROTECTED] wrote: Hi all: How I can create attribute names dynamically? tal:attributes=attributename expression For example, I want something like this: books tal:attributes=ref1 string:http://boo;;

[Zope] Re: symbols undefined after product refresh?

2005-04-08 Thread Derrick Hudson
On Fri, Apr 08, 2005 at 03:20:52PM +0200, Jrgen Herrmann wrote: [...] | ps: this does not only happen to my SubClassCatalog, this also hits | f.ex. from random import randint where randint gets undefined. That makes sense. The 'from-import' syntax creates a name in the local namespace that

Re: [Zope] ZPT and attributes

2005-04-08 Thread Antonio Beamud Montero
El vie, 08-04-2005 a las 16:55 +0200, Lennart Regebro escribió: On Apr 8, 2005 4:51 PM, Antonio Beamud Montero [EMAIL PROTECTED] wrote: Hi all: How I can create attribute names dynamically? tal:attributes=attributename expression Sorry, I haven't explain the problem correctly :) The

Re: [Zope] ZPT and attributes

2005-04-08 Thread Lennart Regebro
On Apr 8, 2005 5:00 PM, Antonio Beamud Montero The problem is the number of refX depends on the list of urls, i.e. if I have ['http://foo', 'http://boo', 'http://google.com'] then I create: books ref1='http://foo' ref2='http://boo' ref3='http://google.com' but with ['http://foo'] I

Re: [Zope] Zope/python: downloading images from the web and add them to Zope]

2005-04-08 Thread Cliff Ford
[EMAIL PROTECTED] wrote: I would like to know how to add image file from an URL. I created a form with to pissibilities: add an image from a local file , and a image from an url You can get an image from a url with an External Method: # Get an image using the original url. import urllib def

Re: [Zope] The Zope Book

2005-04-08 Thread Chris McDonough
I don't think anyone has given much thought to actually documenting all these nice nifty features in 2.9. Which is no change from the norm, and it will be a fairly organic process again. I hate it, but whatever. - C On Fri, 2005-04-08 at 11:22, Paul Winkler wrote: On Fri, Apr 08, 2005 at

Re: [Zope] The Zope Book

2005-04-08 Thread Lennart Regebro
On Apr 8, 2005 5:22 PM, Paul Winkler [EMAIL PROTECTED] wrote: But that leaves unanswered questions - should we document the Five stuff at all, and if so, how? Well, the Five stuff is a subset of the Zope3 stuff, with way too much Zope2 stuff still necessary. The idea is that this should change

Re: [Zope] The Zope Book

2005-04-08 Thread Paul Winkler
On Fri, Apr 08, 2005 at 05:41:30PM +0200, Lennart Regebro wrote: On Apr 8, 2005 5:22 PM, Paul Winkler [EMAIL PROTECTED] wrote: But that leaves unanswered questions - should we document the Five stuff at all, and if so, how? Well, the Five stuff is a subset of the Zope3 stuff, with way too

Re: [Zope] The Zope Book

2005-04-08 Thread Lennart Regebro
On Apr 8, 2005 5:59 PM, Paul Winkler [EMAIL PROTECTED] wrote: OK, but there should at least be a pointer to something to read for people wanting to get started with 2.8.0/Five. I haven't yet looked at any of the Five stuff. Is there at least a README? :) Sure. I don't guarantee that it's

Re: [Zope] Persistent Objects

2005-04-08 Thread Roy S. Rapoport
On Fri, Apr 08, 2005 at 12:00:45PM +0200, Lennart Regebro wrote: Is this persistent even among server restarts, or persistent per request, or persistent per session? (the answer is different for all of them, and usually, in Zope, persistent means persistent over server restarts). Ah, sorry.

Re: [Zope] The Zope Book

2005-04-08 Thread Paul Winkler
On Fri, Apr 08, 2005 at 06:06:57PM +0200, Lennart Regebro wrote: On Apr 8, 2005 5:59 PM, Paul Winkler [EMAIL PROTECTED] wrote: Well, the chapter-by-chapter editing is still not done. See http://plope.com/Books/zb_signup for an overview of the known tasks to be done. OK, but that's better

Re: [Zope] Persistent Objects

2005-04-08 Thread Roy S. Rapoport
On Fri, Apr 08, 2005 at 11:30:23AM +0200, bruno modulix wrote: Look into Product, ZODB, and acquisition !-) Excellent. It looks like persistence may not be an issue here, actually, since I think the persistence I want -- hang around for the life of the Zope server -- is built in anyway, right?

Re: [Zope] Persistent Objects

2005-04-08 Thread Lennart Regebro
On Apr 8, 2005 6:44 PM, Roy S. Rapoport [EMAIL PROTECTED] wrote: Excellent. It looks like persistence may not be an issue here, actually, since I think the persistence I want -- hang around for the life of the Zope server -- is built in anyway, right? Yup, you would simply use the temp db for

Re: [Zope] Persistent Objects

2005-04-08 Thread Roy S. Rapoport
On Fri, Apr 08, 2005 at 06:48:49PM +0200, Lennart Regebro wrote: But for the life of the server is rather unusual... What are the objects you are doing, more specifically? We're porting a web application to manage a collection of DNS and DHCP servers. At startup time, we talk to each of these

Re: [Zope] Persistent Objects

2005-04-08 Thread Lennart Regebro
On Apr 8, 2005 6:55 PM, Roy S. Rapoport [EMAIL PROTECTED] wrote: Actually having said this just now, I'd say a better solution for us would be to actually initialize an object when the user logs in -- we can tolerate that delay, and that gives us a relatively fresh snapshot of the current

Re: [Zope] Persistent Objects

2005-04-08 Thread Roy S. Rapoport
On Fri, Apr 08, 2005 at 07:13:11PM +0200, Lennart Regebro wrote: In that case I would just store the information as usual in the ZODB, that is, the data is persistent across server restarts, but call a method that updates it when you log in (or simply have a button to do it). That works.

[Zope] Re: ZPT and attributes

2005-04-08 Thread Josef Meile
Hi Antonio, Hi all: How I can create attribute names dynamically? tal:attributes=attributename expression Sorry, I haven't explain the problem correctly :) The problem is the number of refX depends on the list of urls, i.e. if I have ['http://foo', 'http://boo', 'http://google.com'] then I

Re: [Zope] Persistent Objects

2005-04-08 Thread Lennart Regebro
On Apr 8, 2005 7:26 PM, Roy S. Rapoport [EMAIL PROTECTED] wrote: Hmm. Wouldn't this allow for massively simpler integration with CVS, then? It does yes. But developing on the file system only is possoble with Zope2 as well, of course, so theres not actual difference there. However, typically

Re: [Zope] The Zope Book

2005-04-08 Thread Stephan Richter
On Friday 08 April 2005 11:22, Paul Winkler wrote: The primary problem with the Zope Book is still the relative scarcity of resources (i.e. editors with time to work on it). The secondary problem with the Zope Book is that it's showing its age: the choice and organization of topics is IMHO

[Zope] Windows compile Zope 2.8?

2005-04-08 Thread David H
Hi List, I notice that the latest Zope does not have a Windows binary release yet (zope 2.80 alpha 2). I found an old Visual C 6.0 (still in the box!) and wonder if there are instructions somewhere that I can follow to create my own binary on Windows XP? Thanks, David ps - Maybe I'm having a

[Zope] Re: Windows compile Zope 2.8?

2005-04-08 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David H wrote: Hi List, I notice that the latest Zope does not have a Windows binary release yet (zope 2.80 alpha 2). I found an old Visual C 6.0 (still in the box!) and wonder if there are instructions somewhere that I can follow to create

Re: [Zope] ExtFile Extention Mappings

2005-04-08 Thread Satchidanand Haridas
Hi, Have you had a look at the Config.py file? I believe you can change the settings there so that the Zope filenames are preserved including the extensions. More specifically, I am referring to the following section in Config.py: section # repository file extension handling ZOPEID = 0

Re: RES: [Zope] login system discussion

2005-04-08 Thread prabuddha ray
Thanks it was silly of me . I assure I'll take care of the advise On Sat, 9 Apr 2005 11:28:58 +1200, Phillip Hutchings [EMAIL PROTECTED] wrote: On Apr 9, 2005 12:34 AM, prabuddha ray [EMAIL PROTECTED] wrote: Thanks the request var is set but the next line for redirection ie. return

[Zope-Checkins] SVN: Zope/branches/ajung-epi-integration/ Trying to marry PathIndex with ExtendedPathindex

2005-04-08 Thread Andreas Jung
Log message for revision 29908: Trying to marry PathIndex with ExtendedPathindex Changed: A Zope/branches/ajung-epi-integration/ -=- Copied: Zope/branches/ajung-epi-integration (from rev 29907, Zope/trunk) ___ Zope-Checkins maillist -

[Zope-Checkins] SVN: Zope/branches/ajung-epi-integration/ removed

2005-04-08 Thread Andreas Jung
Log message for revision 29916: removed Changed: D Zope/branches/ajung-epi-integration/ -=- ___ Zope-Checkins maillist - Zope-Checkins@zope.org http://mail.zope.org/mailman/listinfo/zope-checkins

Re: [Zope-dev] To ZCML or not ;-)

2005-04-08 Thread Chris Withers
Lennart Regebro wrote: You know the feeling when a third party product has the wrong permission or no permission at all on something? What are you gonna do? Subclass: Lots of work. Patch: You gotta keep it updated. With ZCML, you override it. TADA! Yes, this is all stuff I know and love about Z3

[Zope-dev] Turning off product installation in zope.conf on all zeo clients?

2005-04-08 Thread Chris Withers
Hi, There's an option to turn off prudct installation in zope.conf. What happens if you turn this off in all zeo clients? cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope-Dev

Re: [Zope-dev] To ZCML or not ;-)

2005-04-08 Thread Martijn Faassen
Chris Withers wrote: Lennart Regebro wrote: You know the feeling when a third party product has the wrong permission or no permission at all on something? What are you gonna do? Subclass: Lots of work. Patch: You gotta keep it updated. With ZCML, you override it. TADA! Yes, this is all stuff I

Re: [Zope-dev] Turning off product installation in zope.conf on all zeo clients?

2005-04-08 Thread Jens Vagelpohl
On Apr 8, 2005, at 11:00, Chris Withers wrote: Hi, There's an option to turn off prudct installation in zope.conf. What happens if you turn this off in all zeo clients? New products don't get installed..? jens ___ Zope-Dev maillist - Zope-Dev@zope.org

Re: [Zope-dev] To ZCML or not ;-)

2005-04-08 Thread Lennart Regebro
On Apr 8, 2005 12:54 PM, Martijn Faassen [EMAIL PROTECTED] wrote: Chris Withers wrote: Lennart Regebro wrote: You know the feeling when a third party product has the wrong permission or no permission at all on something? What are you gonna do? Subclass: Lots of work. Patch: You gotta

Re: [Zope-dev] To ZCML or not ;-)

2005-04-08 Thread Jim Fulton
Lennart Regebro wrote: On Apr 8, 2005 12:54 PM, Martijn Faassen [EMAIL PROTECTED] wrote: ... A benefit of using an XML format is that many editors will happily both do syntax high-lighting, some sort of auto-indentation, and automatic commenting/uncommenting. A non-standard syntax wouldn't do

Re: [Zope-dev] To ZCML or not ;-)

2005-04-08 Thread Stephan Richter
On Friday 08 April 2005 03:24, Chris Withers wrote: Yes, this is all stuff I know and love about Z3 ;-);-) When I last saw ZCML, it was horrible though. I don't mind XML, just not if it lots of pointless typing... Can you be more specific? I think ZCML is very compact. Regards, Stephan --

Re: [Zope-dev] To ZCML or not ;-)

2005-04-08 Thread Stephan Richter
On Friday 08 April 2005 07:34, Lennart Regebro wrote: For me, the main drawback with ZCML is that WingIDE doesn't to auto completion on it. ;) An ZCML editor that automatically popped up a list of the supported keywords for every statement would be really nice. :-p: Yeah, I talked to Stephan

Re: [Zope-dev] Re: [Zope 2.8] Inclusion of ExtendedPathIndex?

2005-04-08 Thread Andreas Jung
--On Donnerstag, 7. April 2005 8:00 Uhr -0400 Tres Seaver [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas Jung wrote: I wonder if it is of public interest to include the ExtendedPathIndex from Plone in Zope 2.8. It offers some the nice extension to limit the

Re: [Zope-dev] To ZCML or not ;-)

2005-04-08 Thread Lennart Regebro
On Apr 8, 2005 3:09 PM, Stephan Richter [EMAIL PROTECTED] wrote: On Friday 08 April 2005 07:34, Lennart Regebro wrote: For me, the main drawback with ZCML is that WingIDE doesn't to auto completion on it. ;) An ZCML editor that automatically popped up a list of the supported keywords for

Re: [Zope-dev] To ZCML or not ;-)

2005-04-08 Thread Martijn Faassen
Lennart Regebro wrote: [snip] For me, the main drawback with ZCML is that WingIDE doesn't to auto completion on it. ;) An ZCML editor that automatically popped up a list of the supported keywords for every statement would be really nice. :-p Actually emacs + nxml + the Relax NG schema

[Zope-dev] Re: ZPT: defer expression fix

2005-04-08 Thread Christian Heimes
Evan Simpson wrote: Christian Heimes wrote: That's an interessting use case. Do you want me to keep the code and make up a new expression? I'm thinking about lazy:. If you have a particular use for defer: that would justify the split, please go ahead. I have no particular interest in keeping

[Zope-dev] Re: ZPT: defer expression fix

2005-04-08 Thread Christian Heimes
Tres Seaver wrote: I'd be glad to help with that, Christian. I've added a doc string to the DeferExpr module. Do you want me to write more docs is it enough to be added to the ZPT guide? Also I need a little help for the unit tests. How can I emulate tal:content or similar inside an expression

[Zope-dev] debug-mode on under Windows 2000.

2005-04-08 Thread DonJFreeman
Zope Version: (Zope 2.7.3-0, python 2.3.4, win32) Python Version: 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)] System Platform: Windows 2000 I'm trying to get Zope to reload my Python modules so I don't have to restart Zope after code changes. Even with debug-mode on

Re: [Zope-DB] Null characters booleans

2005-04-08 Thread Charlie Clark
On 2005-04-08 at 10:44:59 [+0200], Andrew Veitch [EMAIL PROTECTED] wrote: We'd be willing to provide patches for both these issues if there's interest and agreement it's a sensible way to go. The most sensible thing is if the DA does not have to do the quoting at all and that this is either

Re: [Zope-DB] Creating a hyperlink using results from query

2005-04-08 Thread Charlie Clark
On 2005-04-08 at 11:44:17 [+0200], Martin Jennings [EMAIL PROTECTED] wrote: Firstly, thank you to those who answered by query on the empty result set, it set me on the way to finding a solution. Not sure if this is the right list to ask on, but here is the question. I have got

Re: [Zope-DB] Returning values from Oracle function/procedure withZSQLMethod

2005-04-08 Thread Cynthia Kiser
Quoting Jim Abramson [EMAIL PROTECTED]: In our experience we ended up needing to do increasingly complex things with plsql, and ultimately, we had no choice to move all our db access out into ExternalMethods or Products and use DCOracle2 directly. This does require constructing your own

[Zope-DB] UnpicklingError in Ape 1.0

2005-04-08 Thread Dinh Trung Viet
Hi all, I had a problem when trying to use Ape 1.0 in Zope 2.7 to store data in MySQL database. I cannot add objects into the mount point portion (default is '/sql'). Here is the trace back I found in log file: 2005-04-06T15:12:01 INFO(0) ZODB conflict error at