[Zope-dev] ZCatalog problem: sort_on bug

2001-09-24 Thread Steve Alexander
this before, please speak up! -- Steve Alexander Software Engineer Cat-Box limited ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http

Re: [Zope-dev] ZCatalog problem: sort_on bug

2001-09-24 Thread Steve Alexander
Steve Alexander wrote: I'm getting a strange problem with ZCatalog, using python 2.1, Zope from CVS. I get all the results I expect with this: ul dtml-in Catalog(process_step=['start','mailed']) li dtml-subject_name; -- dtml-relationship_name; - dtml-rater_name; /dtml-in /ul

Re: [Zope-dev] ZCatalog problem: sort_on bug

2001-09-24 Thread Steve Alexander
Steve Alexander wrote: This gives partial results: dtml-in Catalog(process_step=['start','mailed'], sort_on='subject_name') ...because this returns a LazyCat instance, for which len() is broken. This gives full results: dtml-in Catalog(process_step=['start','mailed'], sort_on

Re: [Zope-dev] ZCatalog problem: PATCH

2001-09-24 Thread Steve Alexander
Steve Alexander wrote: Patch coming up soon... Patch against Catalog.py, from CVS: *** lib/python/Products/ZCatalog/Catalog.py.original --- lib/python/Products/ZCatalog/Catalog.py.patched *** *** 673,679 if (type(so) is type

[Zope-dev] ZCatalog bug

2001-09-18 Thread Steve Alexander
# Convert scores to use wids: widScores=IIBucket() ! try: ! getWid=lexicon.getWordId ! except AttributeError: ! getWid=lexicon.lexicon.getWordId for word, score in wordScores.items(): widScores[getWid(word)]=score -- Steve

Re: [Zope-dev] Unauthorized error with this code

2001-09-17 Thread Steve Alexander
if you do so. -- Steve Alexander Software Engineer Cat-Box limited ___ 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/listinfo

Re: [Zope-dev] Re: Collector down - status and potential help request

2001-09-11 Thread Steve Alexander
that anyone helping out uses the same ordering / field-names. -- Steve Alexander Software Engineer Cat-Box limited ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding

Re: [Zope-dev] Traversal Barf

2001-07-11 Thread Steve Alexander
absolute_url() is being called when absolute_url(1) should be used. -- Steve Alexander ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http

Re: [Zope-dev] Re: [ZPatterns] HowTo: Make an Image/File a DataSkin ???

2001-07-11 Thread Steve Alexander
Steve Spicklemire wrote: Hi Ulrich, Hmm.. can you just call DataSkin.__init__(self, id) in the File's constructor? You might need to do it like this: DataSkin.inheritedAttribute('__init__')(self, id) -- Steve Alexander ___ Zope

Re: [Zope-dev] Cookie with dictionary as content

2001-06-09 Thread Steve Alexander
/python/TreeDisplay/TreeTag.py, around line 578, in the methods encode_seq and decode_seq. -- Steve Alexander Software Engineer Cat-Box limited ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts

Re: [Zope-dev] Xron on linux: Dispatcher thread stops after a while

2001-05-28 Thread Steve Alexander
nobody. If you do this, you'll be able to run zope as the root user, and Zope + Xron will work running on port 80. -- Steve Alexander Software Engineer Cat-Box limited ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman

Re: [Zope-dev] getPersistentItemIDs not cooperating?

2001-05-23 Thread Steve Alexander
should update Rack to use the new BTrees module. -- Steve Alexander Software Engineer Cat-Box limited ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists

Re: [Zope-dev] getPersistentItemIDs not cooperating?

2001-05-23 Thread Steve Alexander
! Right... another one of those it returns a mutable internal object problems. In that case, is there a security problem with what getPersistentItemIDs returns being accessible to TTW scripting? I'm changing the OS on my development machine, so I can't easily check this out right now. -- Steve

Re: [Zope-dev] Splitter.c hack by Spisak; anyone have a Splitter.so?

2001-04-25 Thread Steve Alexander
?_pcgi.py to compile. -- Steve Alexander Software Engineer Cat-Box limited ___ 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

Re: [Zope-dev] ZPatterns AttributeProvider question

2001-04-22 Thread Steve Alexander
ce to look for where the problem is. -- Steve Alexander Software Engineer Cat-Box limited ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://list

Re: [Zope-dev] ZPatterns AttributeProvider question

2001-04-22 Thread Steve Alexander
Phillip J. Eby wrote: Steve Alexander wrote: As a simpler workaround, you can use your_object.commitSubtransaction() instead of redirecting to a new page. Um, this shouldn't be the issue here. _SetAttributeFor() should be called when the attribute is set; it's not transaction-driven

Re: [Zope-dev] [] vs () in dtml-in: is this a bug ?

2001-04-22 Thread Steve Alexander
is a two-tuple, and puts the elements of the tuple in sequence-key and sequence-item. If you look throughthe zope-dev list archives, you'll find a number of arguments on each side as to whether this is a bug or a feature. -- Steve Alexander Software Engineer Cat-Box limited

Re: [Zope-dev] ZPatterns AttributeProvider question

2001-04-21 Thread Steve Alexander
ver called. Have you defined a namesForRegistration method in your provider? See Components.py for an example: lib/python/Products/ZPatterns/SkinScript/Components.py -- Steve Alexander Software Engineer Cat-Box limited ___ Zope-Dev maillist - [EMAIL PR

Re: [Zope-dev] Virtual dataskinned ZClass instance

2001-04-18 Thread Steve Alexander
Godefroid Chapelle wrote: When using context.getId(), I get the id of the specialist, not of the HumanClass instance... use container.getId() Also, try setting a proxy role on the SkinScript. -- Steve Alexander ___ Zope-Dev maillist

Re: [Zope-dev] Dataskin with no persistence.

2001-04-12 Thread Steve Alexander
Specialist. In this case, the other specialist is "Responses". WITH Responses.get_data_for_code(code=self.id) COMPUTE subject_name, rater_name, relationship_name, response_code, process_step -- Steve Alexander Software Engineer Cat-Box limited

Re: [Zope-dev] SkinScript Questions

2001-04-02 Thread Steve Alexander
kinScript executes. You do need to split your SkinScript up according to what proxy roles they need. There's another related issue of what attributes to compute in a single SkinScript statement, but that's pretty much covered in the documentation. I looked into this quite deeply when I fou

[Zope-dev] iso_week for Zope's DateTime

2001-03-18 Thread Steve Alexander
is_last_leap=y%4==0 and (y%100!=0 or y%400==0) if day_year_begins==4 or (day_year_begins==5 and is_last_leap): week=53 else: week=52 return y,week,dow+1 -- Steve Alexander Software Engineer Cat-Box limited

Re: [Zope-dev] Designing ZPatterns/Python-product-based, reusable applications - take 2

2001-03-17 Thread Steve Alexander
to handle certain kinds of behaviour. UML is very good for talking about classes and the relationships that can exist between objects of particular classes. Often, I tend to think in Coad, but write in UML. -- Steve Alexander Software Engineer Cat-Box limited

Re: [Zope-dev] manage_main select ... / don't work with Mozilla

2001-03-15 Thread Steve Alexander
, line 43 needs the spurious slash removing. It's always worth looking in the Collector for this sort of thing. http://classic.zope.org:8080/Collector/2020/view Submitted On: Mar 4, 2001 5:01 am -- Steve Alexander Software Engineer Cat-Box limited

[Zope-dev] PythonScript for iso_week

2001-03-14 Thread Steve Alexander
and (y%100!=0 or y%400==0) if day_year_begins==4 or (day_year_begins==5 and is_last_leap): week=53 else: week=52 return y,week,dow+1 -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope

[Zope-dev] ZPatterns: External Attribute Provider question

2001-03-11 Thread Steve Alexander
together. The second half of the slot-key's tuple would be configurable as a property on the attribute provider. -- Steve Alexander Software Engineer Cat-Box limited ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope

Re: [Zope-dev] SAP DB -- ZODB ?

2001-03-10 Thread Steve Alexander
ender wrote: On Friday 09 March 2001 07:20, Steve Alexander wrote: I just heard that the SAP DB has gone Free and Open Source. sapdb isn't open source yet. it will be in a few months. It is GPL-ed now, and you can download it now. http://freshmeat.net/projects/sapdb/ -- Steve

[Zope-dev] SAP DB -- ZODB ?

2001-03-09 Thread Steve Alexander
for the database kernel and the GNU Lesser General Public License for clients and programming interfaces. http://freshmeat.net/projects/sapdb/ I'd never heard of SAP DB before, although I've heard of SAP. This looks as if it would be good for a ZODB storage. -- Steve Alexander Software Engineer Cat

Re: [Zope-dev] is there a hook for before the transaction is committed

2001-03-05 Thread Steve Alexander
John D. Heintz wrote: Hi Tim, I have two suggestions, I hope one of them helps. 1) Attached is a TM.py file that I wrote based on the one you mention below. I've tried to make it more obvious and better documented. 2) Don't use this kind of functionality, but rather use

Re: [Zope-dev] Class attr hotfix

2001-03-05 Thread Steve Alexander
intention was to just store a property value or three. You could use webdav propertysheets attached to the ZClass object for this. -- Steve Alexander Software Engineer Cat-Box limited ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org

[Zope-dev] PlugIns: updated dtml files for ZPatterns+PlugIns

2001-03-04 Thread Steve Alexander
with recent Mozilla builds. The same problem affects Zope 2.3 from public CVS. See Collector report 2020: http://classic.zope.org:8080/Collector/2020/view -- Steve Alexander Software Engineer Cat-Box limited ___ Zope-Dev maillist - [EMAIL PROTECTED

Re: [Zope-dev] ZPatterns, DynPersist.dll and Zope 2.3.0

2001-03-04 Thread Steve Alexander
bably take a bit longer. I haven't tried it, so I don't have a quick hack. Basically, take a look at DynPersist.c, and roll the same functions for __get_attr__, __set_attr__ and __del_attr__ into the DataSkin class from DataSkins.py. -- Steve Alexander Software Engineer Cat-B

Re: [Zope-dev] Could not load state?

2001-02-28 Thread Steve Alexander
on your persistent object. -- Steve Alexander Software Engineer Cat-Box limited ___ 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

Re: [Zope-dev] How to build indexes in the MemberCatalog of Membership Component?

2001-02-27 Thread Steve Alexander
(),'/')) -- Steve Alexander Software Engineer Cat-Box limited ___ 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/listinfo/zope

