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! :-) )
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:
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
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
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.
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
/
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
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
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
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
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()
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
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.
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
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
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
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.
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?
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
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):
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
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
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:
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
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
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
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
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
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.
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
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
[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:
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
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
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:
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
36 matches
Mail list logo