Hello!
Can anyone here explain clearly what is the difference between DTML
Methods and DTML Documents regarding acquisition?
Well, in simple cases I think I understand it. When I call a Method
through the web, it use dynamic (based on current URL) acquisition path. A
Document uses static
Tres Seaver wrote:
http://dev.zope.org/Wikis/Proposals/HookablePUTCreation
That gives me a NotFound :-S
cheers,
Chris
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
Frederic Quin wrote:
Hi all,
I can't find the bug collector product to install it in my zope. Maybe it's not
possible... If it is, please tell me where to download it.
http://www.zope.org/Members/klm/TrackerWiki/
cheers,
Chris
___
Zope
Hi Dirksen,
In python you would normally do:
super_class_object.manage_delete(self)
but it might be easier/better in the case of a DataSkin
to use a SkinScript 'WHEN OBJECT DELETED xxx '.
-steve
"Dirksen" == Dirksen [EMAIL PROTECTED] writes:
Dirksen I have a ZClass
where can i download (exact url) binary version
of zope to install it on my win95 system?
for now i've only been able to download python
source code version of zope.
how do i execute dtml files?
_
Get Your Private, Free
Dear Zope,
I am very new to the Zope idea. I like what Zope is trying to do.
But I am trying to set up an external SQL database connection.
I have read the information thats on the Zope website.
It has not made it any clearer about setting up a DA and making the
connection.
Thanks in advance
Hello,
I'm trying to call a method inside a folder that uses this common way of
listing its content:
dtml-in "PARENTS[0].objectValues('File')"
dtml-var absolute_urlbr
/dtml-in
Let's call this folder FileLibrary. (It's actually a Z Class subclassed
from ObjectManager)
My problem is when I call
On Fri, 5 Jan 2001, Chris Withers wrote:
Tres Seaver wrote:
http://dev.zope.org/Wikis/Proposals/HookablePUTCreation
That gives me a NotFound :-S
Hmm, sure enough. I wonder why the "DevSite" has to be there
even inside dev.zope.org? At any rate, the "correct" URL is:
Phil Harris wrote:
Wouldn't it be better to pass in self?
As in:
def my_method(self,REQUEST=None):
'''my_method interpreting *REQUEST*.form.'''
if REQUEST is None:
REQUEST=self.REQUEST # safety_valve in case you forget to pass in
REQUEST
form= REQUEST.form # this is a
On Friday 5 January 2001, at 12 h 26, the keyboard of Oleg Broytmann
[EMAIL PROTECTED] wrote:
Can anyone here explain clearly what is the difference between DTML
Methods and DTML Documents regarding acquisition?
Not me but this HOWTO:
On Fri, 5 Jan 2001, Stephane Bortzmeyer wrote:
http://www.zope.org/Members/michel/HowTos/DTMLMethodsandDocsHowTo
saved my life.
Thanks. I'be read it yesterday. It does not help much because it does
not answer my question:
If I call http://machine:port/top/middle/AFolder/ADocument (in
I have an array created using javascript on one web page. I want to access
that same array (or piece of it) on another page. How can I go about doing
this without using forms?
___
Zope maillist - [EMAIL PROTECTED]
On Fri, 5 Jan 2001, Stephane Bortzmeyer wrote:
http://phd.russ.ru/pcgi/TEST/2/index_html
WOW! It show foobar again from root, not from /TEST/2!
standard_html_header acquires using static path provided by index_html!
You started acquisition from index_html. Since it has no foobar, it
On Friday 5 January 2001, at 12 h 26, the keyboard of Oleg Broytmann
[EMAIL PROTECTED] wrote:
When I call standard_html_header directly through the web, it acquires
foobar using dynamic acquisition path:
Actually, if I understand it myself :-) it acquires foobar because a method
has no
Try...
for k,v in form.items():
k should contain the key name
v should contain the value
Otherwise...
value = form['Name_Of_Variable_OF_my_form']
Hope that helps.
Ryan
Hello,
Ok Sirs, I'm very late in my checking my mailbox ;-)
I've a question in this code above : How can I get
On Friday 5 January 2001, at 17 h 58, the keyboard of Oleg Broytmann
[EMAIL PROTECTED] wrote:
There are many Documents on my site, not only index_html. Should I make
them all Methods? Why after this I need Documents at all?
Because not all documents are acquired (from an above folder).
Hello!
I think hade a similar problem. It seems that you can only use methods for
acquisition, not documents.
I had an index_html DOC where I specified the structure of my site. In
index_html I used dtml-var some_doc that and in some_doc I once dtml-var
other_doc.
The idea was that in my
Scavenging the mail folder uncovered Olaf Zanger's letter:
hi there,
i'm searching for a i18n product,
on translator i seam to miss "xmlio".
use attached xmlio.py (put it in $ZOPE_HOME/lib/python/Shared)
you don't have to use the makefile. just untar the tarball into
$ZOPE_HOME. (i use
Is there any way to split a string in a PythonMethod without passing the
object _.string as an argument?
I have tried to "import string" but Zope generates an ImportError:
ImportError: __import__ not found
I'm using PythonMethod 0.1.7
___
Zope
On Fri, 5 Jan 2001, Stephane Bortzmeyer wrote:
http://www.zope.org/Members/michel/HowTos/DTMLMethodsandDocsHowTo
saved my life.
Thanks. I'be read it yesterday. It does not help much because it does
not answer my question:
If I call http://machine:port/top/middle/AFolder/ADocument
Yes. Just use it. string is already in the Python Methods namespace.
EXAMPLE:
Python Method
Parameter list: self
Python function body:
testsentence = 'I want this sentence to be converted into a list of its
component words.'
thelist = string.split(testsentence)
for aword in thelist:
print
Hi there !
I'm trying to add imagens with a perl XML-RPC script
Does anyone knows how to do that ??
I'm tring something like this
but Zope adds a conten-type like text/x-unknown-content-type
and i wanted a image content-type !
here's the code :
-
#!/usr/bin/perl
use
I was looking at my Z2 log and notice an entry that repeats itself over
and over and was wondering if anyone could tell me how to trace it down.
The message is
[20/Nov/2000:13:00:11 -0700] "HEAD /opnix/portal HTTP/1.0" 401 1906 ""
""
[20/Nov/2000:13:00:17 -0700] "HEAD /opnix/portal
Hello,
Here is this problem again that has reappeared
I already posted about this problem some months ago,
but did not manage to make it work, and I had to rewrite
all the class from scratch.
(of course, I did a lot of cut and past, but you
have to do a lot of manual work recreating the
You can use the ZNolk SQL wizard also available from zope.org
Mohan
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Alex
Burton
Sent: Friday, January 05, 2001 12:47 PM
To: [EMAIL PROTECTED]
Subject: [Zope] SQL "editing"
Hello All,
I'm quite
where can i download (exact url) binary version
of zope to install it on my win95 system?
for now i've only been able to download python
source code version of zope.
how do i execute dtml files?
i just want to know that. thanks
We use the Znolk wizard. It's good for creating the initial entry, edit,
list forms as well as the queries to add, edit and delete.
Original Message
On 1/5/01, 10:47:14 AM, Alex Burton [EMAIL PROTECTED] wrote regarding
[Zope] SQL "editing":
Hello All,
I'm quite happy, got MySQL +
I have looked through the Zope book and other documentation, but still
am unable to properly allow others to change properties in a product
with a custom built form.
Case in point, a product with a Property called
contact
which is a string
The product changing method I am trying to make work
"Ryan M. Dolensek" wrote:
Try...
for k,v in form.items():
k should contain the key name
v should contain the value
Otherwise...
value = form['Name_Of_Variable_OF_my_form']
Hope that helps.
Ryan
Hello,
Ok Sirs, I'm very late in my checking my mailbox ;-)
I've a
Edmund Goppelt writes:
... manage_workspace redirects ...
It does this, if the current permissions does not allow
the use of any of the available tabs.
Are you sure, you set the permission mappings correctly?
Dieter
___
Zope maillist - [EMAIL
Zopatistas,
I need functionality that none of the UserManagers seem to address. I
need to allow a user to elect to log in (and set
AUTHENTICATED_USER) as opposed to have them access a restricted
resource to trigger cookie authentication.
I am essentially limited to GUF because it's the only
Zopatistas,
I need functionality that none of the UserManagers seem to address. I
need to allow a user to elect to log in (and set
AUTHENTICATED_USER) as opposed to have them access a restricted
resource to trigger cookie authentication.
You mean you want to use AUTHENTICATED_USER like a
Hi,
I am having difficulty displaying the results from an SQL query:
SELECT COUNT(*)
FROM REGISTRY
WHERE dtml-sqltest classcode op=eq type="float"
When I call the ZSQL method from my DTML method and try and display the
result (using dtml-var count) I get a rather horid,
Lee,
Have you tried SELECT COUNT(*) AS myCountField
and then using dtml-var myCountField
May work.
Alex
[EMAIL PROTECTED]
- Original Message -
From: Lee [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, January 05, 2001 10:12 PM
Subject: [Zope] SELECT COUNT(*) ZSQL method -
Hi,
I am trying to get xemacs to use dtml tags (zope), I downloaded .dtd,
.ent, .el files and can get it to go into "dtml-mode", but I can't get any
of the tags to appear in the menus. I put the files in ~/Emacs/ (this is
referenced in my .emacs file) it seems to find my public file, and the .el
Marcus Mendes writes:
I've got the follow content : Key Error SERVER_NAME, that is,
form= REQUEST.form
server = form['SERVER_NAME']
The error report is unambiguous.
Your "REQUEST.form" does not contain "SERVER_NAME".
You may try "REQUEST['SERVER_NAME']".
Oleg Broytmann writes:
Can anyone here explain clearly what is the difference between DTML
Methods and DTML Documents regarding acquisition?
I think, I gave a good answer to a similar question
in zope-dev recently -- searchable list archive.
Dieter
Soren Roug writes:
Hello,
I'm trying to call a method inside a folder that uses this common way of
listing its content:
dtml-in "PARENTS[0].objectValues('File')"
dtml-var absolute_urlbr
/dtml-in
Let's call this folder FileLibrary. (It's actually a Z Class subclassed
from
hi,
i'm very new to zope and am trying to get familiar with the variety of
mechanisms i can use. zope is indeed a very nice package!
i am starting with version 2.3.0a1 (because it matches the book).
i've not yet had success getting preconditions to work with file
objects. i hope i'm not doing
Stuart Foster writes:
I was looking at my Z2 log and notice an entry that repeats itself over
and over and was wondering if anyone could tell me how to trace it down.
The message is
[20/Nov/2000:13:00:11 -0700] "HEAD /opnix/portal HTTP/1.0" 401 1906 ""
""
[EMAIL PROTECTED] wrote:
Zopatistas,
I need functionality that none of the UserManagers seem to address. I
need to allow a user to elect to log in (and set
AUTHENTICATED_USER) as opposed to have them access a restricted
resource to trigger cookie authentication.
*Ahem* Actually,
Nando
This should be what you are looking for:
http://www.zope.org/Products/Zope/2.2.4/Zope-2.2.4-win32-x86.exe/view
I have been running Zope on Win95 and Win98 on laptops for learning,
development and off-line site demsontration very happily for a long time.
You don't 'execute dtml files'
Linux 6.2, Zope 2.2.4, PostgreSQL 7.0.3, PoPy 1.4.1, ZPoPyDA 0.7.0
I installed the PoPy module and at the Python command line can
import PoPy' with no problems. I then untarred the ZPoPyDA and
restarted Zope at which point I get (in the Zope management screen).
ZPoPyDA Import Traceback
On Thu, Jan 04, 2001 at 12:02:17PM -0700, [EMAIL PROTECTED] wrote:
Hello,
Has anyone translated a site within Zope ? I have tried the ZBabel
Translation System (http://www.zope.org/Members/TheJester/ZBabel) and
didn't think it did really what I was after.
I need to translate the site
Shane Hathaway wrote:
when a product has syntax errors. One of the first things I did at
Digital Creations was make sure that got fixed. :-)
Does this mean this bit from your average product's __init__.py isn't
neeeded anymore?
except: # If we can't register, complain!
import
Shane Hathaway wrote:
Shane Hathaway wrote:
def sort_strings(data):
sortable_data = list(map(lambda s: (lower(s), s), data))
sortable_data.sort()
return map(lambda s: s[1], sortable_data)
... Or better, you could pass a comparison function to sort() like Tres
suggested. :-)
On Thu, Jan 04, 2001 at 10:46:35AM +, Chris Withers wrote:
Dieter Maurer wrote:
acquisition.donotacquire('index_html')
This would be great.
Indeed :-)
class MyClass (Acquisition.Explicit):
acquisition = ClassAcquisitionInfo()
Michael Bernstein wrote:
Your example is correct as far as it goes, but as I
understand it, you are not really specifying the default
catalog per se, but the default catalog *name*.
snip
This is true, and one of the reasons why I (and maybe only I ;-)
consider CatalogAware somewhat less
Michael Bernstein wrote:
Aha!
You're saying that catalog_object and uncatalog_object are
methods of the catalog, so when the catalog contains the
objects directly, it's all that's neccessary, correct?
Yes :-)
uncatalog_object to be called on it (I'm not sure what
method reindex_object
Brian Lloyd wrote:
Are you talking about 'ProtocolAccessibility'? It's still
there (though Jim has done some rearranging of things there
lately)...
http://www.zope.org//Wikis/DevSite/Proposals/ProtocolAccessibility
So it is :-)
Comments are still welcome...
Chris
On Fri, Jan 05, 2001 at 12:22:32PM +, Chris Withers wrote:
Martijn Pieters wrote:
You could use ComputedAttribute for that:
class MyClass(Acquisition.Explicit):
# The following attribute is acquired transparently
def _acquired_your_attribute(self):
return
This is an RFE for Zope 2.3.
I'm posting it here for discussion, rather than in the Collector.
In the new PythonScripts product (that is a standard part of Zope 2.3)
there is a standard utility module that can be imported into a Python
Script with
import Products.PythonScripts.standard
Toby Dickenson wrote:
On Fri, 05 Jan 2001 12:18:07 +, Chris Withers [EMAIL PROTECTED]
wrote:
http://www.zope.org//Wikis/DevSite/Proposals/ProtocolAccessibility
So it is :-)
Comments are still welcome...
Comments provided as requested
With sensible defaults, what I was
Steve Alexander wrote:
The PythonScripts product could add these functions to the _ namespace
variable at product init time, so there would be no need to change the
DocumentTemplate modules.
And here's a patch:
Just add these lines at the end of
Chris Withers wrote:
If you have something like that, wouldn't it be better, more readable,
etc, for it to be moved intop a python script, even if that script was
only 1 line long?
eg:
dtml-if
"mysomething(_['title_or_id'],_.standard.html_quote(absolute_url()+_[id]))"
You are being
Steve Alexander wrote:
eg:
dtml-if
"mysomething(_['title_or_id'],_.standard.html_quote(absolute_url()+_[id]))"
You are being deliberately Byzantine there!
I provided a good example for my case, don't know what Byzantine means,
erk :-S
However, I agree with you in principle.
I've
Christian Scholz wrote:
yeah, this is exactly what I'm after too. I'd like the virtual objects
the specialist is responsible for to have normal Zope management
screens.
Well, I think this shouldn't be too difficult to create. Just a subclass
of Specialist and add some Contents-Tab,
Chris Withers wrote:
Shane Hathaway wrote:
when a product has syntax errors. One of the first things I did at
Digital Creations was make sure that got fixed. :-)
Does this mean this bit from your average product's __init__.py isn't
neeeded anymore?
except: # If we can't
Shane Hathaway wrote:
when a product has syntax errors. One of the first things I did at
Digital Creations was make sure that got fixed. :-)
Does this mean this bit from your average product's __init__.py isn't
neeeded anymore?
except: # If we can't register, complain!
Steve Spicklemire wrote:
No... I don't think so! If you don't mind keeping stuff in ZODB
then you *could* have a traversal interface that made stuff 'appear'
wherever you want it to, though its persistent storage would 'really'
be in a Rack or FwCS.
Cool... how would I go about doing that?
Toby Dickenson wrote:
IMO their goals are achieved better, and simpler, with a HOWTO
that explains how to configure the 'access contents information' permission.
That's not been my experience, but maybe that How-To would help :-)
Care to write it? ;-)
I think perhaps you havent appreciated
Chris Withers wrote:
Shane Hathaway wrote:
when a product has syntax errors. One of the first things I did at
Digital Creations was make sure that got fixed. :-)
Does this mean this bit from your average product's __init__.py isn't
neeeded anymore?
except: # If we
Toby Dickenson wrote:
That's not been my experience, but maybe that How-To would help :-)
Care to write it? ;-)
It is on my todo list
cool :-)
Protocol independence is not necessarily a good thing in this case.
Different protocols have different capabilities.
The zope way of
Michael Bernstein wrote:
Now I'm wondering how to duplicate the behaviour of Postings
being contained within Squishdot, but not appearing in the
'Contents' tab.
that's definitely a 'bad' thing :-(
Why duplicate anyway? You writing a replacement? ;-)
cheers,
Chris
There's a (much) simpler way:
class MyClass(Acquisition.Explicit):
your_attribute = Acquisition.Acquired
# index_html isn't
index_html = None
"Acquired" is a special object that the acquisition module looks for.
However, I wasn't aware you could add a "1" to the ComputedAttribute
Shane Hathaway wrote:
There's a (much) simpler way:
class MyClass(Acquisition.Explicit):
your_attribute = Acquisition.Acquired
# index_html isn't
index_html = None
Cool :-)
And I suppose the other part of my wishlist:
class MyClass(Acquisition.Implicit):
#
On 1/5/01 7:16 AM, "Chris Withers" [EMAIL PROTECTED] wrote:
uncatalog_object to be called on it (I'm not sure what
method reindex_object causes to be called).
unindex_object followed by index_object. I'm not convinced it's
necessary, as no-one has said that uncataloging is a necessary step
Hi,
There was talk a while back of re-doing BTree's in Zope so they were
more efficient. Is that still going ahead?
If I start using BTree folders now, will there be any nasties when the
changes happen?
Right, BTree folders wise, what I'm looking for is to have, in effect
two Contents tabs for
where can i download (exact url) binary version
of zope to install it on my win95 system?
for now i've only been able to download python
source code version of zope.
how do i execute dtml files?
i just want to know that. thanks
Chris Withers wrote:
Right, BTree folders wise, what I'm looking for is to have, in effect
two Contents tabs for one BTree folder object, one showing all contained
items of a particular meta_type (with the BTree Folder's interface to
deal with lots of objects), and the other containing all
Hi folks,
http://www.cat-box.net/steve/skinscript_ref-0-4-3b2.ps.gz
This is a two-up A4 postscript version of PJE's most useful SkinScript
reference. It prints out to four landscape-orientation A4 pages.
http://www.cat-box.net/steve/skinscript_ref-0-4-3b2_letter.ps.gz
This is similar,
Steve Alexander wrote:
If you're using ZPatterns anyway,
After looking at ZPatterns for a few more days again, I still can't
justify introducing that ammount of complexity to the project concerned.
Also, ZPatterns seems very skewed towards TTW development now and, for
CVS and distributability
Let's say I have a DataSkin-derived ZClass that has the attribute
"forename" (in a dataskin attribute propertysheet).
If I get an instance of this ZClass from the ZODB (set up to use a
Folder w/ customizer suppport), I can refer to the "forename" attribute
using dtml-var "this()['forename']".
Steve Alexander wrote:
Let's say I have a DataSkin-derived ZClass that has the attribute
"forename" (in a dataskin attribute propertysheet).
If I get an instance of this ZClass from the ZODB (set up to use a
Folder w/ customizer suppport), I can refer to the "forename" attribute
using
Zopists,
I finally got Splitter.c to let me index numbers and 'C++' in a TextIndex.
I have about 50,000 objects in that index, and search performance is nearly
instantaneous still. I am running on a big machine though. If anyone
wants those changes there's really easy. Just mail me directly,
Hi Steve,
Hmm.. is the 'id' of your PythonScript also getattr?
thanks,
-steve
"Steve" == Steve Alexander [EMAIL PROTECTED] writes:
Steve Steve Alexander wrote:
Let's say I have a DataSkin-derived ZClass that has the
attribute "forename" (in a dataskin attribute
Steve Spicklemire wrote:
Hi Steve,
Hmm.. is the 'id' of your PythonScript also getattr?
Yes. I forgot to mention that. And, I realized just after posting the
email to the list that calling a method "getattr" is asking for trouble :-)
Actually, my workaround doesn't work except in the
Jason Spisak wrote:
Zopists,
I finally got Splitter.c to let me index numbers and 'C++' in a TextIndex.
I have about 50,000 objects in that index, and search performance is nearly
instantaneous still. I am running on a big machine though. If anyone
wants those changes there's really
Steve Alexander writes:
I like your idea.
It is one way to implement my recent "lobbying" request
with minimal effort.
Dieter
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or
Chris Withers writes:
And I suppose the other part of my wishlist:
class MyClass(Acquisition.Implicit):
# your_attribute will be acquied
# index_html won't
index_html = None
No, that is not enough!
As a side effect to turn off acquisition, you defined
the
Let's say I have a trigger that is called to ensure that what something
is changed to holds true.
I use some skinscript like this:
WHEN OBJECT ADDED, CHANGED CALL self.ensure_conditions_hold()
I write the ensure_conditions_hold method so that it returns None if
everything is ok, but raises
At 12:49 AM 1/6/01 +, Steve Alexander wrote:
WHEN OBJECT ADDED, CHANGED CALL self.ensure_conditions_hold()
I write the ensure_conditions_hold method so that it returns None if
everything is ok, but raises an exception if there is a problem with the
new state of the object.
That's all
Casey Duncan:
It truely is nothing more than cutting out the two parts that eliminate
single letter words and numbers:
*** Zope-2.2.4-src/lib/python/SearchIndex/Splitter.c
--- Zope-2.2.4-src/lib/python/SearchIndex/Splitter_Old.c
***
*** 169,192
len = PyString_Size(word)
Erik,
[Jason Spisak]
| I am running on a big machine though. If anyone wants those changes
| there's really easy. Just mail me directly, since it's a long file
| to post.
Hi. I would be interested in the file :-).
Okay, here's the diff. It truely is nothing more than cutting out
Chris Withers wrote:
Michael Bernstein wrote:
Now I'm wondering how to duplicate the behaviour of Postings
being contained within Squishdot, but not appearing in the
'Contents' tab.
that's definitely a 'bad' thing :-(
Why is that bad? A custom object management UI ('Postings'
and
85 matches
Mail list logo