Re: [Zope-dev] Zope 2.3.1b1, strange things when ConflictError.

2001-02-26 Thread Steve Alexander
ation of the dangers of using mutable objects carelessly :-) -- 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

Re: [Zope-dev] Zope 2.3.1b1, strange things when ConflictError.

2001-02-26 Thread Steve Alexander
get faster code into the bargain: rewrite methodB so that it is not recursive. -- 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] Zope 2.3.1b1, strange things when ConflictError.

2001-02-26 Thread Steve Alexander
Erik Enge wrote: On Mon, 26 Feb 2001, Steve Alexander wrote: Chris McDonough wrote: The use of a literal anonymous list in methodb's signature for "objects" may have something to do with the results you're getting on conflict. Try assigning "objects" to an empt

Re: [Zope-dev] ZCatalog problems

2001-02-26 Thread Steve Alexander
, Catalog.uniqueValuesFor('boolean_index')) -- Steve Alexander Software Engineer Cat-Box limited ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists

Re: [Zope-dev] catalog object owners?

2001-02-26 Thread Steve Alexander
2.1 installs around to check with. -- Steve Alexander Software Engineer Cat-Box limited ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http

Re: [Zope-dev] Zope 2.3.1b1, strange things when ConflictError.

2001-02-25 Thread Steve Alexander
ing else, as methodB is recursive, you should either make it non-recursive, or access it via a methodC: def methodC(self, object): return self.methodB(object)[:] -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev

