Re: [Zope] subfolder wrong absolute_url

2000-05-18 Thread Steve Alexander
nager type or DTML method type, or whatever. Are there any downsides to having this behaviour for all objects/all URLs? Or perhaps there could be some kind of per-path switch inside Zope that turns the redirect behaviour on or off. -- Steve Alexander Software Engineer Cat-Box limited __

Re: [Zope] Zope/Apache Image Catalog

2000-05-20 Thread Steve Alexander
CatalogAware. -- Steve Alexander Software Engineer Cat-Box limited ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope

Re: [Zope] detect root folder

2000-05-20 Thread Steve Alexander
Sin Hang Kin wrote: Hi, Is it possible to detect the top folder in dtml? I means I would like to prevent squishdot to show the ../ when it is already in the top level. dtml-if "_.len(PARENTS) == 1" We're at the root folder dtml-else You can go up from here /dtml-if

Re: [Zope] Advocacy FAQ?

2000-05-23 Thread Steve Alexander
pplication in Python. For the kind of applications I have, I'm happy to throw a bit more hardware at a server, if I get an improvement in reuse, understandability or maintainability. Maintenance accounts for much more than half the cost of most projects. -- Steve Alexander Software Engi

Re: [Zope] calling an Python builtin function

2000-05-23 Thread Steve Alexander
zope.org/Members/Zen/howto/FormVariableTypes Coerce your form fields into the types you require by using magic incantations of the form variablename:type. -- Steve Alexander Software Engineer Cat-Box limited ___ Zope maillist - [EMAIL PROTECTED] h

Re: [Zope] newbie question: case sensitive folder problem

2000-05-24 Thread Steve Alexander
you if you want things to be totally case-insensitive, like having "bIgFolDer" direct to "Bigfolder" for example. -- Steve Alexander Software Engineer Cat-Box limited ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailm

Re: [Zope] M$soft

2000-05-25 Thread Steve Alexander
. Here's a reference that dropped from Google when I asked "corruption concurrent microsoft access database" http://dgl.com/dglinfo/1998/dg980825.html (half way down page) I wouldn't use Access with Zope. -- Steve Alexander Software Engineer Cat-B

Re: [Zope] ANN: Perl For Zope

2000-05-25 Thread Steve Alexander
a shortage of able rescuers :-) -- Steve Alexander Software Engineer Cat-Box limited ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.o

Re: [Zope] ANN: Perl For Zope

2000-05-25 Thread Steve Alexander
Andrew Kenneth Milton wrote: If the phantom 'perl userbase' could 'hack into the core' and put perl in there, why would they wait for perl methods to become available first? They would have implemented PerlZope long before this. http://www.bgw.org/projects/pas2/ -- Steve Alexander

Re: [Zope] Passing all POST variables?

2000-05-26 Thread Steve Alexander
a: Could you pickle and Base64 encode the data you want to pass, and then shove it in a single hidden control? -- Steve Alexander Software Engineer Cat-Box limited ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No

Re: [Zope] PROPOSAL: Online chat with Jim and Paul

2000-05-28 Thread Steve Alexander
Paul Everitt wrote: I propose an IRC chat on Wednesday with Jim Fulton and me. Try and pick a time that's not *too* late at night for us Europeans. -- Steve Alexander Software Engineer Cat-Box limited ___ Zope maillist - [EMAIL PROTECTED

Re: [Zope] Zope Email (syndication)

2000-05-31 Thread Steve Alexander
ects by writing them as emails. I reckon this is quite feasible, and possibly even useful :-) -- Steve Alexander Software Engineer Cat-Box limited ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross po

Re: [Zope] ZClass book from Beehive.de

2000-06-03 Thread Steve Alexander
://www.zope.org/Members/mukhsein/job_board_howto http://www.zope.org/Members/AlexR/CatalogAware Also, see what you can find on the Zope Documentation Project pages: http://zdp.zope.org/ -- Steve Alexander Software Engineer Cat-Box limited ___ Zope

