Re: [Zope-dev] Specialists and __bobo_traverse__

2001-01-17 Thread Steve Alexander
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

[Zope-dev] recent DynPersist.dll for windows

2001-01-17 Thread Steve Alexander
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

Re: [Zope-dev] manage_changeProperties in a loop

2001-01-16 Thread Steve Alexander
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

Re: [Zope-dev] Specialists and __bobo_traverse__

2001-01-15 Thread Steve Alexander
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.

Re: [Zope-dev] Massive scalability

2001-01-14 Thread Steve Alexander
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

[Zope-dev] Tip: Skinscript Debugging

2001-01-14 Thread Steve Alexander
('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

[Zope-dev] SkinScript enhancement

2001-01-14 Thread Steve Alexander
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

[Zope-dev] Re: SkinScript enhancement

2001-01-14 Thread Steve Alexander
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

Re: [Zope-dev] ZPatterns implementation question: images attributes?

2001-01-13 Thread Steve Alexander
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

[Zope-dev] updated main.dtml for PlugIns product for Zope 2.3

2001-01-12 Thread Steve Alexander
-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

Re: [Zope-dev] updated main.dtml for PlugIns product for Zope 2.3

2001-01-12 Thread Steve Alexander
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

Re: [Zope-dev] Re: ComputedAttribute

2001-01-11 Thread Steve Alexander
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

Re: [Zope-dev] Zope-2.3a2 and Loginmanager

2001-01-11 Thread Steve Alexander
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

[Zope-dev] patch to bring ZPatterns UI in line with 2.3 from CVS

2001-01-10 Thread Steve Alexander
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

[Zope-dev] New UI for 2.3

2001-01-10 Thread Steve Alexander
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

Re: [Zope-dev] When to use Rack , Folders w/Customize, etc.

2001-01-09 Thread Steve Alexander
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

Re: [Zope-dev] ZCatalog and 'fuzzy logic'

2001-01-09 Thread Steve Alexander
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

Re: [Zope-dev] Zope from CVS for Windows

2001-01-08 Thread Steve Alexander
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

Re: [Zope-dev] Easy SQL question

2001-01-08 Thread Steve Alexander
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 ___

[Zope-dev] Zope from CVS for Windows

2001-01-07 Thread Steve Alexander
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

Re: [Zope-dev] __bobo_traverse__, new ZCatalog and ZClasses

2001-01-07 Thread Steve Alexander
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__

[Zope-dev] ZPatterns: patch for OLD['name'] for Zope 2.3

2001-01-06 Thread Steve Alexander
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

[Zope-dev] ZPatterns: SAVING doesn't tolerate missing attributes

2001-01-06 Thread Steve Alexander
. 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

Re: [Zope-dev] ZPatterns: SAVING doesn't tolerate missing attributes

2001-01-06 Thread Steve Alexander
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

[Zope-dev] RFE: Make PythonScripts.standard available from DTML _.standard

2001-01-05 Thread Steve Alexander
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

Re: [Zope-dev] RFE: Make PythonScripts.standard available from DTML _.standard

2001-01-05 Thread Steve Alexander
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

Re: [Zope-dev] RFE: Make PythonScripts.standard available from DTML _.standard

2001-01-05 Thread Steve Alexander
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

Re: [Zope-dev] BTree Folders

2001-01-05 Thread Steve Alexander
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

[Zope-dev] SkinScript reference in two-up postscript

2001-01-05 Thread Steve Alexander
, 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

[Zope-dev] ZPatterns: __getitem__ on a DataSkin instance

2001-01-05 Thread Steve Alexander
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

[Zope-dev] Re: ZPatterns: __getitem__ on a DataSkin instance

2001-01-05 Thread Steve Alexander
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

Re: [Zope-dev] Re: ZPatterns: __getitem__ on a DataSkin instance

2001-01-05 Thread Steve Alexander
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

[Zope-dev] ZPatterns: catching exceptions raised by triggers

2001-01-05 Thread Steve Alexander
? -- 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

[Zope-dev] ZPatterns; possible bug?

2001-01-04 Thread Steve Alexander
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"

[Zope-dev] Re: Objects with multiple parents and storage flexibility, ZPatterns?

2001-01-03 Thread Steve Alexander
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

Re: [Zope-dev] dynamic permissions in zope

2001-01-02 Thread Steve Alexander
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

Re: [Zope-dev] ANNOUNCE: PartitionedFileStorage

2001-01-02 Thread Steve Alexander
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

Re: [Zope-dev] PartitionedFileStorage - Eek!

2001-01-02 Thread Steve Alexander
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

Re: [Zope-dev] ZCatalog reindex_object

2000-12-31 Thread Steve Alexander
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

Re: [Zope-dev] Updating a ZCatalog when objects in it change their path

2000-12-30 Thread Steve Alexander
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

Re: [Zope-dev] ZPatterns question

2000-12-28 Thread Steve Alexander
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.

Re: [Zope-dev] ZPatterns question

2000-12-28 Thread Steve Alexander
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

[Zope-dev] __bobo_traverse__, new ZCatalog and ZClasses

2000-12-24 Thread Steve Alexander
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

Re: [Zope-dev] RE: objectIds accessiblilty and a proposal

2000-12-18 Thread Steve Alexander
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

Re: [Zope-dev] RE: objectIds accessiblilty and a proposal

2000-12-18 Thread Steve Alexander
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

Re: [Zope-dev] IMPORTANT! Zcatalog path handling changes in 2.3

2000-12-18 Thread Steve Alexander
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

Re: [Zope-dev] ZPatterns, ZClasses, Specialists: Assigning responsibilities

2000-12-15 Thread Steve Alexander
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

Re: [Zope-dev] more on keyword indexes

2000-12-15 Thread Steve Alexander
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

Re: [Zope-dev] keyword indexes

2000-12-15 Thread Steve Alexander
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

[Zope-dev] Python 2 (Zope Unicode) support for 2.2.4

2000-12-12 Thread Steve Alexander
-- 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

Re: [Zope-dev] case insensitive sorts

2000-12-06 Thread Steve Alexander
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

Re: [Zope-dev] FIX for the infamous __call__ bug - testers needed!

2000-11-13 Thread Steve Alexander
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

Re: [Zope-dev] RFClarification: Security on Product Attributes

2000-11-10 Thread Steve Alexander
"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

[Zope-dev] DataSkinAddons 0-0-2 released

2000-10-24 Thread Steve Alexander
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

Re: [Zope-dev] Getting all objects matching a given meta_type and more

2000-10-24 Thread Steve Alexander
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

[Zope-dev] ZPatterns bug: no help subdirectory in PlugIns

2000-10-19 Thread Steve Alexander
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

[Zope-dev] Xron fragility

2000-10-11 Thread Steve Alexander
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

Re: [Zope-dev] Xron fragility

2000-10-11 Thread Steve Alexander
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 __

Re: [Zope-dev] Xron fragility

2000-10-11 Thread Steve Alexander
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

Re: [Zope-dev] Help, please!!! __call__ problems with DTML templates

2000-10-10 Thread Steve Alexander
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 _

Re: [Zope-dev] Help, please!!! __call__ problems with DTML templates

2000-10-10 Thread Steve Alexander
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

Re: [Zope-dev] ZPatterns: SkinScript discovery

2000-10-04 Thread Steve Alexander
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

Re: [Zope-dev] two-phase-commit question

2000-09-30 Thread Steve Alexander
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

[Zope-dev] Re: [Zope] Restricting URL access to objects that are not complete web pages

2000-09-21 Thread Steve Alexander
/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

[Zope-dev] adding local roles to folders within a Product

2000-09-21 Thread Steve Alexander
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

[Zope-dev] Re: adding local roles to folders within a Product

2000-09-21 Thread Steve Alexander
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 "

Re: [Zope-dev] Returning a list of names from a Python Method

2000-09-19 Thread Steve Alexander
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

Re: [Zope-dev] Using PropertySheets

2000-09-19 Thread Steve Alexander
'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

Re: [Zope-dev] Can ZPatterns Plugins be used separately?

2000-09-18 Thread Steve Alexander
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

Re: [Zope-dev] Membership and Local Roles

2000-09-18 Thread Steve Alexander
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

[Zope-dev] ZPatterns bug: infinite recursion with External Attribute Provider

2000-09-17 Thread Steve Alexander
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

Re: [Zope-dev] ZPatterns based CD example. Halfway there! Need help

2000-09-16 Thread Steve Alexander
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

Re: [Zope-dev] Advice on DTMLDocument

2000-09-15 Thread Steve Alexander
('__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

[Zope-dev] ZPatterns bug: typo in Transactions.py

2000-09-14 Thread Steve Alexander
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

[Zope-dev] Re: ZPatterns (sub-)transaction problems

2000-09-14 Thread Steve Alexander
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

Re: [Zope-dev] Context Acquisition - Security Hole?

2000-09-14 Thread Steve Alexander
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

[Zope-dev] Re: ZPatterns: Error: User error! :-/

2000-09-11 Thread Steve Alexander
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

[Zope-dev] ZPatterns: Error reimporting .zexp containing Folder w/ CustomizerSupportSupport

2000-09-11 Thread Steve Alexander
, 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

Re: [Zope-dev] PATH_TRANSLATED delimted with backslash ?

2000-09-10 Thread Steve Alexander
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

Re: [Zope-dev] SkinScript, and family

2000-09-09 Thread Steve Alexander
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

[Zope-dev] PATH_TRANSLATED delimted with backslash ?

2000-09-09 Thread Steve Alexander
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

[Zope-dev] ZPatterns: transaction bug

2000-09-03 Thread Steve Alexander
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

[Zope-dev] ZPatterns: transaction bug

2000-09-03 Thread Steve Alexander
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

[Zope-dev] ZPatterns transactions bug

2000-09-03 Thread Steve Alexander
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

Re: [Zope-dev] ZPattens Question? Guestbook example

2000-09-03 Thread Steve Alexander
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

Re: [Zope-dev] ZPattens Question? Guestbook example

2000-09-03 Thread Steve Alexander
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 -

Re: [Zope-dev] Converters.field2date, allow empty string to return None?

2000-09-02 Thread Steve Alexander
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

Re: [Zope-dev] Compatibility issues: ZPatterns 0.4.2

2000-09-01 Thread Steve Alexander
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

Re: [Zope-dev] Compatibility issues: ZPatterns 0.4.2

2000-09-01 Thread Steve Alexander
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 _

[Zope-dev] ZCatalog: text searches fail with sort_on + patch

2000-09-01 Thread Steve Alexander
, 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

[Zope-dev] ZPatterns bug: Customizers don't rename well

2000-08-29 Thread Steve Alexander
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

[Zope-dev] inheritedAttribute

2000-08-28 Thread Steve Alexander
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

Re: [Zope-dev] New version of BTreeFolder. Just a Newbie Question

2000-08-28 Thread Steve Alexander
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

Re: [Zope-dev] ZPatterns bug with patch

2000-08-28 Thread Steve Alexander
"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']: +

Re: [Zope-dev] ZPatterns bug with patch

2000-08-28 Thread Steve Alexander
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

Re: [Zope-dev] ZPatterns bug with patch

2000-08-28 Thread Steve Alexander
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

[Zope-dev] ZPatterns transaction bug

2000-08-27 Thread Steve Alexander
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

[Zope-dev] Bug in error logging in Catalog

2000-08-27 Thread Steve Alexander
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

Re: [Zope-dev] bug in CatalogAwareness?

2000-08-27 Thread Steve Alexander
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

[Zope-dev] New method for ZCatalog: recatalog_object

2000-08-27 Thread Steve Alexander
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

<    1   2   3   4   >