Phillip J. Eby wrote:
I'm pretty sure DTML methods *won't* work. "Python Methods"
might. I don't know about external methods, python scripts, etc.
I have successfully used PythonScripts for this.
--
Steve Alexander
___
Zope-De
Hi Folks,
Does anyone have a recently compiled DynPersist.dll from ZPatterns,
compiled for Windows ?
Thanks.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope-Dev maillist - [EMAIL PROTECTED]
http
ml-with "_.getitem(_['sequence-item'])"
Hope that helps.
This really is a [EMAIL PROTECTED] question, not a [EMAIL PROTECTED]
question. Please do try to choose the appropriate list for the question.
Thanks.
--
Steve Alexander
Software Enginee
marker:
return ob
# continue your method
Of course, you only need one marker in your class. You can do that if
you implement your method as an external method, or perhaps with a
default value for an argument on you python method.
Or, you could not worry about creating a new empty list on each request.
of your application will determine whether it will
scale. Scalabillity is an emergent property of a system. You only get to
know about it when you consider the system holisticly.
With Zope, where you store objects and how you plan to find objects, is
more significant than what the objects you're st
('CHANGED end')
4: Read the debug printout, and work out that you're computing
attributes for cataloging before changing the attributes they depend on.
5: Amend code and skinscript, test, document code, sleep.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
any of this yet.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http
Steve Alexander wrote:
This assumes a method of DataSkins.DataSkin _uncache_attrs:
def _uncache_attrs(self, names):
v=self._v_attrCache
for name in names:
del v[name]
I haven't tested any of this yet.
And I realized just after I sent it that the method should be more
mages have their own specialist.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Re
-ins in the plug-in container.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists
Steve Alexander wrote:
I've put up a new main.dtml file for the PlugIns product (related to
ZPatterns), for use with Zope 2.3. This replaces the previous file
posted at the same URL.
http://www.cat-box.net/steve/main.dtml
The change makes the odd-even table row styles work
of devising your own mechanism, you can borrow someone else's:
http://www.handshake.de/~dieter/pyprojects/zope/SharedResource.html
Thanks Dieter!
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope-Dev maillist - [EMAIL
o not send html mail to this mailing list; send
it in plain text.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross po
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
might find that
cumbersome, so I guess I'll be hacking the top frame out of my
management interface :-)
I also much prefer blue to black as a background colour for the tabs and
the "Root Folder" link. The black seems a bit overbearing.
--
Steve Alexander
Software Engineer
Cat-Box limited
ht
Other the other hand, if you want to design a "normal" Zope application,
but just get the flexibility of using Attribute Providers and Skinscript
to coordinate your dataskin instances, then use Folder w/ Customizer
support.
--
Steve Alexander
Software Engineer
Cat-Box
option for searching a TextIndex is to use extensions to the
NEAR and AND and OR operators that are currently supported. I guess it
all depends what you mean by "fuzzy matching".
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.c
Toby Dickenson wrote:
On Sun, 07 Jan 2001 10:39:45 +, Steve Alexander
[EMAIL PROTECTED] wrote:
Is anyone regularly building Zope from CVS for Windows?
I want to try something out on a Zope 2.3 build on windows, but I don't
have easy access to windows development tools.
I think
L Method as keyword
arguments. So, the following will probably work.
dtml-in expr="langtest(phrase_id=phrase_id)"
dtml-var expr="_['sequence-item'].renderText"
/dtml-in
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Is anyone regularly building Zope from CVS for Windows?
I want to try something out on a Zope 2.3 build on windows, but I don't
have easy access to windows development tools.
If you can help, please get in touch.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
Steve Alexander wrote:
Zope 2.3, from cvs on 2000-12-24, patched with Chris P's latest ZCatalog
stuff.
I'm getting a bad interaction between ZClasses, ZCatalog and
__bobo_traverse__.
I have some ZClasses that are accessed via a container that implements
__bobo_traverse__
this week about the difference in using __getitem__ on Dataskins
from a Specialist and in the ZODB.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
*** Agents.py.original
--- Agents.py
***
*** 326,332
'memento_exprs': 'Keeping
. It fails with a KeyError because the ZPatterns
machinery can't save "car".
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No
is to use
CompanyCars.getItem(ORIGINAL['car_id']).commission()
in place of
OLD['car'].commission()
Oh, and I jsut noticed, I had commission and decommission the wrong way
around in the example :-)
I'd still prefer SAVING to tolerate not-found attributes, though.
--
Steve Alexander
Software Engine
to change the
DocumentTemplate modules.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding
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
lib/python/Products/PythonScripts
oes weaken my case a little :-)
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related list
various PlugIns. Typically, a PlugIn will
claim objects based on the object's meta-type.
PlugIns appear in the user-interface as separate tabs. See the
Customizers and Data Plug-ins tabs in a Folder w/ Customizer Support
instance for an example.
--
Steve Alexander
Software Engineer
Cat-Box limited
, and then converted to 2-up
pages using impose.
The pdf versions were produced using ps2pdf on the postscript files.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman
ar "this()['forename']".
However, if I get an instance of the same class from a Specialist,
dtml-var "this()['forename']" gives me
Error Type: AttributeError
Error Value: __getitem__
Any idea why there's the difference?
Can the latter case be fixed?
--
Steve Alexande
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&quo
o know why a Dataskin from a specialist is behaving
differently from one in the ZODB in this respect.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinf
?
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org
led, name is
already in the dataskin's attribute cache, so it does not get recomputed.
In the working example, when __roles__ is requested, it is in a
different skinscript statement, so it does not cause "name" to be
computed. Thus, "name" can be computed freshly after "surname"
bed this on zope-dev a couple of days ago.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Re
Steve Alexander wrote:
I believe the latest LoginManager allows you to specify what roles a
user has, and compute these each request, based on the details of the
request.
This is probably more useful than having dynamically computed
permissions; While I can see how a user's roles
the FileStorage locking protocol in CVS.
These are the ones using _commit_lock_acquire _commit_lock_release.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman
Shane Hathaway wrote:
Should be, although I just realized I don't know whether 0.0.2 was
intended for Zope 2.2 or 2.3.
There is no difference between the PartitionedFile.py files in the 2.2
and 2.3 versions, so I guess 0.0.2 will do as well for either.
--
Steve Alexander
Software Engineer
ndex_object abd reindex_object and
catalog_object is?
I think calling index_object should work, as a well-implemented catalog
will do the right thing. However, calling reindex_object makes your
intentions more explicit.
--
Steve Alexander
Software Engineer
Cat-Box
in uids.items():
new_path=_method_to_return_new_path_after_add(path)
del uids[path]
paths[rid] = new_path
uids[ppath] = rid
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope-Dev maillist
te context.
However, it is a start, and proves that it can be done.
Take a look in the __bobo_traverse__ method of Specialists.py (from
ZPatterns) for a good algorithm for traversal. The variable _marker is
almost always a class attribute initialized to [], to make a unique
object, as a sentinel.
Steve Alexander wrote:
return getattr(container.path.to.somewhere, name)
That's the simple version, and it won't give the traversed-to object the
correct context most of the time. To do that, I'd need to use an
external method, and use the __of__ method to give the returned object
roles=getattr(value, '__roles__', _noroles)
if roles is _noroles:
# We have an object without roles. Presumabely, it's
# some simple object, like a string or a list.
--
Steve Alexander
Software
declare different accessible states and actions for the
different http ports.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
Dieter Maurer wrote:
Steve Alexander writes:
On my pie-in-the-sky zope wishlist:
What I'd like is a new tab for zope objects that allows me to say which
protocols the object is accessible from, and what to do if not.
For example:
access route
Christopher Petrilli wrote:
On 12/18/00 4:24 PM, "Steve Alexander" [EMAIL PROTECTED] wrote:
Doesn't work with 2.3 from CVS, 2000-12-18 21:21 UTC
ACK, I forgot that I also revealed afew bugs in other systems :/ I thought
that I could just package up Zcatalog, but
calculated based on the
combination of the basic product and the graphic.
To the rest of the application, a ProductWithGraphic is just another
kind of product.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope-De
on October:
http://lists.zope.org/pipermail/zope-dev/2000-October/007535.html
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-de
diaKeywords as a keyword index, and that
the MediaKeywords attribute in your objects is (or returns) a sequence
type such as a tuple or a list.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://l
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman
used this attribute as a field-index in my SiteIndex ZCatalog.
The reason I mention this is that sometimes case-insensitivity is not
enough for sensible sorting. In this case, I had to strip out
punctuation too.
--
Steve Alexander
Software Engineer
Cat-Box limited
ht
the __call__ error.
With the new cDocumentTemplate.so, it works as expected.
So in summary, it works for me.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman
"copyright", "credits" or "license" for more information.
a=''
a.foo='bar'
Traceback (most recent call last):
File "stdin", line 1, in ?
TypeError: object has read-only attributes
--
Steve Alexander
Software Enginee
appear for this in the next release of
DataSkinAddons. Until then, use SkinScript if you want to abort
the transaction if there is a problem cataloguing or uncataloguing.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
alPath()
for p in range(2, len(pp)+1):
keywords=keywords+[join(map(fix_bad_chars, pp[1:p]), '_')]
return keywords
def kw_path(self):
return join(map(fix_bad_chars, self.getPhysicalPath()[1:]), '_')
def fix_bad_chars(s):
return replace(s, ' ', 'x')
--
Steve Alexa
simple fix is "mkdir help" from the PlugIns directory.
--
Steve Alexander
Software Enigneer
Cat-Box limited
http://www.cat-box.net
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross po
ient
problems whilst preventing Xron from choking resources.
--
Steve Alexander
Software Enigneer
Cat-Box limited
http://www.cat-box.net
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML en
pe.org/pipermail/zope-dev/2000-August/006548.html
http://lists.zope.org/pipermail/zope-dev/2000-August/006549.html
http://lists.zope.org/pipermail/zope-dev/2000-August/006550.html
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
__
e to see a scheduler as a standard part of Zope.
I think it would be good to have scheduled methods called from within
Zope, rather then going through http. I don't know enough about how
ZPublisher/ZODB works to know where to start this though.
--
Steve Alexander
Software Engineer
Cat-Box limited
ht
uite the same thing!
For cases like that, I have downloaded the plaintext mail archives as
available from http://www.zope.org/Resources/MailingLists
I then use unix grep on them to search for just what I need.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
_
t;"")
my_dt(None, {'a':4})
'5'
The object my_dt is callable, and takes the arguments (client,
namespace). You can put a REQUEST in place of the simple dictionary I
used above.
If you're trying this, make sure you have the PYTHONPATH environment
variable set to /your/zope/directory/lib/python
the next release of ZPatterns comes out.
Thanks.
At 03:45 PM 10/4/00 +0100, Steve Alexander wrote:
I just found out that you can access all sorts of useful methods in
SkinScript from the magical "_" namespace variable.
Let's say I have a DataSkin that has a propertysheet "jo
The assignment you see is just a short-hand way of saying that commit,
tpc_abort and tpc_begin have the same method signature and the same
implementation
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope-Dev maillist
/BODY/HTML
I think using siteaccess for this is more elegant, though. All the
knowledge about what is allowed and what is not is maintained in one
place, and the knowledge can be declared flexibly using regular expressions.
--
Steve Alexander
Software Engineer
Cat-Box limited
ht
reason that local roles don't make sense within
products, and so I have to copy my prototype folder to elsewhere in the
ZODB, and then set the local roles?
--
Steve Alexander
Software Enigineer
Cat-Box limited
http://www.cat-box.net
___
Zope-Dev maill
Steve Alexander wrote:
I want to define the local roles on the "prototype" folder that is
inside my Product. However, when I go to
Control_Panel/Products/MyProduct/prototype/manage_access, I get the "map
permissions to permissions" screen, rather than the "
for this. It will be more
efficient that iterating through user_ids using "for i in user_ids:"
return map(None, self.UserSource.getPersistentItemIDs())
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope-Dev maillist - [EMAIL
'1' for true
and '0' for false.
Could someone please give me some example code or hints?
It would really help to see some of the code you're already using. Can
you also say a bit about what you are trying to do overall?
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat
the ZPatterns product
installed, obviously. I can see this becoming even more useful when
ZClasses work with PlugIns. This may be a while off, though.
I'm still in favour of splitting ZPatterns into separate DataSkins and
PlugIns packages in the next feature release.
--
Steve Alexander
Software
elect from the management interface.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Rel
ying to make sense of External Attribute Provider so that I can
write a BTreeAttributeProvider for DataSkinAddons, as discussed on the
zope-dev list at the end of August, subject "BTreeFolder /w Customizer
support".
Any pointers appreciated.
--
Steve Alexander
Softwa
ata-PlugIns tab,
with something like this:
WITH self.propertysheets.get('cd_info') COMPUTE
artist=getProperty('artist'),
label=getProperty('label')
You can then write your ZClass index_html and use dtml-var artist or
dtml-artist; where you want the artist, and similarly with label.
--
Steve Alexander
Softwa
('__init__')(self, id)
This is assuming that you have the argument "id" in your __init__ method.
I've no idea whether it will solve your problem, as I haven't tried to
reproduce it.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.c
and
subtransactions are supposed to work?
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists
is release?
Or are there still folks out there using ZPatterns with 2.1.6?
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No c
standard acquisition, but the object that is returned from an
acquisition search is chosen context first.
Without further optimisation, this means a containment security check
for each element of the context. Which kind of suggests worse than
linear performance as the context path grows.
--
Steve
Steve Alexander wrote:
I have a customizer folder with various data-plugins and customizers.
snipped
File lib/python/Products/ZPatterns/Providers.py, line 178, in
namesForRegistration
(Object: PlugInBase)
TypeError: (see above)
I'll start to look into this.
Any advice would
, in
namesForRegistration
(Object: PlugInBase)
TypeError: (see above)
I'll start to look into this.
Any advice would be most welcome.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope-Dev maillist - [EMAIL PROTECTED]
http
Evan Simpson wrote:
From: "Steve Alexander" [EMAIL PROTECTED]
obj = self.restrictedTraverse(REQUEST.PATH_TRANSLATED)
This stopped working when I tried the software on Windows.
Bug or feature?
I'm not sure, but I'm *very* curious what you're trying to accomplish with
ZCatalog.
Then, I'd use ZCatalog queries to get average response times for various
periods of time.
I can't see a use for SkinScript in there, though :-)
ps. I am working on a skin script howto. Expect to see something after I
return from a conference on Monday.
--
Steve Alexander
Software Engineer
in an external method:
obj = self.restrictedTraverse(REQUEST.PATH_TRANSLATED)
This stopped working when I tried the software on Windows.
Bug or feature?
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope-Dev maillist - [EMAIL
While updating a load of DataSkins all together using a ZCatalog, I got
this error:
2000-09-03T08:03:13 PANIC(300) ZODB A storage error occurred in the last
phase of a two-phase commit. This shouldn't happen. The application may
be in a hosed state, so transactions will not be allowed to
the
top-level transaction that it knows about.
Then again, I'm new to the way ZODB handles transactions, so I might
well be wrong here.
More later...
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope-Dev maillist
anything more at present.
I did note in ZODB/Transaction.py this comment. Perhaps it is relevant?
# - For every jar for which we've called tpc_begin on,
# we either call tpc_abort or tpc_finish. It is OK
# to call these multiple times, as the storage is
# required to ignore th
uest_name,
'string')"
dtml-call "nips.manage_changeProperties(REQUEST)"
/dtml-let
form action=index_html
input type=submit value="OK"
/form
/center
You can use ZPatterns from DTML alone quite easily. How
tring')"
dtml-call "nips.manage_changeProperties(REQUEST)"
And, of course, another dtml-let closing tag here.
/dtml-let
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope-Dev maillist -
er changes timezone or you enter daylight savings time. This is
more of an issue near to the GMT zone.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/lis
Steve Alexander wrote:
Phillip J. Eby wrote:
Now, I can provide *unfiltered* linkage by direct delegation, but this
would mean dropping the ability to selectively take only certain
attributes
or sheets from the parent. But I suppose that, compared to dropping the
capability
this out by today, but then I discovered
SkinScript, and also real work got in the way :-)
I'll try and get it finished this weekend. Perhaps some of that can be
reused as help in the management screens.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
_
, in
_indexedSearch
TypeError: (see above)
This seems to be a simple type incompatibility error.
Attached is a patch that fixes this.
In Collector, http://classic.zope.org:8080/Collector/1586/view
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
*** Catalog.py.orig
ror occurs because the rename method redirects to:
http://puffin.cat-box.net:7080/test/Customizers_
Pressing the "customizers" tab yields the url:
http://puffin.cat-box.net:7080/test/Customizers_/Customizers_/manage_workspace
--
Steve Alexander
Software Engineer
Cat-Box limited
ht
erride methods inherited from python classes
because\n"
" unbound methods gotten from Python classes cannot be called with
\n"
" extension class instances. \n"
Is there some documentation of this on zope.org or dev.zope.org that
I've missed?
Thanks.
--
Steve Ale
for objects in the BTreeFolder.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related
"Phillip J. Eby" wrote:
At 10:22 AM 8/27/00 +0100, Steve Alexander wrote:
I've fixed this by adding a test to the start of __set_attr__ of
DataSkins.py:
def __set_attr__(self,name,val,_v_dm_=_v_dm_):
+ if name=='id' and val==self.__dict__['id']:
+
at all!
I think what I meant was this:
try:
dm = self.__dict__[_v_dm_]
except KeyError:
if name=='id':
if self.__dict__.has_key('id') and val==self.__dict__.['id']:
return
else:
self.__dict__['id']=val
return
raise
--
Steve
Steve Alexander wrote:
What rubbish! I didn't mean that at all!
I think what I meant was this:
try:
dm = self.__dict__[_v_dm_]
except KeyError:
if name=='id':
if self.__dict__.has_key('id') and val==self.__dict__.['id']:
return
else
a few
minutes ago.
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http
ccessfully '
'attempted to uncatalog an object '
'with a uid of %s. ' % str(uid)))
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope-Dev maillist - [EMAIL PROTE
should be changed to this:
def __url(self):
return '/'+string.join(self.getPhysicalPath(), '/')
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman
HEN OBJECT ADDED, CHANGED CALL Catalog.recatalog_object(self,
self.getPathAsString())
WHEN OBJECT DELETED CALL
Catalog.uncatalog_object(self.getPathAsString())
Any comments?
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
___
Zope-Dev maill
201 - 300 of 381 matches
Mail list logo