[Zope] Re: passing variables

2000-06-18 Thread Steve Alexander
part of your data is entrusted to the client. I'd suggest you look at the FSSession product: http://www.zope.org/Members/gaaros/FSSession Or perhaps HappySession: http://www.zope.org/Members/hungjunglu/Products/HappySession -- Steve Alexander Software Engineer Cat-Box

[Zope] OQL

2000-06-24 Thread Steve Alexander
-- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo

[Zope] Re: Question (was on zope-ptk)

2000-06-30 Thread Steve Alexander
shot ? What kind of files are they? What do you want to do with them once they're in Zope? Is uploading these files a recurring need you have, or is it a one-off? -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope

[Zope] Re: Question (was on zope-ptk)

2000-06-30 Thread Steve Alexander
these files into Zope. Have you tried this? -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related

[Zope] Shutting down Zope

2000-07-02 Thread Steve Alexander
Jonathan, Jonathan Desp wrote: How I can shut down zope without clicking on the shutdown button ? because I'm not able to see the page. You can run the "stop" script that is in the directory you installed zope into. In your case it will be: /home/jonano/Zope-2.1.6-src/stop

[Zope] Unique id product

2000-07-02 Thread Steve Alexander
is that there is very little contention in most cases. Is that zodb automatically serial all transaction? For the purposes of generating ids, yes. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope maillist - [EMAI

[Zope] Re: Traversal of ZODB

2000-07-04 Thread Steve Alexander
dozen DTML documents. Hi David, I just posted something similar to Zope-Dev: http://lists.zope.org/pipermail/zope-dev/2000-July/005744.html -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope maillist - [EMAIL

Re: [Zope] Re: Traversal of ZODB

2000-07-05 Thread Steve Alexander
methods grab on to individual methods within a Python module. Think about the way Python loads in functions and classes: the file gets read into the interpreter, and statements get executed (which runs them), whilst function definitions get executed (which causes their definitions to appear in the

Re: [Zope] Re: Traversal of ZODB

2000-07-05 Thread Steve Alexander
Unexpected tag, for tag dtml-endin". Is the old syntax !--#end...-- equivalent to !--#/...-- ? If so, it isn't documented in the current DTML Reference, and my regular expression should be changed to accommodate it. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net _

Re: [Zope] Is Zope slow?

2000-07-06 Thread Steve Alexander
, move the useful content of a site "forwards" towards its entrance, avoid banner adverts... -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/lis

Re: [Zope] cr/lf causing spaces

2000-07-09 Thread Steve Alexander
You can put your linefeeds inside the HTML and DTML elements: h2This is a really long heading with a dtml-var foo dtml variable in it/h2 See http://www.cat-box.net/helen/notes.html#source_layout_notes for more information about these issues. -- Steve Alexander Software Engineer Cat-Box

re: [Zope] Another DateTime Strangeness

2000-07-09 Thread Steve Alexander
is available in CVS and in Zope 2.2.x. There was also a copy of it on Shane's page at www.zope.org, but it is gone now. If you get stuck, mail me privately and I'll send you the fixed version. You're better off getting it from a copy of Zope 2.2, if you can. -- Steve Alexander Software Engineer

Re: [Zope] ZWiki/Structured Text formatting surprise

2000-07-11 Thread Steve Alexander
, though. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org

[Zope] Re: LoadSite can create a corrupted data.fs ?

2000-07-12 Thread Steve Alexander
must get your hardware checked, or else this problem will most likely occur again. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross

re: [Zope] .dtml files

2000-07-12 Thread Steve Alexander
il the document template is used the first time. """ -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTM

[Zope] Re: [Zope-dev] passing namespace

2000-07-15 Thread Steve Alexander
-archive.nsf/ I searched just now for "request and frames", and there were a number of helpful-looking results. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.o

[Zope] Re: Namespace Questions

2000-07-15 Thread Steve Alexander
imilar to this example. /font /dtml-with **** thanks in advance, Adam -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HT

[Zope] Re: LoadSite can create a corrupted data.fs ?

2000-07-20 Thread Steve Alexander
ma.f2s.com if you try the search engine you'll see good description which is a must. So do you know a way or the script or ? you'll be very useful if you know how. Read the ZCatalog Tutorial and the Advanced ZCatalog Tutorial. You can find them by searching on www.zope.org. -- Steve Alexande

[Zope] re: Meta Type Registry

2000-07-22 Thread Steve Alexander
ollector in the near future. Now, we might want to consider a product naming registry to address the problem of product names that clash... -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope maillist - [E

[Zope] Re: Meta Type Registry

2000-07-22 Thread Steve Alexander
Steve Alexander wrote: Andrew Kenneth Milton wrote: Is there a Product Builders meta-type registry somewhere? I can see things getting messed up in the near future as the number of products proliferates and meta-types start to clash. I note that the management screens' "add&

Re: [Zope] re: Meta Type Registry

2000-07-23 Thread Steve Alexander
Andrew Kenneth Milton wrote: +[ Steve Alexander ]- | Andrew Kenneth Milton wrote: | | Is there a Product Builders meta-type registry somewhere? | | I can see things getting messed up in the near future as the number of | products

[Zope] ZClasses to RDBMS

2000-07-25 Thread Steve Alexander
a job for ZPatterns: http://www.zope.org/Members/pje/ZPatterns Most people find ZPatterns a bit difficult to get started with. It is also alpha-release software, so *caveat emptor*. Read the ZPatterns wiki too. http://www.zope.org/Members/pje/Wikis/ZPatterns/HomePage -- Steve Alexander Software

[Zope] Re: Where should votes be posted? (was: Your feedback on datetime)

2000-07-25 Thread Steve Alexander
popular the proposal is, in real time :-) -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related

[Zope] Re: [Zope-dev] Need for aq_base in DTML(was: Re: [Zope] Dumb DTMLquestion - existance check of an object)(was: Re: [Zope] Dumb DTMLquestion - existance check of an object)question - existance check of an object)(was: Re: [Zope] Dumb DTML question - existance check of an object)

2000-07-26 Thread Steve Alexander
L? dtml-with "PARENTS[-1]" only dtml-if "_.hasattr(object, what)" ...stuff... /dtml-if /dtml-with Not tested, but it looks right to me. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net _

[Zope] Re: Unique id product

2000-07-28 Thread Steve Alexander
On 2 July, 2000 Steve Alexander wrote: If you just want ids that are unique to a folder, try the following algorithm (taken originally from the Discussion object code in the PTK). The variable "self" is the one passed to the constructor method of a particular Python class, and

[Zope] Re: Displaying Lines? was: form to a email in a correct

2000-07-28 Thread Steve Alexander
t;_.string.join(lines_property, '\n')" -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Re

Re: [Zope] dtml-in question

2000-08-01 Thread Steve Alexander
-aware, set the catalog's indexes as appropriate to your multiple conditions, and use the catalog to do your query and your counting and batching of results. It ought to be much faster too. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net

[Zope] Pasting renderable

2000-08-01 Thread Steve Alexander
I don't think it is just Renderable ZClasses. Can you paste ZClass instances at all in Zope 2.2.0? See my message in Zope-Dev: http://lists.zope.org/pipermail/zope-dev/2000-July/006238.html -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net

re: [Zope] Client.py

2000-08-09 Thread Steve Alexander
this: h.connect((self.host, self.port)) to this: h.connect(self.host, self.port) I believe this is already fixed in Zope CVS. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope maillist - [EMAIL PROTECTED] http

[Zope] Re: [Zope-dev] RE: Request for Comment: Zope API naming convention

2000-08-09 Thread Steve Alexander
Chris McDonough wrote: Please make comments by Wednesday April 16. Jim Plenty of time... :-) Especially considering that the next Wednesday April 16 is in 2003. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net

Re: [Zope] List

2000-08-10 Thread Steve Alexander
. name: combine args l1, l2 return map( (lambda x,y:(x,y)), l1, l2) and the dtml dtml-in "combine(list1, list2)" dtml-var sequence-key - dtml-var sequence-item /dtml-in You can also do this: dtml-in list1 dtml-var sequence-item - dtml-var "list2[_['sequence-number']-1]" br

Re: [Zope] ZClass inheriting from image question

2000-08-11 Thread Steve Alexander
mbers/lalo/Renderable-ZClass -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://list

[Zope] The date in Dutch

2000-08-18 Thread Steve Alexander
e(lambda x,y: y.r(x), replace_regexes, datestring) -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTM

[Zope] The date in Dutch

2000-08-18 Thread Steve Alexander
ef D_date(datestring): return reduce(lambda x,y: y(x), replace_regexes, datestring) -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No

[Zope] The date in Dutch - last time!

2000-08-18 Thread Steve Alexander
Ok... this is the last time. You can put a line: del replacements just after the for loop, and save a tiny amount of memory. This might be a useful optimisation if you're dealing with a very large list of words to replace. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat

[Zope] The date in Dutch - really last time!

2000-08-18 Thread Steve Alexander
fns.append( eval("lambda x: replace(x, '%s', '%s')" % (e, d))) del replacements def D_date(datestring): return reduce(lambda x,y: y(x), replace_fns, datestring) -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net _

Re: [Zope] The date in Dutch

2000-08-19 Thread Steve Alexander
nything you want, so long as it is a valid zope id.) Fill in "D_date" (without the quotes) as both the python module name, and the function name. See also here: http://www.zope.org/Documentation/How-To/ExternalMethods -- Steve Alexander Software Engineer Cat-Box limited http://www.c

[Zope] Anyone tried Tomahawk

2000-08-21 Thread Steve Alexander
of maintaining an object-cache accelerated Web server. There's also http://anemone.electricc.com/ for real-time reporting. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org

[Zope] Re: Stupid SiteAccess Question

2000-08-23 Thread Steve Alexander
installations. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org

[Zope] Re: Can't compare apples to apples. (document_id != id_of_my_document)

2000-08-24 Thread Steve Alexander
ere are lots of legacy programs that rely on some ids being methods, so the odd cases won't be changed for a while yet. The general answer is to use a special function that calls the value if it is callable. You have a choice here. These are equivalent. dtml-if "_['document_id'] == 'apples'"

[Zope] Re: ZCatalog - OR'ing on different columns (indices)

2000-08-25 Thread Steve Alexander
package. (There will be a new version of this, renamed DataSkin addons released this weekend.) You could also modify CatalogAwareness.py to make an object aware of several catalogs at once. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net

Re: [Zope] how to keep stuff out of undo

2000-08-30 Thread Steve Alexander
, and subobjects of those as tracks. Then, only a small amount of data gets rewritten on each transaction. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo

Re: [Zope] Slow zope.org?

2000-09-02 Thread Steve Alexander
ethan mindlace fremen wrote: Short term, we will soon have a mirror of zope.org, which should reduce the possibility of slowdown. What kind of mirroring? Something static, or something clever using ZEO? -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net

Re: [Zope] Could someone explain this DateTime behaviour to me?

2000-09-05 Thread Steve Alexander
') 2000/09/02 12:49:48.326 GMT+2 bobobase_modification_time fmt="%Y-%m-%d %H:%M" 2000-09-02 12:49 --- What version of Zope are you using? Various timezone bugs in DateTime.py were fixed in the latest version of Zope. -- Steve

Re: [Zope] 'showREQUEST' or 'show_REQUEST' ?

2000-09-11 Thread Steve Alexander
a DTML Method with REQUEST anywhere in the id. Actually, the method gets added, but I cannot edit it. I haven't found out why yet. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope maillist - [EMAIL PROTECTED

Re: [Zope] restrictedTraverse - yay! :-)

2000-09-15 Thread Steve Alexander
dtml-var "restrictedTraverse('slash/delimited/path').absolute_url()" -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cr

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

2000-09-21 Thread Steve Alexander
a 404 to those that don't match. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists

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

2000-09-21 Thread Steve Alexander
on a particular permission or property, then I think you'll need to patch part of Zope, probably HTTPRequest.py. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman

Re: [Zope] standard_error_message confusion

2000-09-22 Thread Steve Alexander
). Whassup? In the latter case, does Anonymous have rights to view your standard_error_message? -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No c

Re: [Zope] standard_error_message confusion

2000-09-22 Thread Steve Alexander
Danny William Adair wrote: Unfortunately, yes he does. Time to step through your site in the debugger then. Or, instrument HTTPRequest.py and HTTPResponse.py to see what is getting called when. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net

Re: [Zope] Problem with properties in inherited ZClasses

2000-09-23 Thread Steve Alexander
acquisition. You might also want to look at Shane Hathaway's Acquisition Explainer, an external method to show how acquisition works, that also demonstrates use of the aq_* attributes. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net

Re: [Zope] Help - Weird stuff.

2000-09-30 Thread Steve Alexander
this in Zope 2.2.2, linux. Can you describe a simple case that has the problem? -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope

Re: [Zope] ZPatterns

2000-12-16 Thread Steve Alexander
it. But I must add that I have never used zPatterns, This is all from how I understand the documentation, the Wiki etc combined with my limited knowledge of computer science. Max, I'm extremely impressed! When I first read through your explanation, I figured you were a regular ZPatt

Re: [Zope] ZPatterns

2000-12-17 Thread Steve Alexander
Steve Alexander wrote: You've described the Model-View relationship. The Controller part is where ZPatterns gets interesting; you can use SkinScript to do a load of validation on your data, all in one place, in a fairly specific and declarative language, which gets applied on commiting

Re: [Zope-dev] Methods through the Web (security?)

2000-05-18 Thread Steve Alexander
those URLs that are for public viewing. The one on port 8081 (for example) responds to any request that makes sense to map onto an object or attribute. The same scheme can be applied to FTP -- you choose whether a particular FTP server presents the "public" view, or the "developer&q

Re: [Zope-dev] Methods through the Web (security?)

2000-05-18 Thread Steve Alexander
"neat and tidy" public-viewable website, and a developer site that is viewable only within my network's DMZ. -- Steve Alexander Software Engineer Cat-Box limited ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev

Re: [Zope-dev] Methods through the Web (security?)

2000-05-18 Thread Steve Alexander
ge the objects could collect these all into one place, so as the manager of an object, you can decide what is allowed to be seen via which protocols. -- Steve Alexander Software Engineer Cat-Box limited ___ Zope-Dev maillist - [EMAIL PROTECTED] http://li

Re: [Zope-dev] Q2: ZCatalog Intelligent Objects

2000-05-22 Thread Steve Alexander
, you need to define standards for getting appropriate text for indexing from you content objects, then apply these standards to your site. The query/predicates stuff in ZPatterns looks like it will be much better than this... when it lands :-) -- Steve Alexander Software Engineer Cat-B

Re: [Zope-dev] Q2: ZCatalog Intelligent Objects

2000-05-22 Thread Steve Alexander
Chris Withers wrote: Steve Alexander wrote: In PTK, PortalContent-derived classes have the method def SearchableText(self): "text for indexing" So, if I get this correctly, Catalog will index both attributes and methods(that have only the self argument?) with the

Re: [Zope-dev] Zope 2.1.6 DateTime bug: daylight saving time not handled -- with patch

2000-05-29 Thread Steve Alexander
. I believe it is the version that will be in Zope 2.2 -- 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

Re: [Zope-dev] Repeating a piece of HTML code

2000-06-02 Thread Steve Alexander
r.gif" height=15 width=15 /dtml-in Replace movie_rating with the variable that represents the movie rating. What about dtml-var "'*' * movie_rating" ? -- Steve Alexander Software Engineer Cat-Box limited ___ Zope-Dev maillist - [EMAIL

Re: [Zope-dev] Repeating a piece of HTML code

2000-06-02 Thread Steve Alexander
Steve Alexander wrote: Shane Hathaway wrote: dtml-in expr="_.range(0, movie_rating)" img SRC="star.gif" height=15 width=15 /dtml-in Replace movie_rating with the variable that represents the movie rating. What about dtml-var "'*' * movie_rating" ?

Re: [Zope-dev] Using string idiom in dtml

2000-06-02 Thread Steve Alexander
Another slightly different idiom is: dtml-var """'img src="foo.gif"' * 12""" It isn't very SGML-like though. Jim Sanford wrote: You've got my vote. Being able to use """ would solve alot of my dtml coding headaches. Jim Sanfor

Re: [Zope-dev] Common Icons or Free Icon collection

2000-06-26 Thread Steve Alexander
know what the license is for them, and I don't know if they are the right size. Take a look at Gnome's icons too. Again, you'd best check out the sizes and license. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev

[Zope-dev] Prototyped folders?

2000-06-28 Thread Steve Alexander
as there was a problem with it under Zope 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 cross posts or HTML encoding! ** (Related

Re: [Zope-dev] Racks and Specialists Simplified

2000-06-28 Thread Steve Alexander
have had trouble making sense of it all, so I wrote it not only for the community, but DC and myself as well. :-) I just looked over the ZPatterns Wiki for Shane's explanation, but I can't find it. If it isn't there (hiding somewhere), perhaps I can add it from Shane's original email? -- Steve

[Zope-dev] ZTopic displays wrong tabs

2000-06-28 Thread Steve Alexander
rnised the !--#var ...-- to dtml-var ... along the way.) To get the full effect, you'd need to do a similar trick with the other dtml files in ZTopic. Any takers for a full patch? Or, is there a better way of doing this that I don't know about? -- Steve Alexander Software Engineer Cat-Box limited http:/

Re: [Zope-dev] ZTopic displays wrong tabs

2000-06-28 Thread Steve Alexander
Steve Alexander wrote: BODY BGCOLOR="#FF" LINK="#99" VLINK="#55" dtml-with "_.namespace(URL='editForm')" dtml-var manage_tabs /dtml-with pEdit catalog search criterion number dtml-var "index+1" on

[Zope-dev] adding attributes to a python product

2000-06-29 Thread Steve Alexander
instances updated as I use them ? I can't find the right method or whatever in the ZODB on-line docs, or in the source. Thanks for any help. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist - [EMAIL

Re: [Zope-dev] Product Data Storage

2000-06-30 Thread Steve Alexander
ot;etc (Product Settings)" as a subfolder of control panel. -- 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] ZPatterns Specialist Question

2000-07-03 Thread Steve Alexander
a particular ZPatterns Specialist object in Zope. I think you're getting your levels of abstraction confused with your meta-levels of abstraction :-) -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist - [EMAIL

Re: [Zope-dev] Help needed: why is this DTML not working in zope 2 ?

2000-07-04 Thread Steve Alexander
Steve Alexander wrote: Gilles Lavaux wrote: Argh!!! no, I made a typo error : it was !--#var image_name--.the syntax was good. Ok, I will use the new syntax in my new sites. But for my old site, I will not modify my ~500 dtml methods, except if there is a way to automate

Re: [Zope-dev] Help needed: why is this DTML not working in zope 2 ?

2000-07-04 Thread Steve Alexander
Steve Alexander wrote: An external method for automated change from old syntax to new syntax follows. * Use at your own risk * No warranty implied or given * Use on a copy of your main Zope site * Back up data.fs three times before starting * Not guarenteed not to spin your

Re: [Zope-dev] How to use document templates

2000-07-05 Thread Steve Alexander
://hive.beehive.de/Beehive/www.beehive.de/Zope/ZClassTutorialEnglish_html Also, take a look at the Zope documentation project. http://zdp.zope.org Furthermore, there's a tutorial that comes packaged with the latest 2.2 beta versions of Zope. You might like to try that, too. -- Steve Alexander Software

Re: [Zope-dev] More comments on ZPatterns

2000-07-09 Thread Steve Alexander
instances suport this propertysheet. An "appropriate InjectionFolder" is one that lies in the acquisition path of your instances. [postscript: I only realized this stuff a couple of days ago, when I started using ZPatterns on a project :-) ] -- Steve Alexander Software Engineer Cat-B

[Zope-dev] error adding specialist

2000-07-11 Thread Steve Alexander
def manage_addRack(self, id, title='', REQUEST=None): and is effectively getting called as: instance.manage_addRack(some __FactoryDispatcher__, id='defaultRack') I'm not sure whether the method intended to get an unbound method rather than a bound one, or whether "id" needs

[Zope-dev] Re: error adding specialist

2000-07-11 Thread Steve Alexander
Ins.py to this: return apply(getattr(product, method), args, kwargs) Hopefully I'll have a release out before the ZPatterns chat Friday, though. Great. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope

[Zope-dev] Designing with ZPatterns

2000-07-11 Thread Steve Alexander
and triggers and so forth. Then, when you want a new one, it gets constructed by some sort of wizard. Or, is the answer "whichever seems most appropriate" ? Thanks. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net __

[Zope-dev] ZPatterns -- trigger add events not working

2000-07-11 Thread Steve Alexander
to the trigger. Strangely, the call to _objectChanging() comes before the call to _objectAdding(). Is this a bug, or is it the expected behaviour? Thanks. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev

Re: [Zope-dev] ZPatterns -- trigger add events not working

2000-07-11 Thread Steve Alexander
an exception raised in _objectChanging(): File /lib/python/ZClasses/ZClass.py, line 466, in createInObjectManager File /lib/python/OFS/ObjectManager.py, line 258, in _setObject File /lib/python/AccessControl/Role.py, line 393, in manage_setLocalRoles Looks like you're right -- manage_setLocalRoles.

Re: [Zope-dev] ZPatterns -- trigger add events not working

2000-07-11 Thread Steve Alexander
ing half the picture :-) ? You could have a flag in DataSkin instances called _has_been_added. It is initially cleared. It gets set when manage_afterAdd is called on it. The DataSkin sends an _objectChanging event only if the _has_been_added flag is set. -- Steve Alexander Software Engineer Cat-Box li

