Hi,
I would like to subclass a Python class with a ZClass.
I mean that my DTML document will declare ZClass and I would like to be able
to access the method declared in the python class (parent of the ZClass).
Does anybody knows how to do that ?
PS : I read a paper call "SubClassing from
Hi Steve,
Thanks for the reply. Of course as soon as I reported this, I went
away for a couple days and I haven't been able to check the list.
It appears that the problem is that the BTreeItems object returned by
getPersistentObjectIDs isn't currently allowed as an argument of 'in'
by itself
Hi,
I have a problem with a class I wrote where I have a list as an
attribute of the class. When I append something to that list, it stays
there at first, but only until I restart Zope. It disappears (==is set
to the value I assigned to it in __init__) and reappears as well when
I hit reload a
I'm not quite sure if this is already reported or not, so I won't give
much information on it (I've looked for something similar, but I
haven't found it). I'm runnig Zope 2.2.0 under Linux.
I have this product I've made myself - called TravelAgent. I add an
instance of it to the Zope
You directly change a nonpersistence participant object.
As stated in
http://www.python.org/workshops/2000-01/proceedings/papers/fulton/zodb3.html :
quote
All sub-objects of persistent objects must be persistent or immutable.
This rule is necessary because, without it, the persistence
I developed my project on Zope 2.1.6 on NT environment.
Last week i installed Zope 2.2.0 on Solaris 8.
i transferred my project to 'new' Zope.
But when i try to access my DTML document comes authentication window. I
can't authenticate it in any of my usernames.
Traceback (innermost last): File
"R. David Murray" wrote:
On Mon, 14 Aug 2000, Marcin Kasperski wrote:
1) How can I set standard DTML Document properties (title!) from my
constructor? I created constructor form and constructor method, I
succesfully prompt for and set all my properties but I do not know how
to set
dtml-var "REQUEST.resolve_url('/some/folder/and/path/wotsit')"
- Original Message -
From: "Scott Shepherd" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 16, 2000 5:06 AM
Subject: [Zope] DTML: fetch an object by its url?
In DTML is it possible to get an object using
[various folks basically suggest using UserDb and give useful tips]
Okay, thanks for the suggestions, folks -- UserDb it will be, then!
Regards,
Martijn
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No
Dieter Maurer wrote:
Chris Withers writes:
I have a list of string.strip'ped strings which I'd like to render using
Erk, they weren't actully being stripped, I meant what was supposed to
the happening was \r\n and \n\r were both supposed to be replaced by
What I like to do is pretty simple, but I don't get it. The following code
snippet is simple and what I want to is straightforward:
dtml-in "objectItems('DTML Document')"
dtml-var sequence-item
/dtml-in
All DTML Documents in a Folder should be put together in one document. It
works fine, if
Hi,
I would like to subclass a Python class with a ZClass.
I mean that my DTML document will declare ZClass and I would like to be able
to access the method declared in the python class (parent of the ZClass).
Does anybody knows how to do that ?
PS : I read a paper call "SubClassing from
What's the difference between:
dtml-with "_.string.split(URL,'/')[-2]" (for current folder)
or dtml-with "_.string.split(URL,'/')[-1]" (for current object)
and
dtml-var "REQUEST.resolve_url('/some/folder/and/path/wotsit')"
??
- Original Message -
From: "Scott Shepherd" [EMAIL
Hi all
I have 'index_html (Welcome to the Mosaic Intranet)'
and 'standard_html_header' in '/' (the site root).
'standard_html_header' does the usual::
!--#var title_or_id--
Maybe I shouldn't be, but I was somewhat surprised that this
renders the title of '/' instead of the title of
Maybe you've got the syntax wrong. Have you tried these, and what they
return.
dtml-in "objectItems(['DTML Document'])"
dtml-var sequence-item
/dtml-in
dtml-in "objectValues(['DTML Document'])"
dtml-var sequence-item
/dtml-in
dtml-in "mycurrentfolder.objectItems(['DTML Document'])"
Anyone know how I can get rid of this?
I don't have it in my lib/python/Products folder. I don't have it in
my Control_Panel/Products folder. I have compacted the database and
restarted my server.
I still get errors when trying to do selecte the 'Advanced tab' in
*any* ZSQL method.
Anyone
[ Below I describe my solution to the problem which seems to me to be
fairly frequent. Maybe someone is interested, maybe someone can show me
better (faster, shorter) solution ]
* Problem
The problem: while presenting some page, I would like to automagically
add links to 'previous' and 'next'
on Wednesday, August 16, 2000 Jean Jordaan wrote :
JJ !--#var title_or_id--
...
JJ What further confuses me is that '/docs' has no title, and it
JJ contains 'index_html (Document Warehouse)'. Now
JJ 'standard_html_header' renders '/docs/index_html's title.
JJ If '/' has no title and
On Wed, 16 Aug 2000, cuiod-tec Jens Gelhaar wrote:
dtml-in "objectItems('DTML Document')"
dtml-var sequence-item
/dtml-in
[...]
works fine, if there is no reference to another object. But when I put
something like
dmtl-var imageobject in one of this DTML Document I get the appended
How about a trailing / after okstudio?
VirtualHost 123.45.678.9
ServerName www.mydomaine.com.au
ProxyPass / http://demon.server.com.au:8080/okstudio
ProxyPassReverse / http://demon.server.com.au:8080/okstudio
/VirtualHost
Hi Zopers
What's with the spaces ('%20') in the following from::
site/Control_Panel/Products/ccDoc/ccDocClass/propertysheets/methods/manage
_main
FORM
ACTION="http://corpcomms/Control_Panel/Products/ccDoc/ccDocClass/propertyshe
ets/methods" METHOD="POST"
TABLE BORDER="0" CELLSPACING="0"
Hi,
How to import classes in an External method?
I mean, where to place the module where my class is defined. I tried to put it
in "lib/python/" or "Zope-2-2-0/lib/python/Shared", or in
"/usr/lib/python1.5/" but I always got the same message :
The errror
===
Error Type:
On Wed, 16 Aug 2000, Chris Withers wrote:
Shame no-one implemented this into the entity syntax :(
dtml-/some/folder/and/path/wotsit; would be so nice ;-)
Ooo, that's seriously *ugly* looking syntax grin.
--RDM
___
Zope maillist - [EMAIL
Greetings Zope Fans,
There is a value included in "REQUEST" called HTTP_ACCEPT.
Is there a way within Zope to reset this value?
The default seems to be "*/*", but our sysadmin says Zope
would get along better if we can change it to include the
alias that Zope has been assigned by our Proxy
I installed zShop according to the installation instructions.
When I come to the point where they write:
"Click on your newly created Catalog and start
adding products and categories."
I receive the following error message:
Error Type: NameError
Error Value: 'CATEGORYSTORAGE' no such relation
I have an External method that is used to upload files to a unix file system.
Thing is, it seems to be causing more and more memory to be used by Zope.
Can anyone give me some pointers on what might be causing this?
TIA
Tone
--
Dr Tony McDonald, FMCC, Networked Learning Environments
(Second post)
(I speak french, sorry for my english!)
I created a ZClass, zRow. This class can contain other ZClass: zField_Text,
zField_Date, etc.
This let me define the columns contained in a zRow.
I then defined a Class zTable, wich contains zRows.
Question:
- In
"R. David Murray" wrote:
On Tue, 15 Aug 2000, Kapil Thangavelu wrote:
#example call to above
#dtml-call "RESPONSE.redirect(URL1+'?'+url_encode_form_vars(_))"
If your original form submits using the GET method, then QUERY_STRING
will contain the already URL encoded parameters that the
One place to start is /Control_Panel/DebugInfo/manage_main but Im not sure
if this will work for External Methods. But it does show the objects in
memory and the change over time.
--
Andy McKay, Developer, ActiveState
http://www.ActiveState.com
Programming for the People
-
(Second post)
(I speak french, sorry for my english!)
I created a ZClass, zRow. This class can contain other ZClass: zField_Text,
zField_Date, etc.
This let me define the columns contained in a zRow.
I then defined a Class zTable, wich contains zRows.
Question:
- In my manage tabs, I
Is it possible to access Python function within a ZClass ?
If yes, how should I do that ?
Thanks
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
On Wed, Aug 16, 2000 at 06:11:32PM +0100, Vincent wrote:
Is it possible to access Python function within a ZClass ?
If yes, how should I do that ?
Just create an External Method.
--
Martijn Pieters
| Software Engineermailto:[EMAIL PROTECTED]
| Digital Creations
___
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 )
Hello, I recently created a product which adds a folder, with multiple dtmldocuments
inside of it, effectivly creating a site immedatly. However, even though I can add
folders and documents easiliy, I can't seem to create properties!
It keeps giving me the Attribute error: aq_base.
Here
Take a look at the doc string in the class definition of PropertyManager. It states
that:
An object may specify that it has one or more predefined
properties, by specifying an _properties structure in its
class::
_properties=({'id':'title', 'type': 'string', 'mode': 'w'},
I made an icon form my new product, Zope loaded it correctly.
Then someone had the brilliant idea to change it. I can not figure out
how to get Zope to load the new icon. I have deleted the product from
Product Management at /Control_Panel / Products, rm the *.pyc files,
bounced Zope, but it
Maybe I have found a situation, where images are not working or rather
acquisition.
For example, you create 2 documents and one image
doc1 (DTML Document)
contents: "document 1 dtml-var doc2
doc2 (DTML Document)
contents: "document 2 dtml-var image
image (Image)
contents:
Is there a way to get the current object's class name?
dtml-var "this.__class__.__name__"
doesn't work.
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
On Wed, 16 Aug 2000, Daniel Rusch wrote:
Then someone had the brilliant idea to change it. I can not figure out
how to get Zope to load the new icon. I have deleted the product from
Product Management at /Control_Panel / Products, rm the *.pyc files,
bounced Zope, but it still hangs on to the
- I have a folder in my zope tree called spam.
- spam has one document called "foo"
- spam has a property called "eggs" which is set to "green"
foo looks like this:
hello
p!--#var eggs -- ( dtml-eggs; )
I want to be able to change the value of eggs to, say, "blue" like so:
!--#if
On Wed, Aug 16, 2000 at 02:08:47PM -0500, Daniel Rusch wrote:
I made an icon form my new product, Zope loaded it correctly.
Then someone had the brilliant idea to change it. I can not figure out
how to get Zope to load the new icon. I have deleted the product from
Product Management at
Maybe I have found a situation, where images are not working or rather
acquisition.
For example, you create 2 documents and one image
doc1 (DTML Document)
contents: "document 1 dtml-var doc2
doc2 (DTML Document)
contents: "document 2 dtml-var image
image (Image)
--- Rik Hoekstra [EMAIL PROTECTED] wrote:
Paul Schreiber wrote:
- I have a folder in my zope tree called spam.
- spam has one document called "foo"
- spam has a property called "eggs" which is set to "green"
foo looks like this:
hello
p!--#var eggs -- ( dtml-eggs; )
I want to
Chris McDonough writes:
Folks,
Available at http://www.zope.org/Members/mcdonc/Products/EventLogManager
is my attempt to write a somewhat smarter logging facility for Zope. It
supports complex rules processing and configurable targets (syslog and
file). It's been tested under Linux
I want to create an "images" directory for a web site and store image objects there
that I can reference. How do I get a DTML document in a higher directory to see the
images folder and locate the appropriate image?
...Paul
___
Zope maillist -
Somewhere along the way, the acl_users/Contents form has decided to quit
filling in the value of each user's password, so that their roles can
only be
assigned if a Manager knows their password...I've got new installation
running
Zope 2.2.0 and a new CVS PTK release on another box that does it
On Wed, 16 Aug 2000, Paul Schreiber wrote:
dtml-call "manage_changeProperties('eggs', 'blue')"
dtml-call "manage_changeProperties({'eggs': 'blue'})"
--RDM
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No
They can. :-)
-Original Message-
From: Dan L. Pierson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 16, 2000 3:38 PM
To: Chris McDonough
Cc: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Subject: [Zope] EventLogManager1.0
Chris McDonough writes:
Folks,
Available at
Spicklemire, Jerry writes:
There is a value included in "REQUEST" called HTTP_ACCEPT.
Is there a way within Zope to reset this value?
dtml-call "REQUEST.environ.update({'HTTP_ACCEPT' : whatever_you_want})"
The default seems to be "*/*", but our sysadmin says Zope
would get along
Francois-Regis CHALAOUX writes:
How to import classes in an External method?
I mean, where to place the module where my class is defined. I tried to put it
in "lib/python/" or "Zope-2-2-0/lib/python/Shared", or in
"/usr/lib/python1.5/" but I always got the same message :
The
[EMAIL PROTECTED] writes:
I created a ZClass, zRow. This class can contain other ZClass: zField_Text,
zField_Date, etc.
This let me define the columns contained in a zRow.
I then defined a Class zTable, wich contains zRows.
Question:
- In my manage tabs, I needed a have a
Lucas Hofman writes:
We use PTK as an intranet for a RD company. Users publish their reports
as in PDF format using portal file object type.
Now and then (enough to be irritating, but not reproducable on demand)
the PDF file gets corrupted in the download, resulting in the reader
Marcin Kasperski writes:
* Problem
The problem: while presenting some page, I would like to automagically
add links to 'previous' and 'next' page in the same directory. Say you
organize a bunch of HOWTOS and you would like to let the people navigate
via 'next' links - without going
Marcin Kasperski writes:
1) How can I set standard DTML Document properties (title!) from my
constructor? I created constructor form and constructor method, I
succesfully prompt for and set all my properties but I do not know how
to set properties belonging to DTML Document.
Daniel Rusch wrote:
Can anyone out there demystify this for me???
Browser caching perhaps?
Chris
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
Hi everyone !
The Paris Zope Meeting is a great opportunity for Europe's Zope community
to meet Paul Everitt, CEO of Digital Creations, who is currently in France
for holidays. It is also a chance to meet Zope developers from England,
Germany, Switzerland and of course France.
If you want to
Dead on balls accurate. Works like a charm.
Thanks Chris.
(now have to figure out why I couldn't figure that out!) :)
J
From: Chris Withers [EMAIL PROTECTED]
Organization: New Information Paradigms
Date: Wed, 16 Aug 2000 23:17:01 +0100
To: "J. Atwood" [EMAIL PROTECTED]
Cc: [EMAIL
The differentiating factor is the version. This was an issue in 2.1.6.
Upgrade time :)
--
Andy McKay, Developer, ActiveState
http://www.ActiveState.com
Programming for the People
- Original Message -
From: "David Riggs" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent:
"Smith, Paul" wrote:
I want to create an "images" directory for a web site and store image objects there
that I can reference. How do I get a DTML document in a higher directory to see the
images folder and locate the appropriate image?
dtml-with images_folder
dtml-var an_image
/dtml-with
Hello,
Ive successfully compiled the DCOracle package and then moved the
compiled modules to the DCOracle directory of ZOracleDA, and now the DA
shows up as non-broken in my Zope installation..
However, when I try to add a ZOracleDA connection object to my Zope
website, I get a "this document
On Wed, 16 Aug 2000, Marcin Kasperski wrote:
dtml-with "mk_dtml_document.createInObjectManager(REQUEST['id'],
REQUEST)"
dtml-call "propertysheets.Extra.manage_editProperties(REQUEST)"
dtml-comment How can I change original title? /dtml-comment
dtml-call reindex_object
/dtml-with
On Wed, 16 Aug 2000, Marcin Kasperski wrote:
Pass it as an argument to the call that creates the DTML Document.
How?
Currently my constructor method contains
the following (mk_dtml_document is my custom class which subclasses DTML
Document, Extra is the name of my custom propertysheet):
On Wed, 16 Aug 2000, Paul Schreiber wrote:
--- "R. David Murray" [EMAIL PROTECTED] wrote:
On Wed, 16 Aug 2000, Paul Schreiber wrote:
dtml-call "manage_changeProperties('eggs', 'blue')"
dtml-call "manage_changeProperties({'eggs': 'blue'})"
This:
b!--#var eggs --/b
dtml-call
Hi all,
I hope this hasn't been asked to death before, but out of lots of
related information that I did find, I could not find a direct
answer to my question.
I have been using and really enjoying Zope on my Debian system at
home, but would like to start using it for a couple of web sites
that
hello all
has anybody encountered problems when upgrading from 2.2.0 to 2.2.1b1? i
have problems with some products (kmnetnews), and some of my ZClasses. are
there any known issues? things i should have considered?
there are also tracebacks "Couldn't load state" when starting zope in
is Zope.org running 2.2.1b1 or CVS? cause i think key error still occurs.
check out 'What's New' at Zope.org, and you'll get the error.
i might be wrong though
thanks
___
Zope maillist - [EMAIL PROTECTED]
66 matches
Mail list logo