Re: [Zope-dev] Zope 2.3.1b1, strange things when ConflictError.

2001-02-25 Thread Steve Alexander
except AttributeError: return objects -- Steve Alexander Software Engineer Cat-Box limited ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related list

Re: [Zope-dev] Minor typos/changes to ZCatalog.

2001-02-24 Thread Steve Alexander
remove anythink? Correct? Yes. But it's not just characters. A field index indexes an object, and uses the overloaded comparison operators for that object to put it in an appropriate place. So, you can index DateTime objects, tuples, strings, numbers, floats... -- Steve Alexander Software

Re: [Zope-dev] Storing lots of big objects in containers

2001-02-24 Thread Steve Alexander
: MyClass.inheritedAttribute('__init__')(self) Where MyClass is the name of your class. -- Steve Alexander Software Engineer Cat-Box limited ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML

[Zope-dev] ZPatterns feature patch: kickTriggers

2001-02-23 Thread Steve Alexander
e suggestions on a better name for the method than "kickTriggers". :-) -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope

Re: [Zope-dev] Python Script

2001-02-23 Thread Steve Alexander
to an instance of that class. -- 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

Re: [Zope-dev] Python Script

2001-02-23 Thread Steve Alexander
on a ZClass instance involves getting the attribute that represents that method, then calling it. Get the object that represents the method, and do what you want with it. Can you give me a concrete example? -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net