Re: [Zope-dev] ZPatterns -- trigger add events not working

2000-07-12 Thread Steve Alexander
Steve Alexander wrote: You could have a flag in DataSkin instances called _has_been_added. It is initially cleared. It gets set when manage_afterAdd is called on it. The DataSkin sends an _objectChanging event only if the _has_been_added flag is set. Of course, the name of the attribute

Re: [Zope-dev] External Method Missery

2000-07-12 Thread Steve Alexander
nav_tree(start=PARENTS[-2])" Or otherwise, provide a client for it: dtml-var "nav_tree(this(), PARENTS[-2])" As for why this is the case... I have other things to do this morning, so I won't go rooting around in the DTML source just now. [ Although, it sure is tempting :-) ] --

[Zope-dev] Re: Another mystery for you ;-)

2000-07-12 Thread Steve Alexander
an Acquisition Wrapper misunderstanding :-) http://www.zope.org/Members/michel/Projects/Interfaces/AcquisitionWrappedObject Use the aq_self or aq_parent attribute to do your comparisons to get your object out of its magic acquisition wrapper. -- Steve Alexander Software Engineer Cat-Box

Re: [Zope-dev] Re: Another mystery for you ;-)

2000-07-12 Thread Steve Alexander
the aq_base attribute, not the aq_self attribute, as the aq_self attribute could itself be wrapped. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo

Re: [Zope-dev] Re: Another mystery for you ;-)

2000-07-12 Thread Steve Alexander
in their Product, though. -- 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] External Method Missery

2000-07-12 Thread Steve Alexander
se it like this: dtml-var "external_method(this(),...other args..." ? -- 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

  1   2   3   4   5   6   >