[Zope] Acquisition: DTML Methods vs Documents

2001-01-05 Thread Oleg Broytmann
Hello! Can anyone here explain clearly what is the difference between DTML Methods and DTML Documents regarding acquisition? Well, in simple cases I think I understand it. When I call a Method through the web, it use dynamic (based on current URL) acquisition path. A Document uses static

Re: [Zope] Hookable PUT Creation

2001-01-05 Thread Chris Withers
Tres Seaver wrote: http://dev.zope.org/Wikis/Proposals/HookablePUTCreation That gives me a NotFound :-S cheers, Chris ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! **

Re: [Zope] Is it possible to install the Bug Collector Product in my Zope ???

2001-01-05 Thread Chris Withers
Frederic Quin wrote: Hi all, I can't find the bug collector product to install it in my zope. Maybe it's not possible... If it is, please tell me where to download it. http://www.zope.org/Members/klm/TrackerWiki/ cheers, Chris ___ Zope

Re: [Zope] How to call ancestral method in ZClass method?

2001-01-05 Thread Steve Spicklemire
Hi Dirksen, In python you would normally do: super_class_object.manage_delete(self) but it might be easier/better in the case of a DataSkin to use a SkinScript 'WHEN OBJECT DELETED xxx '. -steve "Dirksen" == Dirksen [EMAIL PROTECTED] writes: Dirksen I have a ZClass

[Zope] installing zope on win95

2001-01-05 Thread nando n
where can i download (exact url) binary version of zope to install it on my win95 system? for now i've only been able to download python source code version of zope. how do i execute dtml files? _ Get Your Private, Free

[Zope] Creating a Database connection.

2001-01-05 Thread Darren Carney
Dear Zope, I am very new to the Zope idea. I like what Zope is trying to do. But I am trying to set up an external SQL database connection. I have read the information thats on the Zope website. It has not made it any clearer about setting up a DA and making the connection. Thanks in advance

[Zope] Calling a DTML method in a subfolder that uses PARENTS[0]

