Re: [Zope-dev] Speed up the learning curve

2001-06-28 Thread marc lindahl
I highly recommend the Quick Python Book if you're already a programmer, looking to learn the new language. From: Shane Hathaway [EMAIL PROTECTED] When I came to Zope, within a week I was getting ready to write a Python product. (And I didn't even know Python yet! :-) )

[Zope-dev] DTML sqltest tag and python expr. Bug in Zope Book?

2001-06-28 Thread Yves-Eric Martin
Hello everyone, I was recently working on a quite big ZSQL method (around 100 lines). I was using only dtml-if and dtml-sqlvar tags and a lot of like '%...%', so thought I could make things look much nicer using dtml-sqlgroup and dtml-sqltest ... op=like optional. But I ran into a big hurdle:

Re: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-28 Thread Tino Wildenhain
Hi, --On Mittwoch, 27. Juni 2001 15:54 -0500 Stephan Richter [EMAIL PROTECTED] wrote: At 10:45 PM 6/27/01 +0200, Erik Enge wrote: On Wed, 27 Jun 2001, Tino Wildenhain wrote: if there are always many objects to create, may be it would be better to have a generic mechanism for asking

Re: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-28 Thread Erik Enge
On Wed, 27 Jun 2001, Stephan Richter wrote: If I have some time left at all tonight, I will make a wizard that could be the initial front-end to mk-zprod. Could you give me a short list of things you would like to ask the user? Product-name A list of images (like dtmldoc.gif and such) If you

Re: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-28 Thread Erik Enge
On Thu, 28 Jun 2001, Tino Wildenhain wrote: Hm. a simple collection of questions? Certainly not. I talking of a whole mechanism, where you group input and output into contexts. From application view it would be an API, it schould work no matter if the input/ output is generated from and to

[Zope-dev] TransparentFolder Problem

2001-06-28 Thread Andre Schubert
Hi, i have a problem with Acquisition and TransparentFolders. I have the following structure / Transparent_A Method_A Folder_B Transparent_B Method_A Folder_C Folder_B and Folder_C are non-transparent, Transparent_A and Transparent_B are transparent.

RE: [Zope-dev] Hey Chris, question for you

2001-06-28 Thread Toby Dickenson
I think it has changed for FieldIndexes. Yes, from UnKeywordIndex.py newKeywords = getattr(obj, self.id, ()) You can now make the distinction between doesnt have that attribute and attribute is one of [None, '', [], ()] within a Field Index. Reviewing UnKeywordIndex.py, I

Re: [Zope-dev] TransparentFolder Problem

2001-06-28 Thread Joachim Werner
/ Transparent_A Method_A Folder_B Transparent_B Method_A Folder_C Folder_B and Folder_C are non-transparent, Transparent_A and Transparent_B are transparent. The problem is when i say dtml-var Method_A in a Document which is in Folder_C i got

Re: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-28 Thread Stephan Richter
If I have some time left at all tonight, I will make a wizard that could be the initial front-end to mk-zprod. Could you give me a short list of things you would like to ask the user? Hm. a simple collection of questions? Certainly not. I talking of a whole mechanism, where you group input

Re: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-28 Thread Stephan Richter
Here my list of questions: 1. Will we create ZClass or Python Products? Product-name 2. I think it should ask some more meta-data information here, such as License, Author(s), Description A list of images (like dtmldoc.gif and such) 3. Okay, here we should have a loop of enter images

Re: [Zope-dev] TransparentFolder Problem

2001-06-28 Thread Andre Schubert
I have testet it on a devel server, but on this machine everything works fine. I forgot to say, that there is a siteroot in Folder_B and Folder_C and the Permissions in these Folders are different. If i have time i try to rebuild the situation step by step and tell you the Results thanks, as

[Zope-dev] no reload of image in management interface of python product

2001-06-28 Thread [EMAIL PROTECTED]
hello all i have a python product with an image as a property now i display the image in the management screen, but when i change the image via the management interface the browser does no refresh of the image is set the mod time like this: self.doc_icon.lmt=time.time()

Re: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-28 Thread Erik Enge
On Thu, 28 Jun 2001, Stephan Richter wrote: Here my list of questions: 1. Will we create ZClass or Python Products? Python Products. Product-name 2. I think it should ask some more meta-data information here, such as License, Author(s), Description Yepp :) A list of images

