Relational database adapters (like ZOracleDA, etc.) are currently not
compatible with subtransactions. I worked around this for a customer by
adding dummy commit_sub and abort_sub methods to the database adapter's DB
class, e.g.
def commit_sub(*arg, **kw): pass
def abort_sub(*arg, **kw): pass
Chris,
This occurs using the bog-standard ZODB as well, nothing to do with any
other storage facility.
Phil
- Original Message -
From: "Chris McDonough" [EMAIL PROTECTED]
To: "Phil Harris" [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Wednesday, January 10, 2001 9:27 AM
Bak,
I can't help you fix it but I can tell you what the problem is, the file is
too big for Zope to cope with in one transaction so it starts a
sub-transaction and there is a bug in the sub-transactioning engine.
The same thing happens with a normal 'File' type as well.
You should probably
It was a great idea to get the list of product sort on date in download zone.
Today appears only categories and product annonced in news.
So, is it a maintenance period or a stable presentation of products ?
FRC.
___
Zope maillist - [EMAIL
On Wednesday 10 January 2001 16:56, Phil Harris wrote:
Bak,
I can't help you fix it but I can tell you what the problem is, the file is
too big for Zope to cope with in one transaction so it starts a
sub-transaction and there is a bug in the sub-transactioning engine.
The same thing
I do not think that "fuzzy logic" is strongly related to "regexp-like".
Anyway.
Fuzzy searching often means "finding matches with characters omitted,
replaced or inserted".
It seems I misunderstood the term fuzzy logic myself. Fuzzy logic means
if I search for a word, for example
I've never seen that failure mode.. It'd be nice to get a reproducible bug
out of it.
- Original Message -
From: "Phil Harris" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Wednesday, January 10, 2001 4:09 AM
Subject: Re: [Zope]
This is precisely what Zope's new cache management architecture is
designed to do. Just create the site then install a cache manager
object such as an "Accelerated HTTP Cache Manager", available in the
StandardCacheManagers product. Visit the "Associate" tab of the cache
manager to locate
Hi,
I've been using 2.1.6 for a long time without any problem, using a home
compiled python 1.5.2
Yesterday I've tried to upgrade to 2.3.0a1 the following way:
export each and every home made sites and products (ZClasses) from 2.1.6
stop 2.1.6
install 2.3.0a1 and start it
import each and every
Hello,
I tried to create my first class following a tutorial. I exported
the rudimentary class via export function. Now I wanted to import
it on my laptop to continue working on it but importing failed with
the message:
The object my_class_name does not support this operation
What could
On Wednesday 10 January 2001 17:55, Chris McDonough wrote:
I've never seen that failure mode.. It'd be nice to get a reproducible bug
out of it.
this is wierd. with new install of zope2.16, zope2.20, zope2.2.5 -
XMLDocunebt add works great. no error.
but with zope2.2.5 (with all other
I've been asked to put up a Holiday Calendar on our Intranet by my HR. We're
currently using Squishdot and EventFolder for the Intranet frontpage. Does
anybody have or know of anything that might save me some time? Doesn'
___
Zope maillist - [EMAIL
Doesn't have to be a Zope product. Not even Python for that matter. Just as
long as it is possible to _integrate_ with a zope site.
Depends on WHEN you need it ...
By end of January/early February we'll have a groupware thingy ready that
will do things like holiday planning etc. (and much
On Wednesday 10 January 2001 10:04, Francois-regis Chalaoux wrote:
It was a great idea to get the list of product sort on date in download
zone. Today appears only categories and product annonced in news.
So, is it a maintenance period or a stable presentation of products ?
There is a link
[ sorry for the broken up email. I accidently pushed Ctrl+Return]
...
Doesn't have to be a Zope product. Not even Python for that matter. Just as
long as it is possible to _integrate_ with a zope site.
Thanks, Peter
___
Zope maillist - [EMAIL
By end of January/early February we'll have a groupware
thingy ready that
will do things like holiday planning etc. (and much more ...)
Where can we look at a preview? :)
/Magnus
___
Zope maillist - [EMAIL PROTECTED]
On Mon, 08 Jan 2001 14:34:20 -0800, [EMAIL PROTECTED] wrote:
If it supports the ability to direct traffic
based upon the virtual host address, then squid works
Yes, squid can do this using a redirector; an external program to
rewrite urls.
Toby Dickenson
[EMAIL PROTECTED]
Hopefully that will get someone's attention. I have an SQL method that
returns
(name,domain,otherstuff)
I have a DTML method (/root/host/show) that looks like this:
dtml-comment
'name' and 'domain' are set to the primary hostname
and domain at this point by whatever calls this
DTML method
Hi,
Since a few days I'm experiencing some response problems on my zope site. At
some moments calling a page goes very fast a few seconds later, recalling
this page takes very long! At the end, every page takes long time, if they
ever appear
If I use a simple memory checker program, then I
"Mayers, Philip J" wrote:
snip
Try this:
Change your show method in root to be as follows:
dtml-in get_machine_hosts
dtml-var show_row
dtml-in get_host_aliases
dtml-var show_row
/dtml-in
/dtml-in
And add another DTML method in root as follows:
show_row:
TR
TDdtml-var ip missing/TD
That was how I had the code originally. Didn't help. I've already read the
Zope 'book' (if I were using 2.3 (which I can't, because LoginManager
doesn't work OOTB), I'd be using Python methods to do most of this instead.
I'm not, I'm using 2.2.5)
Thanks anyway.
Regards,
Phil
"Mayers, Philip J" wrote:
Change your show method in root to be as follows:
dtml-in get_machine_hosts
dtml-var show_row
dtml-in get_host_aliases
dtml-var show_row
/dtml-in
/dtml-in
And add another DTML method in root as follows:
show_row:
TR
TDdtml-var ip
Sorry - I'm being unclear: the result is exactly the same either way i.e.
the variables "name" and "domain" seem to be reset to the values from
outside the dtml-in block when entering the dtml-with block.
I'm wondering if it's a bug in the postgres DA, since I can't reproduce it
with a quick
Hi!
I add a list property to a DTML document of type 'tokens' (e.g. '[1, 2,
3]') wenn i try to retrieve it with _.getitem i get '[1,' '2,' '3]'
instead of '1' '2' '3'
How can I get Zope to interpret my property like a list not a string or
whatever else?
Thank you in advance!
"Mayers, Philip J" wrote:
Sorry - I'm being unclear: the result is exactly the same either way i.e.
the variables "name" and "domain" seem to be reset to the values from
outside the dtml-in block when entering the dtml-with block.
Change your show method in root to be as follows:
Ok, using Postgresql 7.0.2-2, PoPo 2.0.1, ZPoPyDA 1.1-pre2, Zope 2.2.5,
here's a reproducible scenario:
Create the following tables in your database:
create table bugtest1 (
name text,
domain text,
);
create table bugtest2 (
name text,
domain text,
refer text,
foreign key(refer) references
My Zope-MySQL connection is still not quite working. It appears that the
request from Zope is reaching MySQL and it if is an UPDATE or INSERT query
it executes properly on the MySQL side. However, SELECT queries and similar
are not getting their information back to Zope from MySQL. Is there some
From: Andrei Belitski [mailto:[EMAIL PROTECTED]]
I add a list property to a DTML document of type 'tokens' (e.g. '[1, 2,
3]') wenn i try to retrieve it with _.getitem i get '[1,' '2,' '3]'
instead of '1' '2' '3'
How can I get Zope to interpret my property like a list not a string or
whatever
Has anyone else had trouble using the ZWikiWeb product? As Manager, there
are no problems, but users I have added cannot add ZWikiWebs in their own
folders. While already logged in, a login box comes up, meaning they do not
have the necessary permissions. When I cancel the box, I get the Zope
Hello all,
i have a question and I hope someone can point me in the right direction
to solve it. I need one zope object to hold a reference to another zope
object so the first object can call methods of the second object. oh,
these are python classes.
Example: object 1 is :
Hi everyone,
I'm working on a Web page for our local school board. I'd like to create a
table that would display links to past board meeting minutes. The table
would look like this: (Note: dates are bogus)
+---+
| Meeting Minutes |
|
From: Timothy Wilson [mailto:[EMAIL PROTECTED]]
Right now, I've got the dates stored in a TinyTable. I can iterate through
that list and generate the links, but I can't figure out how to display the
table in two columns.
table width=100% border=0 cellpadding=4
tr align=left valign=top
dtml-in
If you call /container1/container1a/container2/container2a/item1, you can
call methods on anything in the path...
You could access it through dtml from 1-2 as dtml-with
"container1.container1a.item1"dtml-call method/dtml-with
You could get object2 in using getItem...
--
Andy McKay.
-
WE NEED TO UNLOCK A VERSION THAT DOES NOT EXIST ANY MORE!! HOW CAN WE DO
IT?!
A USER DELETED A VERSION THAT SOMEONE ELSE WAS USING, AND WE CAN NOT QUIT
THIS VERSION!!
AND WE CANNOT UNDO!!!
HELP US!!
___
Zope maillist - [EMAIL PROTECTED]
Do you have an example of the XML you are trying to use? File size, in
bytes? Just curious, as I have had no problems with XMLDocument (in Zope
2.1.x and 2.2.x) working with newspaper stories from AP online in NITF
XML...
Sean
-Original Message-
From: Bak@kedai [mailto:[EMAIL
Supposedly proximity searches are possible... like "FIDELITY within 8 words
of MUTUAL FUNDS." Can't find anything in docs. Anybody have a suggestion
here...
Thanks,
Sean
=
Sean Upton
Senior Programmer/Analyst
SignOnSanDiego.com
The San Diego Union-Tribune
619.718.5241
Really using ZCatalog? I've never heard of that. There some globbing
searches *? etc, but nothing like that is readily apparent from the API.
Sounds like an interesting (ie complicated) idea...
--
Andy McKay.
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent:
- Original Message -
From: "Andy McKay" [EMAIL PROTECTED]
To: "Rommel Novaes Carvalho" [EMAIL PROTECTED]
Sent: Wednesday, January 10, 2001 9:11 AM
Subject: Re: [Zope] HOW TO UNLOCK
Please dont post in CAPS, you are more likely not to get a response.
Heres one idea, the
[EMAIL PROTECTED] wrote:
Supposedly proximity searches are possible... like "FIDELITY within 8 words
of MUTUAL FUNDS." Can't find anything in docs. Anybody have a suggestion
here...
Yeah, I think you'd put "FIDELITY ... MUTUAL FUNDS" in the search box.
I think Dieter Maurer [EMAIL
Hi Andy,
Thanks for the feedback. Yes I see that I can call the methods using
the url (which will give me the object) but I thought that was only in
dtml. I need to access the object in my python code. that's the
struggle I'm having. or did I miss something in your response?
Tom
"Andy
Did you try deleting the cookie on the browser? Please don't yell.
Troy
-Original Message-
From: Rommel Novaes Carvalho [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 10, 2001 10:28 AM
To: '[EMAIL PROTECTED]'
Subject: [Zope] HOW TO UNLOCK
WE NEED TO UNLOCK A VERSION THAT
In python its even easier, and depends what you are doing.
Basically you want to get a handle to another object so you can do something
along the lines of
obj = self.container1.containter1a.item1
result = obj.mymethod()
there are many funky variations on that of course. There's also interfaces
Hi!
I have some ZClass istances that are catalog-aware.
Someone knows how to do raw (full text) searches over all the property
values of the istances? I have tried the "raw" index trick used for
other object types but without success. Or maybe another way to do the
thing .
Thanks in advance
I have a 2.2.5 based system with the Yihaw and ZWikiWeb products installed.
When I try to add a ZWikiWeb within a Yihaw folder, I experienced a
permissions problem that sounds like what you describe. But, I did find that
I could install a wiki object within a standard Folder object without
At 1/10/01 04:44 PM, Max Mller Rasmussen wrote:
From: Timothy Wilson [mailto:[EMAIL PROTECTED]]
Right now, I've got the dates stored in a TinyTable. I can iterate through
that list and generate the links, but I can't figure out how to display the
table in two columns.
alternating column
hi there,
a great product,
just i want to have a form to enter some parameters for the SQL Method
call.
since zgdchart-product calls the SQL Method i don't know how to pass the
parameters.
does anybody has an idea?
thanks
olaf
--
soli-con Engineering Zanger
Dipl.-Ing. (FH) Olaf Marc
- Original Message -
From: Dieter Maurer [EMAIL PROTECTED]
To: Tim Hicks [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, December 29, 2000 9:38 AM
Subject: Re: [Zope] inserting half a dtml tag into a zclass
Tim Hicks writes:
This is a multi-part message in MIME format.
I know this has been asked numerous times before (once by me!), and I'm
sorry to cover the same ground again, but I've spent all afternoon searching
through the list archives to no avail. I have a zclass that is catalogaware
(selected first and all that). When I add an instance, it gets
On Wed, 10 Jan 2001, Dennis Nichols wrote:
Or, if you insist that dates flow down the columns like I do, you could use
this untested revision of Max's solution:
table width=100% border=0 cellpadding=4
tr align=left valign=top
td width=50%
dtml-in meetingDateTable
try this kind of whacky line:
from DateTime.DateTime import DateTime
you can then do
date1= DateTime(str1)
date2= DateTime(str2)
if date1==date2:
...
--
Andy McKay.
- Original Message -
From: "Steven Grimes" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 09,
Tim Hicks wrote:
I can't for the
life of me figure out or find anywhere that can tell me how to make the
instance get reindexed when it is edited. I'm assuming that it is similar
to the process for reindexing when the properties are changed, but I'm just
not sure of the details. If it's
Off the top of my head -
you don't mention whether they have Add ZWiki Webs permission -
presumably they do
are you using the zwikiwebs.zexp shipped with zwiki ? The separate
zwikiwebs product is due to be retired and not recommended.
-Simon
___
Tom Jenkins wrote:
Hello all,
i have a question and I hope someone can point me in the right direction
to solve it. I need one zope object to hold a reference to another zope
object so the first object can call methods of the second object. oh,
these are python classes.
Example:
Federico Grau writes:
... import of "DocumentTemplate" in CGI script takes too much time ...
Check whether your Web Server supports FCGI.
If the Web Server is Apache, then there are several Apache
modules to integrate Python inside Apache.
I think Guido van Rossum uses "mod_snake".
Search
Tom Deprez writes:
... potential memory leak ...
You can use the program "top" to analyse memory usage.
This will show you, which process[es] consume memory.
If Zope does it, then you can use "Control Panel-Debugging"
to get some hints where the leak may be.
... many Zope processes shown by
Andreas Tille writes:
Hello,
I tried to create my first class following a tutorial. I exported
the rudimentary class via export function. Now I wanted to import
it on my laptop to continue working on it but importing failed with
the message:
The object my_class_name does
Fred Yankowski writes:
I just installed a full copy of Zope 2.2.5 onto my NT 4.0 SP 6 machine
and then copied over my data.fs* files from Zope 2.2.3. Zope 2.2.5
comes up OK after that, but none of the Products in the Control Panel
/ Products folder is shown as broken, even though I have
Steven Grimes writes:
This is a multi-part message in MIME format.
--=_NextPart_000_0009_01C07A9E.4B9BD860
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Please do not post MIME messages to this list!
... external method does
Jerome Alet writes:
... permission problem upgrading ZClasses from 2.1.6 to 2.3a1 ...
Are your ZClasses pure Zope ZClasses or do they contain
Python based products?
There was a big shift in security policy during
Zope 2.1.x to Zope 2.2.x.
Many Python based products need to be changed in order
Today I ran into an issue in Zope where even after you delete a role that
the permissions associated with that role exist. If a user has that role
assigned to them, whatever permissions where last assigned to that role will
be available.
To test this, I created a test file with the following
Ragnar Beer wrote:
Howdy Zopistas and happy new year!
I need to add about 150 users to an acl_users folder and I wouldn't
like to do it manually since the data already exists in a python
list. What would be an elegant way to add them all with a python
script?
A script to put in
Andrei Belitski writes:
I add a list property to a DTML document of type 'tokens' (e.g. '[1, 2,
3]') wenn i try to retrieve it with _.getitem i get '[1,' '2,' '3]'
instead of '1' '2' '3'
Are you sure, it was '[1,' '2,' '3]' and not ['1', '2', '3', '4']?
If it were, it would be really
Mayers, Philip J writes:
I'm wondering if it's a bug in the postgres DA, since I can't reproduce it
with a quick gadfly test. I'm just going to try it out now.
That would be very astonishing, as a database adapter
does not have anything to do with namespaces.
Dieter
Jim Hebert writes:
DMTL method "y":
OK, this works:
My DTML Method, "y":
dtml-return "objectValues(['Folder'])"
...
used as:
dtml-tree branches_expr="_['y']"
...
causes:
STRONGError Type: AttributeError/STRONGBR
STRONGError Value: __getitem__/STRONGBR
I tried
Tim Hicks writes:
II. I think (this implies, I am not sure), that ZPublisher
translates exceptions into HTTP response codes.
This would mean, you could try:
In your "privacy" method:
dtml-call "RESPONSE.redirect(...)"
dtml-raise
Usually, I complain that problem reports are too terse.
But, your's was very big, such that I did not read it
carefully. It is very difficult to get it right for everyone.
Just a remark:
SQL methods do *NOT* look at the DTML namespace *AT ALL*,
just at REQUEST (or the expliciitly passed
[EMAIL PROTECTED] writes:
Supposedly proximity searches are possible... like "FIDELITY within 8 words
of MUTUAL FUNDS." Can't find anything in docs. Anybody have a suggestion
here...
Zope supports some proximity searches, but it provides far less
control than you ask for.
The proximity
Dieter wrote:
"ps" is still a bit stupid and does not visualize that
they are threads rather than normal (full blown) processes.
ps -axf ?
Dimitris
http://atlas.central.ntua.gr:8000
___
Zope maillist - [EMAIL PROTECTED]
On Wed, Jan 10, 2001 at 09:49:53PM +0100, Dieter Maurer wrote:
Jerome Alet writes:
... permission problem upgrading ZClasses from 2.1.6 to 2.3a1 ...
Are your ZClasses pure Zope ZClasses or do they contain
Python based products?
They contain some PythonMethods (not Scripts !), external
I activated Zope logging as you suggested and restarted Zope, but the
logfile does not report any exceptions. It only contains routine
startup messages such as "ZServer HTTP server started ...".
And the Products list still makes it look like they're all OK, when
many are in fact broken by
Chris Withers writes:
[EMAIL PROTECTED] wrote:
Supposedly proximity searches are possible... like "FIDELITY within 8 words
of MUTUAL FUNDS." Can't find anything in docs. Anybody have a suggestion
here...
Yeah, I think you'd put "FIDELITY ... MUTUAL FUNDS" in the search box.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, January 10, 2001 9:30 AM
To: [EMAIL PROTECTED]
Subject: [Zope] MySQLDA and MySQL-python - patch needed?
My Zope-MySQL connection is still not quite working. It
At 1/10/01 01:22 PM, Timothy Wilson wrote:
On Wed, 10 Jan 2001, Dennis Nichols wrote:
Or, if you insist that dates flow down the columns like I do, you could
use
this untested revision of Max's solution
stuff removed
This doesn't seem to work. The if statement only evaluates to true the
On Wed, 10 Jan 2001, Dieter Maurer wrote:
I tried to reproduce this in Zope 2.3 CVS.
Sorry, shoulda mentioned, this error came from 2.2.4, and apologies for
not testing against at least 2.2.5 first, I managed to miss its release
entirely... (I still haven't gotten around to installing it so I
Hi everyone,
I have Evan's excellent SiteAccess product installed on my 2.3.0a1 Zope as
an add-on. Now that SiteAccess is part of the Zope core, how should I handle
the upgrade. Can I simply recompile?
-Tim
--
Tim Wilson | Visit Sibley online: | Check out:
Henry Sibley HS |
Hello all,
Zope 2.3.0 alpha 2 is now available. You can download it
from Zope.org:
http://www.zope.org/Products/Zope/2.3.0a2/
This release contains a number of new features, including:
- SiteAccess is now a part of the Zope core
- Shane Hathaway's CacheManager support and
Morten W. Petersen writes:
It seems I misunderstood the term fuzzy logic myself. Fuzzy logic means
if I search for a word, for example 'programmer', it will return matches
to the words 'program', 'programming','programmable' etc.
This, usually, is called "stemming".
Though, your examples
--- "Morten W. Petersen" [EMAIL PROTECTED] wrote:
[snip]
It seems I misunderstood the term fuzzy logic
myself. Fuzzy logic means
if I search for a word, for example 'programmer', it
will return matches
to the words 'program', 'programming','programmable'
etc.
I.e., it will somewhat
From: "Timothy Wilson" [EMAIL PROTECTED]
I have Evan's excellent SiteAccess product installed on my 2.3.0a1 Zope
Thank you.
Now that SiteAccess is part of the Zope core, how should I handle
the upgrade. Can I simply recompile?
It's the same Product, with only cosmetic changes. If you're
On Wed, 10 Jan 2001, Morten W. Petersen wrote:
I do not think that "fuzzy logic" is strongly related to "regexp-like".
Anyway.
Fuzzy searching often means "finding matches with characters omitted,
replaced or inserted".
It seems I misunderstood the term fuzzy logic myself. Fuzzy
I'm having problem getting xml-rpc calls to work with zope running on
apache/pcgi. I'm using the python xml-rpc module to send an xml-rpc
request that looks like this (when captured at the socket level):
POST /asdf/1/ HTTP/1.0
User-Agent: xmlrpclib.py/0.9.5
Host: localhost:
Content-Type:
Hello all,
After installing the ZPoPyDA product, restarting Zope and browsing to the
Products interface, I see:
ZPoPyDA Import Traceback
Traceback (innermost last):
File "/usr/local/Zope/lib/python/OFS/Application.py", line 397, in
import_products
product=__import__(pname, global_dict,
The PoPy module is not installed
So, it looks like I need to install PoPy. I went to
Can anyone give me a pointer?
http://freshmeat.net/search/?q=popy
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No
hi,
Is the Zope log file in Common Log File Format?
j.
..
. Jason C. Leach
... University College of the Cariboo.
..
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or
AAKK! I just noticed something...
-8-- Start Snip --8-
ZPoPyDA Import Traceback
Traceback (innermost last):
File "/usr/local/Zope/lib/python/OFS/Application.py", line 397, in
import_products
product=__import__(pname, global_dict, global_dict, silly)
File
From: Timothy Wilson
Or, if you insist that dates flow down the columns like I do, you could
use
this untested revision of Max's solution:
Oh typical spine reaction I didn't read the dates, just assumed that it was
left/right as usual.
This untested code might work then: (The no-break tag
Here is a ZClass testa, with a dtml method 'do'. Its subclass testb
overrides do. How does testb call its ancestor's 'do'? In python, it can be done as
'testa.do()', but what's the equivallent in zope?
Dirksen
__
Do You Yahoo!?
Yahoo! Photos -
I do not think that "fuzzy logic" is strongly related to "regexp-like".
Anyway.
Fuzzy searching often means "finding matches with characters omitted,
replaced or inserted".
It seems I misunderstood the term fuzzy logic myself. Fuzzy logic means
if I search for a word, for example
If you're using ZPatterns or PlugIns with Zope 2.3 from CVS, you can
update most of the ZPatterns user-interface to the new style be
replacing lib/python/Products/PlugIns/www/main.dtml with this file:
http://www.cat-box.net/steve/main.dtml
--
Steve Alexander
Software Engineer
Cat-Box
newbie alert
Hello.
I've been using zope for a couple of months, i have found zope to be a
great product and thank you for creating it. Currently i have run into a
problem, i need to access the AUTHENTICATED_USER in a
standard_error_message called by notFoundError in BaseRequest.
I was
Martijn Pieters wrote:
Erm. The ExtensionClass.stx documentation hints at a ComputedAttribute
class (but as an example of how you could use an ExtensionClass). The
current C implementation of ComputedAttribute is not, as far as I can see,
documented.
Now I think I know the answer to this
On Wed, Jan 10, 2001 at 04:13:49PM +, Chris Withers wrote:
Martijn Pieters wrote:
Erm. The ExtensionClass.stx documentation hints at a ComputedAttribute
class (but as an example of how you could use an ExtensionClass). The
current C implementation of ComputedAttribute is not, as far
Martijn Pieters wrote:
...with this class, your_attribute isn't going to play in Persistence,
is it? (so I can update it lots without worrying about ZODB size
growing... :-)
Yup, this allows you to alias your_attribute to _v_your_attribute without
creating an attribute that *will*
On Tue, 9 Jan 2001 [EMAIL PROTECTED] wrote:
Damnnation, Chris, everyone knows that it is supposed to be spelled
Python Thingy.
"I recently released 'zopectl', a Python Thingy"...
'Please go wash your hands before your shake hands with me!'
Hmm. All kidding aside, Chris is right. This
On Wed, Jan 10, 2001 at 05:07:07PM +, Chris Withers wrote:
If you want _set_your_attribute to be called, you
need to override __setattr__:
def __setattr__(self, name, value):
setter = getattr(self, '_set_' + name, None)
if setter:
setter(value)
Hi there,
I'm slightly confused by a class I have:
class X(Persistent, Acquisition.Explicit):
This class has no __roles__, no __ac_permissions__, no nothing...
Instances of this class are stored within a special folderish class, Y.
This folderish class has a __bobo_traverse__ which returns X
Oppps, just realised i've been replying only to myself :)
Umm okay here is the diff, it is from version 2.2.4 but should apply to most
versions
I have removed all the "print" debugging and cleaned up the formatting.
Could people look it over and tell me if there are any hidden problems
Forgot to attach the diff
Forgive me it's 4:52am here
Mithro
Tim Ansell wrote:
Oppps, just realised i've been replying only to myself :)
Umm okay here is the diff, it is from version 2.2.4 but should apply to most
versions
I have removed all the "print" debugging and cleaned
Shane Hathaway wrote:
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.
Just noticed you can do this also:
Zope mailing lists wrote:
Hmm. All kidding aside, Chris is right. This *is* the problem
with "python script" that was pointed out during the name discussion.
My use of "python script" is the traditional Unix/OS one: "a [shell]
script written in python".
This is continuing well beyond
1 - 100 of 114 matches
Mail list logo