Re: [Zope-dev] Python Script

2001-02-23 Thread Steve Alexander
you choose the PythonScript). I advise against using an external method for this, as (if you're not careful) it may return unwrapped objects, which is a security hazard. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net

Re: [Zope-dev] Setting vars in expression eval() namespace

2001-02-22 Thread Steve Alexander
ample, but how about: dtml-var "foo(a=1, block=('some text %s' % (1+2)))" -- 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 ** N

Re: [Zope-dev] Setting vars in expression eval() namespace

2001-02-22 Thread Steve Alexander
the Products.PythonScripts.standard module. You can use this to render DTML on the fly, as you wish. -- 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] initializing objects in ZPatterns

2001-02-22 Thread Steve Alexander
of doing that are, though. If you're interested, the code is in lib/python/Products/ZPatterns/SkinScript/Components.py about line 71. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist - [EMAIL

Re: [Zope-dev] ZCatalog stuff

2001-02-22 Thread Steve Alexander
Chris Withers wrote: Tres Seaver wrote: Chris, this necrohippophilic sadism has to stop! Erm? I think my education is lacking... what does that mean? :-S necrohippo philic sadism dead-horse-loving act of deliberate harm upon -- Steve Alexander Software Engineer Cat-Box limited http

Re: [Zope-dev] initializing objects in ZPatterns

2001-02-22 Thread Steve Alexander
Christian Scholz wrote: I've now tried WHEN OBJECT ADDED CALL self.propertysheets.data.manage_changeProperties(company_address=self.company_address) which gives me some Unauthorized error on the method call. Give your skinscript an appropriate proxy role. -- Steve Alexander

Re: [Zope-dev] Re: ThreadSafeCounter

2001-02-21 Thread Steve Alexander
is to use a mounted storage that doesn't do undo, and stores changes in place. -- 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] DTML Documents/Folders in ZClasses fail to access anything