Re: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-28 Thread Erik Enge
On Thu, 28 Jun 2001, Erik Enge wrote: name: attrib1 default value: None name: attrib2 default value: something No, that wouldn't work, because you might want None as the default for that attribute. Maybe Nothing, or somesuch then.

[Zope-dev] url_quote

2001-06-28 Thread Petr Knapek
Hi Zopists, is it bug or feature, when I do this: dtml-var id url_quote then not only 'id' is returned, but something what looks like this: dtml-var REQUEST['URL']/dtml-var id where id is url_quoted. Shouldn't only url_quoted value of id be returned instead of the above noted URI? I use

Re: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-28 Thread Stephan Richter
At 02:23 PM 6/28/01 +0200, Erik Enge wrote: On Thu, 28 Jun 2001, Erik Enge wrote: name: attrib1 default value: None name: attrib2 default value: something No, that wouldn't work, because you might want None as the default for that attribute. Maybe Nothing, or

Re: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-28 Thread Stephan Richter
Python Products. Ok. 3. Okay, here we should have a loop of enter images with upload functionality. The only problem is where do we save them in the mean time? Upload? Upload to where? mk-zprod (as it works today) creates a directory on your filesystem, and in that directory (which you

Re: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-28 Thread Erik Enge
On Thu, 28 Jun 2001, Stephan Richter wrote: Well, but where are the images coming from. The Wizard is a Web Frontend, so we would need to upload the images or copy them from somewhere else from the file system. From the filesystem of the user? BTW, the /img directory is non-standard.

Re: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-28 Thread Erik Enge
On Thu, 28 Jun 2001, Stephan Richter wrote: For example we would need: manage_make_initializeProduct(...) manage_make_addClass(...) manage_make_addProperty(...) manage_make_addIcon(...) manage_make_addSubClass(mainClass, ...) I just realised something. How do you need this to work?

[Zope-dev] Re: [Zope-dev]SmartSections 0.1.0 released

2001-06-28 Thread Simon Michael
Hi Stephan, thanks for this. Sounds pretty useful. IMPORTANT: SmartSections requires OrderedFolder! and CoreSessionTracking.. and Formulator.. and SmartWizard.. (or not?) It seems to be happy with dependencies now but when I create a Smart Section in the ZMI I get Error Type: AttributeError

Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?)

2001-06-28 Thread Chris Withers
Giovanni Maruzzelli wrote: The catalog is a pristine 2.3.3b1 catalog. I'm sure that'll need upgrading then... We have recreated the catalog from scratch because we tried manage_convertBTrees , but it don't work for us, it return with an error (and the same happens with 2.3.3 final):

[Zope-dev] Best Free UML, XMI, Zope/Transwarp tools

2001-06-28 Thread jimbo
I've been looking for a standard *FREE* tool that I can use to design Zope apps. I think my search is over. It seems to be a good tool for students because it's free and comes with support for Java, Persistence and XMI, Full and partial exchange. I wonder if Transwarp is at the point of

[Zope-dev] RE: Experiments with ORMapping

2001-06-28 Thread Jeff Kowalczyk
I was thinking there would be a default table where everything gets stored by default. A programmer then tells the ORMapping about specific classes and how to store them. I wouldn't think it would be practical to use unless the ORMapping managed the tables by examining the class signature

Re: [Zope-dev] Re: [Zope-dev]SmartSections 0.1.0 released

2001-06-28 Thread Stephan Richter
Hi Stephan, thanks for this. Sounds pretty useful. Thanks. Well, I should have waited with releasing it, but I thought it would be good, since SmartWizard can be using it. I promise that the quality and documentation will drastically increase with the next releases. IMPORTANT:

Re: [Zope-dev] RE: Experiments with ORMapping

2001-06-28 Thread Stephan Richter
At 01:30 PM 6/28/01 -0400, Jeff Kowalczyk wrote: I was thinking there would be a default table where everything gets stored by default. A programmer then tells the ORMapping about specific classes and how to store them. I wouldn't think it would be practical to use unless the ORMapping

Re: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-28 Thread Stephan Richter
Erik, I think we need to setup a separate mailing list for this project. Can you do that? I think the discussion is getting too specific now. Regards, Stephan -- Stephan Richter CBU - Physics and Chemistry Student Web2k - Web Design/Development Technical Project Management

Re: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-28 Thread Stephan Richter
I just realised something. How do you need this to work? With regards to the wizard. Should mk-zprod produce the files and add them to a folder in itself? Or should it return everything for the wizard to handle? All what the wizard will do is provide the user with a nice interface/GUI to