2001-01-05 Thread Soren Roug
Hello, I'm trying to call a method inside a folder that uses this common way of listing its content: dtml-in "PARENTS[0].objectValues('File')" dtml-var absolute_urlbr /dtml-in Let's call this folder FileLibrary. (It's actually a Z Class subclassed from ObjectManager) My problem is when I call

Re: [Zope] Hookable PUT Creation

2001-01-05 Thread Tres Seaver
On Fri, 5 Jan 2001, Chris Withers wrote: Tres Seaver wrote: http://dev.zope.org/Wikis/Proposals/HookablePUTCreation That gives me a NotFound :-S Hmm, sure enough. I wonder why the "DevSite" has to be there even inside dev.zope.org? At any rate, the "correct" URL is:

Re: [Zope] External Methods

2001-01-05 Thread Marcus Mendes
Phil Harris wrote: Wouldn't it be better to pass in self? As in: def my_method(self,REQUEST=None): '''my_method interpreting *REQUEST*.form.''' if REQUEST is None: REQUEST=self.REQUEST # safety_valve in case you forget to pass in REQUEST form= REQUEST.form # this is a

Re: [Zope] Acquisition: DTML Methods vs Documents

2001-01-05 Thread Stephane Bortzmeyer
On Friday 5 January 2001, at 12 h 26, the keyboard of Oleg Broytmann [EMAIL PROTECTED] wrote: Can anyone here explain clearly what is the difference between DTML Methods and DTML Documents regarding acquisition? Not me but this HOWTO:

Re: [Zope] Acquisition: DTML Methods vs Documents

2001-01-05 Thread Oleg Broytmann
On Fri, 5 Jan 2001, Stephane Bortzmeyer wrote: http://www.zope.org/Members/michel/HowTos/DTMLMethodsandDocsHowTo saved my life. Thanks. I'be read it yesterday. It does not help much because it does not answer my question: If I call http://machine:port/top/middle/AFolder/ADocument (in

[Zope] (no subject)

2001-01-05 Thread Gross, Chedva
I have an array created using javascript on one web page. I want to access that same array (or piece of it) on another page. How can I go about doing this without using forms? ___ Zope maillist - [EMAIL PROTECTED]

Re: [Zope] Acquisition: DTML Methods vs Documents

2001-01-05 Thread Oleg Broytmann
On Fri, 5 Jan 2001, Stephane Bortzmeyer wrote: http://phd.russ.ru/pcgi/TEST/2/index_html WOW! It show foobar again from root, not from /TEST/2! standard_html_header acquires using static path provided by index_html! You started acquisition from index_html. Since it has no foobar, it

Re: [Zope] Acquisition: DTML Methods vs Documents

2001-01-05 Thread Stephane Bortzmeyer
On Friday 5 January 2001, at 12 h 26, the keyboard of Oleg Broytmann [EMAIL PROTECTED] wrote: When I call standard_html_header directly through the web, it acquires foobar using dynamic acquisition path: Actually, if I understand it myself :-) it acquires foobar because a method has no

Re: [Zope] External Methods

2001-01-05 Thread Ryan M. Dolensek
Try... for k,v in form.items(): k should contain the key name v should contain the value Otherwise... value = form['Name_Of_Variable_OF_my_form'] Hope that helps. Ryan Hello, Ok Sirs, I'm very late in my checking my mailbox ;-) I've a question in this code above : How can I get

Re: [Zope] Acquisition: DTML Methods vs Documents

2001-01-05 Thread Stephane Bortzmeyer
On Friday 5 January 2001, at 17 h 58, the keyboard of Oleg Broytmann [EMAIL PROTECTED] wrote: There are many Documents on my site, not only index_html. Should I make them all Methods? Why after this I need Documents at all? Because not all documents are acquired (from an above folder).

Re: [Zope] Acquisition: DTML Methods vs Documents

2001-01-05 Thread Dario Lopez-Kästen
Hello! I think hade a similar problem. It seems that you can only use methods for acquisition, not documents. I had an index_html DOC where I specified the structure of my site. In index_html I used dtml-var some_doc that and in some_doc I once dtml-var other_doc. The idea was that in my

[Zope] Re: translator / zbabel

2001-01-05 Thread Federico Di Gregorio
Scavenging the mail folder uncovered Olaf Zanger's letter: hi there, i'm searching for a i18n product, on translator i seam to miss "xmlio". use attached xmlio.py (put it in $ZOPE_HOME/lib/python/Shared) you don't have to use the makefile. just untar the tarball into $ZOPE_HOME. (i use

[Zope] How to split a string in a python method?

2001-01-05 Thread Juan Carlos Coruña
Is there any way to split a string in a PythonMethod without passing the object _.string as an argument? I have tried to "import string" but Zope generates an ImportError: ImportError: __import__ not found I'm using PythonMethod 0.1.7 ___ Zope

Re: [Zope] Acquisition: DTML Methods vs Documents

2001-01-05 Thread Rik Hoekstra
On Fri, 5 Jan 2001, Stephane Bortzmeyer wrote: http://www.zope.org/Members/michel/HowTos/DTMLMethodsandDocsHowTo saved my life. Thanks. I'be read it yesterday. It does not help much because it does not answer my question: If I call http://machine:port/top/middle/AFolder/ADocument

Re: [Zope] How to split a string in a python method?

2001-01-05 Thread Jim Washington
Yes. Just use it. string is already in the Python Methods namespace. EXAMPLE: Python Method Parameter list: self Python function body: testsentence = 'I want this sentence to be converted into a list of its component words.' thelist = string.split(testsentence) for aword in thelist: print

[Zope] images bi XML-RPC

2001-01-05 Thread Nuno Goncalves
Hi there ! I'm trying to add imagens with a perl XML-RPC script Does anyone knows how to do that ?? I'm tring something like this but Zope adds a conten-type like text/x-unknown-content-type and i wanted a image content-type ! here's the code : - #!/usr/bin/perl use

[Zope] Z2 Log question

2001-01-05 Thread Stuart Foster
I was looking at my Z2 log and notice an entry that repeats itself over and over and was wondering if anyone could tell me how to trace it down. The message is [20/Nov/2000:13:00:11 -0700] "HEAD /opnix/portal HTTP/1.0" 401 1906 "" "" [20/Nov/2000:13:00:17 -0700] "HEAD /opnix/portal

[Zope] Pb. of Inheritance lost between packages. (after too manyexport/imports ?)export/imports ?)

2001-01-05 Thread Thierry Nabeth
Hello, Here is this problem again that has reappeared I already posted about this problem some months ago, but did not manage to make it work, and I had to rewrite all the class from scratch. (of course, I did a lot of cut and past, but you have to do a lot of manual work recreating the

RE: [Zope] SQL editing

2001-01-05 Thread Mohan Baro
You can use the ZNolk SQL wizard also available from zope.org Mohan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Alex Burton Sent: Friday, January 05, 2001 12:47 PM To: [EMAIL PROTECTED] Subject: [Zope] SQL "editing" Hello All, I'm quite

[Zope] zope on Win95

2001-01-05 Thread nando n
where can i download (exact url) binary version of zope to install it on my win95 system? for now i've only been able to download python source code version of zope. how do i execute dtml files? i just want to know that. thanks

Re: [Zope] SQL editing

2001-01-05 Thread Stuart Foster
We use the Znolk wizard. It's good for creating the initial entry, edit, list forms as well as the queries to add, edit and delete. Original Message On 1/5/01, 10:47:14 AM, Alex Burton [EMAIL PROTECTED] wrote regarding [Zope] SQL "editing": Hello All, I'm quite happy, got MySQL +

[Zope] manage_editProperties Question

2001-01-05 Thread Ronald L. Roeber
I have looked through the Zope book and other documentation, but still am unable to properly allow others to change properties in a product with a custom built form. Case in point, a product with a Property called contact which is a string The product changing method I am trying to make work

Re: [Zope] External Methods

2001-01-05 Thread Marcus Mendes
"Ryan M. Dolensek" wrote: Try... for k,v in form.items(): k should contain the key name v should contain the value Otherwise... value = form['Name_Of_Variable_OF_my_form'] Hope that helps. Ryan Hello, Ok Sirs, I'm very late in my checking my mailbox ;-) I've a

Re: [Zope] Zope redirecting manage_workspace?!

2001-01-05 Thread Dieter Maurer
Edmund Goppelt writes: ... manage_workspace redirects ... It does this, if the current permissions does not allow the use of any of the available tabs. Are you sure, you set the permission mappings correctly? Dieter ___ Zope maillist - [EMAIL

[Zope] UserFolder Alternate Login

2001-01-05 Thread dlee
Zopatistas, I need functionality that none of the UserManagers seem to address. I need to allow a user to elect to log in (and set AUTHENTICATED_USER) as opposed to have them access a restricted resource to trigger cookie authentication. I am essentially limited to GUF because it's the only

Re: [Zope] UserFolder Alternate Login

2001-01-05 Thread Oliver Bleutgen
Zopatistas, I need functionality that none of the UserManagers seem to address. I need to allow a user to elect to log in (and set AUTHENTICATED_USER) as opposed to have them access a restricted resource to trigger cookie authentication. You mean you want to use AUTHENTICATED_USER like a

[Zope] SELECT COUNT(*) ZSQL method - displaying results?

2001-01-05 Thread Lee
Hi, I am having difficulty displaying the results from an SQL query: SELECT COUNT(*) FROM REGISTRY WHERE dtml-sqltest classcode op=eq type="float" When I call the ZSQL method from my DTML method and try and display the result (using dtml-var count) I get a rather horid,

Re: [Zope] SELECT COUNT(*) ZSQL method - displaying results?

2001-01-05 Thread Alex Reid
Lee, Have you tried SELECT COUNT(*) AS myCountField and then using dtml-var myCountField May work. Alex [EMAIL PROTECTED] - Original Message - From: Lee [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 05, 2001 10:12 PM Subject: [Zope] SELECT COUNT(*) ZSQL method -

[Zope] emacs and zope

2001-01-05 Thread Mehmet Yousouf
Hi, I am trying to get xemacs to use dtml tags (zope), I downloaded .dtd, .ent, .el files and can get it to go into "dtml-mode", but I can't get any of the tags to appear in the menus. I put the files in ~/Emacs/ (this is referenced in my .emacs file) it seems to find my public file, and the .el

Re: [Zope] External Methods

2001-01-05 Thread Dieter Maurer
Marcus Mendes writes: I've got the follow content : Key Error SERVER_NAME, that is, form= REQUEST.form server = form['SERVER_NAME'] The error report is unambiguous. Your "REQUEST.form" does not contain "SERVER_NAME". You may try "REQUEST['SERVER_NAME']".

Re: [Zope] Acquisition: DTML Methods vs Documents

2001-01-05 Thread Dieter Maurer
Oleg Broytmann writes: Can anyone here explain clearly what is the difference between DTML Methods and DTML Documents regarding acquisition? I think, I gave a good answer to a similar question in zope-dev recently -- searchable list archive. Dieter

Re: [Zope] Calling a DTML method in a subfolder that uses PARENTS[0]

2001-01-05 Thread Dieter Maurer
Soren Roug writes: Hello, I'm trying to call a method inside a folder that uses this common way of listing its content: dtml-in "PARENTS[0].objectValues('File')" dtml-var absolute_urlbr /dtml-in Let's call this folder FileLibrary. (It's actually a Z Class subclassed from

[Zope] newbie q -- 2.3.0a1, file object precondition

2001-01-05 Thread John Gerard Malecki
hi, i'm very new to zope and am trying to get familiar with the variety of mechanisms i can use. zope is indeed a very nice package! i am starting with version 2.3.0a1 (because it matches the book). i've not yet had success getting preconditions to work with file objects. i hope i'm not doing

Re: [Zope] Z2 Log question

2001-01-05 Thread Dieter Maurer
Stuart Foster writes: I was looking at my Z2 log and notice an entry that repeats itself over and over and was wondering if anyone could tell me how to trace it down. The message is [20/Nov/2000:13:00:11 -0700] "HEAD /opnix/portal HTTP/1.0" 401 1906 "" ""

Re: [Zope] UserFolder Alternate Login

2001-01-05 Thread Bill Anderson
[EMAIL PROTECTED] wrote: Zopatistas, I need functionality that none of the UserManagers seem to address. I need to allow a user to elect to log in (and set AUTHENTICATED_USER) as opposed to have them access a restricted resource to trigger cookie authentication. *Ahem* Actually,

Re: [Zope] zope on Win95

2001-01-05 Thread Jason Cunliffe
Nando This should be what you are looking for: http://www.zope.org/Products/Zope/2.2.4/Zope-2.2.4-win32-x86.exe/view I have been running Zope on Win95 and Win98 on laptops for learning, development and off-line site demsontration very happily for a long time. You don't 'execute dtml files'

[Zope] PoPy Problems

2001-01-05 Thread J. Atwood
Linux 6.2, Zope 2.2.4, PostgreSQL 7.0.3, PoPy 1.4.1, ZPoPyDA 0.7.0 I installed the PoPy module and at the Python command line can import PoPy' with no problems. I then untarred the ZPoPyDA and restarted Zope at which point I get (in the Zope management screen). ZPoPyDA Import Traceback

Re: [Zope-dev] Internationalization

2001-01-05 Thread Federico Di Gregorio
On Thu, Jan 04, 2001 at 12:02:17PM -0700, [EMAIL PROTECTED] wrote: Hello, Has anyone translated a site within Zope ? I have tried the ZBabel Translation System (http://www.zope.org/Members/TheJester/ZBabel) and didn't think it did really what I was after. I need to translate the site

Re: [Zope-dev] Product dev

2001-01-05 Thread Chris Withers
Shane Hathaway wrote: when a product has syntax errors. One of the first things I did at Digital Creations was make sure that got fixed. :-) Does this mean this bit from your average product's __init__.py isn't neeeded anymore? except: # If we can't register, complain! import

Re: [Zope-dev] case insensitive sorts

2001-01-05 Thread Chris Withers
Shane Hathaway wrote: Shane Hathaway wrote: def sort_strings(data): sortable_data = list(map(lambda s: (lower(s), s), data)) sortable_data.sort() return map(lambda s: s[1], sortable_data) ... Or better, you could pass a comparison function to sort() like Tres suggested. :-)

Re: [Zope-dev] Acquisition wishlist :-)

2001-01-05 Thread Martijn Pieters
On Thu, Jan 04, 2001 at 10:46:35AM +, Chris Withers wrote: Dieter Maurer wrote: acquisition.donotacquire('index_html') This would be great. Indeed :-) class MyClass (Acquisition.Explicit): acquisition = ClassAcquisitionInfo()

Re: [Zope-dev] CatalogAware

2001-01-05 Thread Chris Withers
Michael Bernstein wrote: Your example is correct as far as it goes, but as I understand it, you are not really specifying the default catalog per se, but the default catalog *name*. snip This is true, and one of the reasons why I (and maybe only I ;-) consider CatalogAware somewhat less

Re: [Zope-dev] CatalogAware

2001-01-05 Thread Chris Withers
Michael Bernstein wrote: Aha! You're saying that catalog_object and uncatalog_object are methods of the catalog, so when the catalog contains the objects directly, it's all that's neccessary, correct? Yes :-) uncatalog_object to be called on it (I'm not sure what method reindex_object

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

2001-01-05 Thread Chris Withers
Brian Lloyd wrote: Are you talking about 'ProtocolAccessibility'? It's still there (though Jim has done some rearranging of things there lately)... http://www.zope.org//Wikis/DevSite/Proposals/ProtocolAccessibility So it is :-) Comments are still welcome... Chris

[Zope-dev] Re: ComputedAttribute

2001-01-05 Thread Martijn Pieters
On Fri, Jan 05, 2001 at 12:22:32PM +, Chris Withers wrote: Martijn Pieters wrote: You could use ComputedAttribute for that: class MyClass(Acquisition.Explicit): # The following attribute is acquired transparently def _acquired_your_attribute(self): return

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

2001-01-05 Thread Steve Alexander
This is an RFE for Zope 2.3. I'm posting it here for discussion, rather than in the Collector. In the new PythonScripts product (that is a standard part of Zope 2.3) there is a standard utility module that can be imported into a Python Script with import Products.PythonScripts.standard

Re: [Zope-dev] protocol accesibility

2001-01-05 Thread Chris Withers
Toby Dickenson wrote: On Fri, 05 Jan 2001 12:18:07 +, Chris Withers [EMAIL PROTECTED] wrote: http://www.zope.org//Wikis/DevSite/Proposals/ProtocolAccessibility So it is :-) Comments are still welcome... Comments provided as requested With sensible defaults, what I was

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

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

2001-01-05 Thread Steve Alexander
Chris Withers wrote: If you have something like that, wouldn't it be better, more readable, etc, for it to be moved intop a python script, even if that script was only 1 line long? eg: dtml-if "mysomething(_['title_or_id'],_.standard.html_quote(absolute_url()+_[id]))" You are being

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

2001-01-05 Thread Chris Withers
Steve Alexander wrote: eg: dtml-if "mysomething(_['title_or_id'],_.standard.html_quote(absolute_url()+_[id]))" You are being deliberately Byzantine there! I provided a good example for my case, don't know what Byzantine means, erk :-S However, I agree with you in principle. I've

Re: [Zope-dev] ZPatterns question

2001-01-05 Thread Chris Withers
Christian Scholz wrote: yeah, this is exactly what I'm after too. I'd like the virtual objects the specialist is responsible for to have normal Zope management screens. Well, I think this shouldn't be too difficult to create. Just a subclass of Specialist and add some Contents-Tab,

Re: [Zope-dev] Product dev

2001-01-05 Thread Shane Hathaway
Chris Withers wrote: Shane Hathaway wrote: when a product has syntax errors. One of the first things I did at Digital Creations was make sure that got fixed. :-) Does this mean this bit from your average product's __init__.py isn't neeeded anymore? except: # If we can't

Re: [Zope-dev] Product dev

2001-01-05 Thread Chris Withers
Shane Hathaway wrote: when a product has syntax errors. One of the first things I did at Digital Creations was make sure that got fixed. :-) Does this mean this bit from your average product's __init__.py isn't neeeded anymore? except: # If we can't register, complain!

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

2001-01-05 Thread Chris Withers
Steve Spicklemire wrote: No... I don't think so! If you don't mind keeping stuff in ZODB then you *could* have a traversal interface that made stuff 'appear' wherever you want it to, though its persistent storage would 'really' be in a Rack or FwCS. Cool... how would I go about doing that?

Re: [Zope-dev] protocol accesibility

2001-01-05 Thread Chris Withers
Toby Dickenson wrote: IMO their goals are achieved better, and simpler, with a HOWTO that explains how to configure the 'access contents information' permission. That's not been my experience, but maybe that How-To would help :-) Care to write it? ;-) I think perhaps you havent appreciated

Re: [Zope-dev] Product dev

2001-01-05 Thread Shane Hathaway
Chris Withers wrote: Shane Hathaway wrote: when a product has syntax errors. One of the first things I did at Digital Creations was make sure that got fixed. :-) Does this mean this bit from your average product's __init__.py isn't neeeded anymore? except: # If we

Re: [Zope-dev] protocol accesibility

2001-01-05 Thread Chris Withers
Toby Dickenson wrote: That's not been my experience, but maybe that How-To would help :-) Care to write it? ;-) It is on my todo list cool :-) Protocol independence is not necessarily a good thing in this case. Different protocols have different capabilities. The zope way of

Re: [Zope-dev] CatalogAware

2001-01-05 Thread Chris Withers
Michael Bernstein wrote: Now I'm wondering how to duplicate the behaviour of Postings being contained within Squishdot, but not appearing in the 'Contents' tab. that's definitely a 'bad' thing :-( Why duplicate anyway? You writing a replacement? ;-) cheers, Chris

Re: [Zope-dev] Acquisition wishlist :-)

2001-01-05 Thread Shane Hathaway
There's a (much) simpler way: class MyClass(Acquisition.Explicit): your_attribute = Acquisition.Acquired # index_html isn't index_html = None "Acquired" is a special object that the acquisition module looks for. However, I wasn't aware you could add a "1" to the ComputedAttribute

Re: [Zope-dev] Acquisition wishlist :-)

2001-01-05 Thread Chris Withers
Shane Hathaway wrote: There's a (much) simpler way: class MyClass(Acquisition.Explicit): your_attribute = Acquisition.Acquired # index_html isn't index_html = None Cool :-) And I suppose the other part of my wishlist: class MyClass(Acquisition.Implicit): #

Re: [Zope-dev] CatalogAware

2001-01-05 Thread Christopher Petrilli
On 1/5/01 7:16 AM, "Chris Withers" [EMAIL PROTECTED] wrote: uncatalog_object to be called on it (I'm not sure what method reindex_object causes to be called). unindex_object followed by index_object. I'm not convinced it's necessary, as no-one has said that uncataloging is a necessary step

[Zope-dev] BTree Folders

2001-01-05 Thread Chris Withers
Hi, There was talk a while back of re-doing BTree's in Zope so they were more efficient. Is that still going ahead? If I start using BTree folders now, will there be any nasties when the changes happen? Right, BTree folders wise, what I'm looking for is to have, in effect two Contents tabs for

[Zope-dev] zope on win95

2001-01-05 Thread nando n
where can i download (exact url) binary version of zope to install it on my win95 system? for now i've only been able to download python source code version of zope. how do i execute dtml files? i just want to know that. thanks

Re: [Zope-dev] BTree Folders

2001-01-05 Thread Steve Alexander
Chris Withers wrote: Right, BTree folders wise, what I'm looking for is to have, in effect two Contents tabs for one BTree folder object, one showing all contained items of a particular meta_type (with the BTree Folder's interface to deal with lots of objects), and the other containing all

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

2001-01-05 Thread Steve Alexander
Hi folks, http://www.cat-box.net/steve/skinscript_ref-0-4-3b2.ps.gz This is a two-up A4 postscript version of PJE's most useful SkinScript reference. It prints out to four landscape-orientation A4 pages. http://www.cat-box.net/steve/skinscript_ref-0-4-3b2_letter.ps.gz This is similar,

Re: [Zope-dev] ZPaterns, Pluggins

2001-01-05 Thread Chris Withers
Steve Alexander wrote: If you're using ZPatterns anyway, After looking at ZPatterns for a few more days again, I still can't justify introducing that ammount of complexity to the project concerned. Also, ZPatterns seems very skewed towards TTW development now and, for CVS and distributability

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

2001-01-05 Thread Steve Alexander
Let's say I have a DataSkin-derived ZClass that has the attribute "forename" (in a dataskin attribute propertysheet). If I get an instance of this ZClass from the ZODB (set up to use a Folder w/ customizer suppport), I can refer to the "forename" attribute using dtml-var "this()['forename']".

[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" attribute using

[Zope-dev] Re: Spitter.c Hack

2001-01-05 Thread Jason Spisak
Zopists, I finally got Splitter.c to let me index numbers and 'C++' in a TextIndex. I have about 50,000 objects in that index, and search performance is nearly instantaneous still. I am running on a big machine though. If anyone wants those changes there's really easy. Just mail me directly,

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

2001-01-05 Thread Steve Spicklemire
Hi Steve, Hmm.. is the 'id' of your PythonScript also getattr? thanks, -steve "Steve" == Steve Alexander [EMAIL PROTECTED] writes: Steve Steve Alexander wrote: Let's say I have a DataSkin-derived ZClass that has the attribute "forename" (in a dataskin attribute

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

2001-01-05 Thread Steve Alexander
Steve Spicklemire wrote: Hi Steve, Hmm.. is the 'id' of your PythonScript also getattr? Yes. I forgot to mention that. And, I realized just after posting the email to the list that calling a method "getattr" is asking for trouble :-) Actually, my workaround doesn't work except in the

Re: [Zope-dev] Re: Spitter.c Hack

2001-01-05 Thread Casey Duncan
Jason Spisak wrote: Zopists, I finally got Splitter.c to let me index numbers and 'C++' in a TextIndex. I have about 50,000 objects in that index, and search performance is nearly instantaneous still. I am running on a big machine though. If anyone wants those changes there's really

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

2001-01-05 Thread Dieter Maurer
Steve Alexander writes: I like your idea. It is one way to implement my recent "lobbying" request with minimal effort. Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or

Re: [Zope-dev] Acquisition wishlist :-)

2001-01-05 Thread Dieter Maurer
Chris Withers writes: And I suppose the other part of my wishlist: class MyClass(Acquisition.Implicit): # your_attribute will be acquied # index_html won't index_html = None No, that is not enough! As a side effect to turn off acquisition, you defined the

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

2001-01-05 Thread Steve Alexander
Let's say I have a trigger that is called to ensure that what something is changed to holds true. I use some skinscript like this: WHEN OBJECT ADDED, CHANGED CALL self.ensure_conditions_hold() I write the ensure_conditions_hold method so that it returns None if everything is ok, but raises

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

2001-01-05 Thread Phillip J. Eby
At 12:49 AM 1/6/01 +, Steve Alexander wrote: WHEN OBJECT ADDED, CHANGED CALL self.ensure_conditions_hold() I write the ensure_conditions_hold method so that it returns None if everything is ok, but raises an exception if there is a problem with the new state of the object. That's all

Re: [Zope-dev] Re: Spitter.c Hack

2001-01-05 Thread Jason Spisak
Casey Duncan: It truely is nothing more than cutting out the two parts that eliminate single letter words and numbers: *** Zope-2.2.4-src/lib/python/SearchIndex/Splitter.c --- Zope-2.2.4-src/lib/python/SearchIndex/Splitter_Old.c *** *** 169,192 len = PyString_Size(word)

Re: [Zope-dev] Re: Spitter.c Hack

2001-01-05 Thread Jason Spisak
Erik, [Jason Spisak] | I am running on a big machine though. If anyone wants those changes | there's really easy. Just mail me directly, since it's a long file | to post. Hi. I would be interested in the file :-). Okay, here's the diff. It truely is nothing more than cutting out

Re: [Zope-dev] CatalogAware

2001-01-05 Thread Michael Bernstein
Chris Withers wrote: Michael Bernstein wrote: Now I'm wondering how to duplicate the behaviour of Postings being contained within Squishdot, but not appearing in the 'Contents' tab. that's definitely a 'bad' thing :-( Why is that bad? A custom object management UI ('Postings' and