2001-02-21 Thread Steve Alexander
Itai Tavor wrote: Hi, I got a ZClass 'Test', with a DTML Method 'view' containing dtml-var id, and a DTML Document 'view2' with the same line. instance/view works. instance/view2 returns (ZDebug output): From SimpleItem.py: """Direct use of the 'id' attribute is deprecated - use

Re: [Zope-dev] Python Product as DataSkin

2001-02-20 Thread Steve Alexander
rClassName) at the end. At the end on the file, or the end of the class definition? After the class definition, so, qiute probably at the end of the file. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-De

Re: [Zope-dev] ZPatterns goes crazy after ZClass change

2001-02-20 Thread Steve Alexander
Class. This "Class Id" is how Zope works out what ZClass to use when it comes across a ZClass instance. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.or

Re: [Zope-dev] Zope 2.3.1b1 bug? (:tokens)

2001-02-20 Thread Steve Alexander
ot;t:tokens" value="dtml-var "_.string.join(t, ' ')"" /dtml-let /form /body /html It all works as I expect; no problems. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist - [E

Re: [Zope-dev] Unindex_Object, bug (Again)

2001-02-20 Thread Steve Alexander
eady fixed in 2.3 from public CVS. -- 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

Re: [Zope-dev] Python Product as DataSkin

2001-02-19 Thread Steve Alexander
that default__class_init__ does. Otherwise, you'll need to make sure you call DataSkin.__init__ from your __init__ method, probably using Acquisition.inheritedAttribute.) -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net

Re: [Zope-dev] Python Product as DataSkin

2001-02-19 Thread Steve Alexander
Michael R. Bernstein wrote: Steve Alexander wrote: Is the __init__ method of DataSkin getting called? This would happen if, for example, you define an __init__ method in your class, but you don't use something like: from Globals import default__class_init__ default__class_init__

Re: [Zope-dev] Using Zope for Groupware/Messaging applications

2001-02-18 Thread Steve Alexander
f changing requirements. -- 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] AttributeError

2001-02-16 Thread Steve Alexander
to the ZODB that shouldn't be written there. -- 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] How to read ZODB with Python script?

2001-02-15 Thread Steve Alexander
. (did I get the terminology right?) -- 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] Calling Catalog from python script

2001-02-14 Thread Steve Alexander
[EMAIL PROTECTED] wrote: "R. David Murray" wrote: catent.getobject() That would seem to be a lot more OOish. In 2.3 you can call catent.getObject(). You can pass an optional REQUEST in as an argument, to support lookup via resolve_url rather than restrictedTraverse.

Re: [Zope-dev] ProxyPass and SiteAccess getting REMOTE_ADDR

2001-02-13 Thread Steve Alexander
://ftp.netcetera.dk/pub/apache/mod_proxy_add_forward.c I believe there is some code in mod_proxy_add_forward to deal with getting the client's IP address from chains of proxies. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net

Re: [Zope-dev] Strange AttributeError in AccessControl/User.py

2001-02-13 Thread Steve Alexander
that error is 20 line on at 251. Perhaps you're hitting a but that's been fixed in a later version of Zope, or in CVS for the next version? -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist - [EMAIL

[Zope-dev] Formal argument for acquisition and aq_self

2001-02-13 Thread Steve Alexander
;self sends" are represented by the way an acquisition wrapper dispatches messages. The "self reference" is given by aq_base (or one of the other aq_ attributes, depending on what you want "self" to mean at the time). -- Steve Alexander Software Engineer Cat-Box

Re: [Zope-dev] Re: ThreadSafeCounter

2001-02-13 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] ThreadSafeCounter 0.0.1 released

2001-02-12 Thread Steve Alexander
n the Core Session Tracking product to see how it is done there. Also, you may find Shane Hathaway's ExternalMount product useful. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist - [EMAIL PROTE

Re: [Zope-dev] Python Based DataSkins and Propertysheets

2001-02-12 Thread Steve Alexander
, #VirtualSheets, ): You need to derive EmployX from DataSkin and some Zope persistent class such as SimpleItem. Otherwise, it won't be persistent. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist - [EMAIL

Re: [Zope-dev] Python Based DataSkins and Propertysheets

2001-02-12 Thread Steve Alexander
perties. The reason to use ZClass-style propertysheets is if you want to easily partition your properties into sets of properties with different permissions. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist -

Re: [Zope-dev] Python Based DataSkins and Propertysheets

2001-02-12 Thread Steve Alexander
Steve Alexander wrote: Johan Carlsson wrote: You need to derive EmployX from DataSkin and some Zope persistent class such as SimpleItem. Otherwise, it won't be persistent. Accualy I dont have to do that. Looking more closely at DataSkins.py, I see that class DataSkin derives from

Re: [Zope-dev] Python Based DataSkins and Propertysheets

2001-02-12 Thread Steve Alexander
tie the object to the ZODB if you're using a Specialist. That's the magic of ZPatterns. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope

Re: [Zope-dev] Python Based DataSkins and Propertysheets

2001-02-12 Thread Steve Alexander
ack's tabs. Hm, I realize that I'm still very confused and the only way out of that is "doing stuff" and see what happens. I guess so :-) There's also reading the source code... which may or may not help clarify things. -- Steve Alexander Software Engineer Cat-Box limited ht

Re: [Zope-dev] ThreadSafeCounter 0.0.1 released

2001-02-11 Thread Steve Alexander
fs to grow. The trade-off is that it doesn't participate in history or undo. -- 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 pos

Re: [Zope-dev] Programmatic way to get the Zope Version

2001-02-11 Thread Steve Alexander
at is only in one version of Zope, and then catch the Exception. Ideally, this will be the attribute or module that has changed that made you want to detect the version in the first place. Make your choices based on whether there is an Exception or not. -- Steve Alexander Software Engineer Cat-Box li

Re: [Zope-dev] Getting parent within ZClass hierarchy

2001-02-09 Thread Steve Alexander
thonScript is acquired from elsewhere) This isn't really a zope-dev kind of question, as it is more about using Zope in a basic kind of way. You should ask questions like this on [EMAIL PROTECTED] instead. -- Steve Alexander Software Engineer Cat-Box limited http://www.c

Re: [Zope-dev] Plugins as Dataskins

2001-02-09 Thread Steve Alexander
pport, can help you design and implement your application, leaving many of the important decisions about methods of collaboration, and about storage of attributes, until later. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net __

Re: [Zope-dev] ZCatalog/TextIndex/OR - keyword search

2001-02-08 Thread Steve Alexander
for_query, category=searchTerm) The standard name for the search_text method or attribute is PrincipiaSearchSource. That's why PrincipiaSearchSource is a default TextIndex in a new ZCatalog. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___

Re: [Zope-dev] ZCatalog/TextIndex/OR - keyword search

2001-02-08 Thread Steve Alexander
. On Thu, 08 Feb 2001, Steve Alexander wrote: Arno Gross wrote: I understand that the search terms for a field with TextIndex are ORed and the fields in a search form are ANDed. But assume the following: * I have three fields (eg. abstract, content, title) with TextIndex * I have one

[Zope-dev] DAV locking in management interface

2001-02-08 Thread Steve Alexander
Now that DAV locking has landed, how about integrating it with the TTW management interface. For example, when editing a DTML Method, have a button that says "Lock to make changes". Pressing this locks the method you want to edit. It gets unlocked when you press the "change&quo

Re: [Zope-dev] ZCatalog/TextIndex/OR - keyword search

2001-02-08 Thread Steve Alexander
struggles it works. Great! Actually I have ZClass objects. -- 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

Re: [Zope-dev] ZPatterns for Zope 2.3 convenience release

2001-02-07 Thread Steve Alexander
Itai Tavor wrote: Steve Alexander wrote: Itai Tavor wrote: Steve, This release breaks access to the management screens of ZClasses stored on Racks. In Zpatterns-0.4.2a3, Specialist/item_id/manage returns the ZClass management screen. In your release it returns the Specialist

[Zope-dev] PlugIns: new .dtml files for 2.3 CVS

2001-02-06 Thread Steve Alexander
.dtml You can find copies here: http://www.cat-box.net/steve/PlugInGroup.dtml http://www.cat-box.net/steve/main.dtml -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist - [EMAIL PROTE

Re: [Zope-dev] ZPatterns for Zope 2.3 convenience release

2001-02-06 Thread Steve Alexander
changes to ZPatterns would cause the change you're reporting. I'm definitely seeing what you describe on Zope 2.3 from CVS, with the ZPatterns convenience release. To check this, I'll try an unpatched ZPatterns-0.4.3b2 with Zope 2.3, and see if I can reproduce the bug with that. -- Steve

Re: [Zope-dev] Phrase search in ZCatalog

2001-02-05 Thread Steve Alexander
lib/python/SearchIndex/UnTextIndex.py Follow the flow of code through from line 550: def query( ... ) -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailma

Re: [Zope-dev] Q: Specialists, Racks, and ZCatalogs?

2001-02-05 Thread Steve Alexander
t clearer :-) Also, the Catalysis method puts an emphasis on defining interactions and collaborations between objects in terms of roles. You might want to take a look at that. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___

Re: [Zope-dev] Q: Specialists, Racks, and ZCatalogs?

2001-02-05 Thread Steve Alexander
lysis Approach" http://www.amazon.com/exec/obidos/ASIN/0201310120 It is a large book. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinf

Re: [Zope-dev] Creating IMAP and SMTP services for Zope

2001-02-04 Thread Steve Alexander
requests into zpublisher requests so the default pool can be used. Or, I guess, you could implement the whole thing as a ZEO client, and avoid interfering with the threads of your webserving Zope. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net

Re: [Zope-dev] Q: Specialists, Racks, and ZCatalogs?

2001-02-04 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

Re: [Zope-dev] Q: Specialists, Racks, and ZCatalogs?

2001-02-04 Thread Steve Alexander
cheerfully accepted. :) I've just patched ZPatterns so that SkinScript methods have a History tab. I guess I could work on cut and paste too :-) I'll send a patch when I'm done and tested. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net

Re: [Zope-dev] Q: Specialists, Racks, and ZCatalogs?

2001-02-04 Thread Steve Alexander
. They just can't with 2.3 because of these changes. I'll post a patch shortly. -- 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] Q: Specialists, Racks, and ZCatalogs?

2001-02-03 Thread Steve Alexander
='%s %s %s' % (title, headline, content) -- 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

Re: [Zope-dev] ZClasses vs. Python Products

2001-02-03 Thread Steve Alexander
and a Python Product. Each ZClass is derived from an associated Python base class. You get to keep you flexibility, but also get the advantages of TTW development when you need it. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net

Re: [Zope-dev] Q: Specialists, Racks, and ZCatalogs?

2001-02-03 Thread Steve Alexander
of string ids. Often, a better plan is to determine exactly what information is needed by the part of your application that requires the list_players_by_name(name) method call; then provide exactly that information. -- Steve Alexander Software Engineer Cat-Box limited ht

Re: [Zope-dev] Poor programming practice?

2001-01-31 Thread Steve Alexander
, rather than passing it in the constructor. Both patterns are discussed in the infamous "Gang Of Four book" Design Patterns: Elements of reusable object-oriented software, Gamma, Helm, Johnson and Vlissides. There will be explanations on the web somewhere too, no doubt. -- Steve

Re: [Zope-dev] 2.3.0 release badness

2001-01-29 Thread Steve Alexander
;race condition"). Do you have a URL for a description of the bug? Thanks. -- 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] DTML block parsing

2001-01-23 Thread Steve Alexander
ested dtml-comment tags still work? dtml-comment Some code commented out dtml-comment Documentation in a comment /dtml-comment Rest of code commented out /dtml-comment -- Steve Alexander Software Engineer Cat-Box limited http://www.c

Re: [Zope-dev] Local roles and security of ZClass instances in Specialists

2001-01-23 Thread Steve Alexander
where CheckForPermission returns 1 if the permission is ok, or raises unauthorized otherwise. You might not need to pass in REQUEST if you're using a Python Script. You could also add in an argument to CheckForPermission that indicates the sort of permission to check for. -- Steve Alexander

Re: [Zope-dev] DTML block parsing

2001-01-23 Thread Steve Alexander
with the way you describe the patched tag works. I'll try it out when I return from the EuroZope meeting in Amsterdam. I don't think it is reasonable to try to catch unbalanced dtml-comment tags. In fact, I like the fact that it will raise an error if I leave them unbalanced. Thanks. -- Steve

<    1   2   3   4   5   >