Re: [Zope-dev] Re: ZPL and GPL

2001-06-28 Thread Hannu Krosing
Barry A. Warsaw wrote: With respect to Python, the issue has been hashed to death over in c.l.py and other forums, so I think this will be my last post on the subject here. IMO, the Python 2.0.1 license is the best of all possible worlds. In the words of the FSF themselves: The License

[Zope-dev] Re: [ZPatterns] Best Free UML, XMI, Zope/Transwarp tools

2001-06-28 Thread Phillip J. Eby
At 10:35 AM 6/28/01 -0700, jimbo wrote: I've been looking for a standard *FREE* tool that I can use to design Zope apps. I think my search is over. It seems to be a good tool for students because it's free and comes with support for Java, Persistence and XMI, Full and partial exchange. I

[Zope-dev] persistence

2001-06-28 Thread Mark McEahern
I'm a Zope and Python newbie and I'm trying to utilize Persistence, but I've seen two different ways: import ZODB from Persistence import Persistent vs. from Globals import Persistent Are these different? If so, which is better? Please don't ask me to define better.

Re: [Zope-dev] persistence

2001-06-28 Thread Michel Pelletier
On Thu, 28 Jun 2001, Mark McEahern wrote: I'm a Zope and Python newbie and I'm trying to utilize Persistence, but I've seen two different ways: import ZODB from Persistence import Persistent vs. from Globals import Persistent Are these different? If so, which is

Re: [Zope-dev] url_quote

2001-06-28 Thread Dieter Maurer
Petr Knapek writes: Hi Zopists, is it bug or feature, when I do this: dtml-var id url_quote then not only 'id' is returned, but something what looks like this: dtml-var REQUEST['URL']/dtml-var id where id is url_quoted. Shouldn't only url_quoted value of id be

Re: [Zope-dev] persistence

2001-06-28 Thread Stephan Richter
At 01:40 PM 6/28/01 -0700, Mark McEahern wrote: I'm a Zope and Python newbie and I'm trying to utilize Persistence, but I've seen two different ways: import ZODB from Persistence import Persistent As Michel said, this is only for non-Zope use. In this case the 'import ZODB'

Re: [Zope-dev] no reload of image in management interface of python product

2001-06-28 Thread Dieter Maurer
[EMAIL PROTECTED] writes: i have a python product with an image as a property now i display the image in the management screen, but when i change the image via the management interface the browser does no refresh of the image is set the mod time like this:

Re: [Zope-dev] DTML sqltest tag and python expr. Bug in Zope Book?

2001-06-28 Thread Dieter Maurer
Yves-Eric Martin writes: But unfortunately, dtml-sqltest ... does not seem to work. We get the following error: The ... shorthand for expr was used in a tag that doesn't support expr attributes., for tag dtml-sqltest [...] I expect that dtml-sqltest does not support the expr

Re: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-28 Thread Bill Anderson
On 28 Jun 2001 13:09:56 -0500, Stephan Richter wrote: I just realised something. How do you need this to work? With regards to the wizard. Should mk-zprod produce the files and add them to a folder in itself? Or should it return everything for the wizard to handle? All what the wizard

[Zope-dev] RestrictedDTML w/isPrincipiaFolderish: error with CMF 1.1 and Zope 2.4.0

2001-06-28 Thread Joseph Wayne Norton
Hello. I'm getting the following error message (see below) while accessing the contents of a folder (http://localhost/cmf/Portal/FolderD/folder_contents) underneath a CMF site instance. I was testing Python 2.1, and CMF 1.1/Zope 2.4.0 (latest cvs checked out versions). I do not have any

Re: [Zope-dev] no reload of image in management interface of python product

2001-06-28 Thread [EMAIL PROTECTED]
Dieter Maurer wrote: [EMAIL PROTECTED] writes: i have a python product with an image as a property now i display the image in the management screen, but when i change the image via the management interface the browser does no refresh of the image is set the mod time like this:

Re: Something better than ZClasses (was: Re: [Zope-dev] Re: Zcatalog bloat problem (berkeleydb is a solution?))

2001-06-28 Thread Stephan Richter
BTW, we will assume that the user that runs the Zope engine has write access to /ZOPE/lib/python/Products. Don't forget about those of us that use $INSTANCE_HOME/Products Oops, that what I meant to say. have access to the Products directory :-) Regards, Stephan -- Stephan