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
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

[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] 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

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

2000-07-12 Thread Steve Alexander
Steve Alexander wrote: "Phillip J. Eby" wrote: This would explain why you only get a change event, since if add happens after change, it is ignored. I'm curious how the change event is getting called first, since... Oh. I'll bet I know what it is. It'

[Zope-dev] ZPatterns: Errors in triggered methods + patch

2000-07-12 Thread Steve Alexander
dvantage of insulating other Agents from one particular Agent's problems. -- 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 cr

[Zope-dev] Re: ZPatterns: Errors in triggered methods + patch

2000-07-12 Thread Steve Alexander
Steve Alexander wrote: Latest ZPatterns release. Zope 2.2b4. If I raise an error in an external method that is called by a GenericTrigger, I sometimes get a strange log message: various bits snipped I've put the call to each Agent's "change observed" event in a try-ex

Re: [Zope-dev] Beginning Zope User

2000-07-13 Thread Steve Alexander
is the minimum I'd need in order to be able to answer your question correctly. Also, if you ask on [EMAIL PROTECTED], others who might have a similar problem will benefit from any answer. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net

Re: [Zope-dev] ZPatterns: missing docstring in getItem()

2000-07-13 Thread Steve Alexander
xy roles, and local roles mean in the context of ZPatterns? Thanks. (Of course, if any other ZPatterns gurus can answer that...) -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist - [EMAIL PROTECTED] http://l

Re: [Zope-dev] External Method Missery

2000-07-13 Thread Steve Alexander
TML method? These are all methods, and therefore you'd expect the "self" object to be the object the methods are subobjects of. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist - [EMAIL PROTECTED] h

[Zope-dev] ZPatterns: BTree folder w/ customizer support

2000-07-13 Thread Steve Alexander
e, except that PlugInContainer is made to derive from BTreeFolder rather than Folder. Of course, that creates a dependency that you need the BTreeFolder product in order to use ZPatterns. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___

Re: [Zope-dev] ZPatterns: BTree folder w/ customizer support

2000-07-13 Thread Steve Alexander
Steve Alexander wrote: I want to combine Shane Hathaway's BTreeFolder product with ZPatterns to create a "BTree folder w/ Customizer support". snip! Instead, why not make PlugInContainer a mix-in class, and have concrete classes for PlugInFolder and PlugInB

Re: [Zope-dev] Uploading a ImageFile

2000-07-13 Thread Steve Alexander
ed image object from "self", and fills it with image data. You'll want to replace "self" with that same reference you replaced it with in the last line. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net __

Re: [Zope-dev] ZPatterns: missing docstring in getItem()

2000-07-13 Thread Steve Alexander
ce of whether to put their methods that are called by GenericTriggers in try-except blocks, if it doesn't matter if the trigger fails. But it is generally assumed that triggers need to run without exceptions for the application to work consistently. -- Steve Alexander Software Engineer Cat-Box limited ht

[Zope-dev] Making Folders callable

2000-07-14 Thread Steve Alexander
mething like this: args = (len(args)0 and args[0] or self,) + tuple(args[1:]) Discussion welcomed. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/list

[Zope-dev] Re: ZCallable

2000-07-15 Thread Steve Alexander
mentioned on [EMAIL PROTECTED] a few days back? IIRC, ZRenderable lets you choose what method you want __call__ to forward to, whereas ZCallable always chooses the method index_html, if it exists. -- Steve Alexander Software Engineer Cat-Box limited ht

Re: [Zope-dev] Optimization and speed

2000-07-15 Thread Steve Alexander
some part of the page is slow to load? -- 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] Optimization and speed

2000-07-15 Thread Steve Alexander
eginning stream-oriented output. """ Looks like it's more that just a tweak, though :-( -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope

Re: [Zope-dev] Optimization and speed

2000-07-15 Thread Steve Alexander
ata) So, you could set output headers and cookies as needed, then, before the rest of the processing on your page, have a dtml-call "RESPONSE.write('the top of the page')". Then again, I've never tried this. YMMV and all that. (*off to help cook... won't be reading email for a while*)

[Zope-dev] ZPatterns: Coad Object Models

2000-07-17 Thread Steve Alexander
only read the Acknowledgements at the front :-) -- 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] Redirecting from the manage interfaces.

2000-07-19 Thread Steve Alexander
that it returns a wrapped RESPONSE object. -- 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] getting request variables values

2000-07-20 Thread Steve Alexander
Leonardo Kenji Shikida wrote: here it is. Try using dtml-var "REQUEST['SSLL_CLIENT_IEMAIL']" instead. Kenji SSL_CLIENT_IEMAIL [EMAIL PROTECTED] -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net __

Re: [Zope-dev] getting request variables values

2000-07-21 Thread Steve Alexander
environ=self.environ + if environ.has_key(key): + return environ[key] other=self.other if other.has_key(key): if key=='REQUEST': return self return other[key] -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___

Re: [Zope-dev] getting request variables values

2000-07-21 Thread Steve Alexander
Steve Alexander wrote: However, looking in the code, it starts off by looking in "other", and doesn't look in "environ" at all. I suggest a patch to go right after the method's docstring: def __getitem__(self,key, default=_marker, # Any spe

Re: [Zope-dev] getting request variables values

2000-07-21 Thread Steve Alexander
Steve Alexander wrote: My question is "why was __getitem__ of HTTPRequest.py designed this way?". Is there a good reason that it filters the keys according to membership of a standard-cgi-keys list, or whether they start with 'HTTP_' ? Would there be any disadvantage t

[Zope-dev] DateTime.py

2000-07-23 Thread Steve Alexander
latter behaviour. If I specify the time more precisely, I get the current behaviour. Another approach would be to make _.DateTime('2000-07-23') mean Midday, GMT rather than Midnight, local time. That would give the latter behaviour for most timezones at most times; the exceptions being places near t

Re: [Zope-dev] DateTime.py -- ignore the patch

2000-07-23 Thread Steve Alexander
Steve Alexander wrote: This is particularly apparent in the current DateTime.py, because its strftime method just interprets the internal representation of the time as GMT, whatever. We can fix this easily: *** lib/python/DateTime/DateTime.py Sun Jul 23 20:03:05 2000 --- lib

Re: [Zope-dev] DateTime.py -- ignore the patch

2000-07-23 Thread Steve Alexander
Steve Alexander wrote: No, no, no! Ignore the patch, it is a placebo :-/ I should read these things back more carefully... The bit about reimplementing time.strftime() in DateTime.py still holds though. In brief, though -- and hopefuly clearer this time: If you format DateTimes using

Re: [Zope-dev] Incorrect Padding?

2000-07-24 Thread Steve Alexander
the auth argument and re-whack your site. (Warning... this is certainly a nasty security hole. Be sure to get rid of the logging afterwards.) -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist - [EMAIL PR

Re: [Zope-dev] Incorrect Padding?

2000-07-24 Thread Steve Alexander
Chris Withers wrote: Steve Alexander wrote: My guess is that the argument "auth" passed to validate() has some trailing characters. Either that, or WebWhacker passed just "Basic " as an auth string. Yuk, that sounds like a Zope bug. Collector time with patch? A jud

[Zope-dev] ts_regex.gsub() doesn't work with compiled expressions

2000-07-24 Thread Steve Alexander
uot;regs" safely would help? I don't know. I can also get it to work if I pass in the unwrapped compiled regular expression: ts_regex.gsub(Z._r, '\\1BAR', '%Z foo %Z') 'BAR foo BAR' Is doing this in Zope threadsafe? -- Steve Alexander Softwa

Re: [Zope-dev] DateTime formatting with strftime: patch

2000-07-24 Thread Steve Alexander
being formatted. Steve Alexander wrote: Here's a working patch to make formatting of a DateTime instance work as generally expected, when you use dtml-var "_.DateTime()" fmt="%d %G %z" or whatever. It could be made more efficient by compiling the two regex (regexe

Re: [Zope-dev] Incorrect Padding?

2000-07-24 Thread Steve Alexander
Chris Withers wrote: Chris Withers wrote: Steve Alexander wrote: My guess is that the argument "auth" passed to validate() has some trailing characters. Either that, or WebWhacker passed just "Basic " as an auth string. Yuk, that sounds like a Zope

Re: [Zope-dev] Incorrect Padding?

2000-07-24 Thread Steve Alexander
There's a base64.decodestring() between the strip and the split. Leading and/or trailing spaces make base64 strings invalid. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist - [EMAIL PROTECTED]

Re: [Zope-dev] Incorrect Padding?

2000-07-24 Thread Steve Alexander
ints :-) I'll stick it into the Collector. I looked over the RFC, and Bad Request seems to be the best response code. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net *** lib/python/AccessControl/User.py.original Mon Jul 24 20:31:40 2000 --- lib/python/AccessControl/User.pyMon

Re: [Zope-dev] Incorrect Padding?

2000-07-24 Thread Steve Alexander
Martijn Pieters wrote: On Mon, Jul 24, 2000 at 08:56:54PM +0100, Steve Alexander wrote: I've attached a patch to lib/python/AccessControl/User.py. If there are no suggestions of improvements, or complaints :-) I'll stick it into the Collector. I looked over the RFC, and Bad Request

Re: [Zope-dev] ZPatterns

2000-07-26 Thread Steve Alexander
terns". Unfortunately, there is a problem with that particular search right now. (I've already passed the details on to the zope webmaster.) Also, look here: http://www.zope.org/Members/pje/ZPatterns -- Steve Alexander Software Engineer Cat-Box limited http://www.c

Re: [Zope-dev] Quickie on ZPatterns ... I promise :)

2000-07-27 Thread Steve Alexander
ware. Use triggers to index and unindex the object from a catalog. You'll probably want to store the catalog in Specialist. By the way, Phillip Eby has released a new development snapshot: http://www.zope.org/Members/pje/ZPatterns/ZPatterns-0-4-1snap1.tgz/view I'll be trying it later today. -- Steve

Re: [Zope-dev] Re: [Zope] Bi-directional update of Data.fs

2000-07-27 Thread Steve Alexander
where an object has been modified in data.fs? Not too well I'd guess... :( Don't see why not. When an object is changed, the new object is just appended to the end of Data.fs. Unless you use undo, or you pack the Data.fs. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat

Re: [Zope-dev] Re: [Zope] Bi-directional update of Data.fs

2000-07-27 Thread Steve Alexander
Chris Withers wrote: Steve Alexander wrote: Don't see why not. When an object is changed, the new object is just appended to the end of Data.fs. Unless you use undo, or you pack the Data.fs. You missed the problem ;-) Technically, there is no problem... Logically, what happens

Re: [Zope-dev] Bi-directional update of Data.fs

2000-07-27 Thread Steve Alexander
: http://www.zope.org/Members/jim/ZODB/ReverseDiffVersioning -- 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

[Zope-dev] Re: [Zope-PTK] ZPatterns Documentation

2000-07-27 Thread Steve Alexander
n path, then ask it for a data manager to bind with. Once this is done, the skin remains bound to that manager until the next such occurrence.""" Pretty clear, except the end -- next what occurrence? The next time the data skin is retrieved from a Zope object? So, every time a dataskin

Re: [Zope-dev] Need for aq_base in DTML(was: Re: [Zope] Dumb DTML 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-dev] Re: [Zope-PTK] PROPOSAL: Splitting ZPatterns into two products

2000-07-28 Thread Steve Alexander
that the work of updating the developer documentation on the Wikis, and putting "historical documents", like the IRC chat transcript, in a context where they make sense. I'm willing to spend some time on the documentation work. -- Steve Alexander Softwa

Re: [Zope-dev] Re: [Zope-PTK] PROPOSAL: Splitting ZPatterns into two products

2000-07-28 Thread Steve Alexander
idea. Hopefulyl Pluggins could get into the Zope core ASAP. I reckon they might be quite useful to ZMI mark II :-) What is ZMI? -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist - [EMAIL PROTECTED]

[Zope-dev] Renaming ZClass instances in 2.2.0

2000-07-29 Thread Steve Alexander
the Collector, and I can't see this problem reported. -- 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

[Zope-dev] ZPatterns: bug in DataSkins.py

2000-07-30 Thread Steve Alexander
I'm using ZPatterns 0.4.1snap1. DataSkins.py line 377 method _v_currentSheets(self,_v_dm_=_v_dm_) l.extend(list(sp._PropertySheetsFor(client))) However, the variable "client" isn't declared elsewhere. -- Steve Alexander Software Engineer Cat-Box limited http://www.c

Re: [Zope-dev] ZPatterns: bug in DataSkins.py

2000-07-30 Thread Steve Alexander
Steve Alexander wrote: I'm using ZPatterns 0.4.1snap1. DataSkins.py line 377 method _v_currentSheets(self,_v_dm_=_v_dm_) l.extend(list(sp._PropertySheetsFor(client))) However, the variable "client" isn't declared elsewhere. ...and when I replace it with "self&quo

Re: [Zope-dev] ZPatterns: bug in DataSkins.py

2000-07-30 Thread Steve Alexander
"Phillip J. Eby" wrote: At 08:07 PM 7/30/00 +0100, Steve Alexander wrote: Steve Alexander wrote: I'm using ZPatterns 0.4.1snap1. DataSkins.py line 377 method _v_currentSheets(self,_v_dm_=_v_dm_) l.extend(list(sp._PropertySheetsFor(client))) However, the variab

[Zope-dev] ZPatterns design question

2000-07-30 Thread Steve Alexander
more generally: Adding sheets to a "party" seems to be one of the important ZPatterns ideas. What is the best way of implementing it, using the simple case of two specialists as an example? Thanks. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net

Re: [Zope-dev] ZPatterns design question

2000-07-31 Thread Steve Alexander
"Phillip J. Eby" wrote: At 11:09 PM 7/30/00 +0100, Steve Alexander wrote: Let's say I have an AddressBook specialist. Why? :) Seriously, what is the function of "address book" in your application? Is it to find people in general? Or...? As in your example

[Zope-dev] Re: Collector #1457: DateTime strftime() -- still broken

2000-07-31 Thread Steve Alexander
[EMAIL PROTECTED] wrote: Steve Alexander reported: This is a patch to address collector item 1455. Here's a working patch to make formatting of a DateTime instance work as generally expected, when you use dtml-var "_.DateTime()" fmt="%d %H %z" or wh

Re: [Zope-dev] Calling parent class method when method is overridden in current class?

2000-08-03 Thread Steve Alexander
DTMLDocument.index_html(). Perhaps DTMLDocument.index_html(self) ? The only problem is if you need to call a base-class method from a derived ZClass. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist

Re: [Zope-dev] Server Side Trojan Issue really dead?

2000-08-07 Thread Steve Alexander
le in Zope is that the roles and permissions system is very expressive, and it is complex to know when one user has lower permissions than another. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist - [EMAIL PROTE

Re: [Zope-dev] Server Side Trojan Issue really dead?

2000-08-07 Thread Steve Alexander
Steve Alexander wrote: When I write a product that allows users to edit executable content, I have an extra responsibility to collaborate with the new security model. I reckon that it is up to the ZWiki product to change ownership appropriately if the page is edited. The zope security

Re: [Zope-dev] Server Side Trojan Issue really dead?

2000-08-07 Thread Steve Alexander
KevinL wrote: Steve Alexander wrote: However... the zope security system could help with this. Here's an ill thought out idea for your consideration :-) Have a function that takes two sets of permissions, and returns the intersection of these sets. Then, use some sort of local

Re: [Zope-dev] Re: Replaceable Property question

2000-08-07 Thread Steve Alexander
. However, because various nice things in PTK and projects using ZPatterns depend on the replaceable property, I can see quite a lots of patched 2.2.x installations until the 2.3.x series is released :-/ I wonder what other features are planned for 2.3... -- Steve Alexander Software Engineer Cat-Box

Re: [Zope-dev] Acquisition Confusion :S

2000-08-07 Thread Steve Alexander
Chris Withers wrote: Steve Alexander said he was going to have a think, but I haven't heard anything since he mentioned it... I'll have to start running a Kibo-bot soon :-) I've got as far as defining the difference between the two acquisition behaviours. Warning: The following goes

Re: [Zope-dev] Bug in DateTime.py

2000-08-08 Thread Steve Alexander
time in the strftime function (DateTime.py line 1379) it got shifted out and - hoppla - we have gone one day back in time. :) Use the patch here: http://classic.zope.org:8080/Collector/1457/view -- Steve Alexander Software Engineer Cat-Box

Re: [Zope-dev] Acquisition Confusion :S

2000-08-08 Thread Steve Alexander
of (B of (A of (Y of (X of /))) Security p0 / b a / a b y x / x / / Checks That makes for a lot of security checks. There are possible optimisations, though. But this starts to get even more complicated. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net

[Zope-dev] ZCatalog brains

2000-08-09 Thread Steve Alexander
ops. Am I missing something? -- 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] ZPatterns Question

2000-08-09 Thread Steve Alexander
ven though the original ZClass was not defined to have this propertysheet. But I'd also have to add sheets to each applicablt instance, as in learning point 3 above. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev

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-dev] Acquisition Confusion :S

2000-08-14 Thread Steve Alexander
Chris Withers wrote: Steve Alexander wrote: That makes for a lot of security checks. There are possible optimisations, though. But this starts to get even more complicated. Does that mean it won't work, would be very slow, or both? ;-) It will work. It will be slower. I think Evan

Re: [Zope-dev] hmmm.. wierd permission issues with getPersistentItemIDs()...

2000-08-14 Thread Steve Alexander
as no docstring. Is that still significant under the new security model? Does the user you're running the method as have the permission "Access contents information" ? Looks like you may have uncovered a Zope security bug in dtml-in ... sort :-/ How could we test this further? -- Steve Ale

[Zope-dev] Extending dtml entity syntax

2000-08-17 Thread Steve Alexander
::= Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar | Extender Name ::= (Letter | '_' | ':') (NameChar)* However, we could consider dtml-foo.bar.baz; instead. I can't think of a nice alternative to mean dtml-/foo/bar/baz; "from the root, traverse as follows".

[Zope-dev] patch for dtml-foo:bar:baz;

2000-08-17 Thread Steve Alexander
the root object. This patch is against Zope 2.2.1b1. It relies on the restrictedTraverse() api. A 2.1.x version would be possible, but would be rather messy. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net *** DT_HTML.py.old --- DT_HTML.py *** *** 98,104

Re: [Zope-dev] ZPatterns and Strategies Patterns etc....

2000-08-18 Thread Steve Alexander
processing and python stuff. The former project involves workflow and flexible presentation. -- 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

[Zope-dev] Xron and security

2000-08-22 Thread Steve Alexander
ture version of Zope, XronUser could be included as one of these bootstrap users by simply writing to a file. -- Steve Alexander Software Engineer Cat-Box ltd http://www.cat-box.net ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailm

Re: [Zope-dev] Xron and security

2000-08-23 Thread Steve Alexander
Loren Stafford wrote: Thanks, Steve. I have few questions below 8-) (I'm always better with questions than answers.) -- Loren From: "Steve Alexander" [EMAIL PROTECTED] Hi Loren, I'd be glad to listen to well considered proposals for how Xron should handl

[Zope-dev] Logs stamped with wrong time

2000-08-23 Thread Steve Alexander
timezone to the end. I guess time.gmtime should become time.localtime. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross po

[Zope-dev] Logs stamped with wrong time

2000-08-23 Thread Steve Alexander
I've put this in the Collector: http://classic.zope.org:8080/Collector/1550/view -- 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

[Zope-dev] bug in CatalogAwareness?

2000-08-23 Thread Steve Alexander
and perhaps a comment # input output # None'/' # '' '/' # '/' '/' # 'foo' '/foo' # '/foo' '/foo' This is now in the Collector: http://classic.zope.org:8080/Collector/1551/view -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net __

Re: [Zope-dev] Logs stamped with wrong time

2000-08-24 Thread Steve Alexander
Dieter Maurer wrote: Steve Alexander writes: Zope 2.2 CVS checkout August 21. I'm in the BST timezone, which is GMT+1. All the entries in Z2.log are one hour behind where they should be. 127.0.0.1: - - [23/Aug/2000:15:15:39 +0100] "POST /fmr/mail_test/manage_edit

Re: [Zope-dev] bug in CatalogAwareness?

2000-08-24 Thread Steve Alexander
Shane Hathaway wrote: Steve Alexander wrote: In lib/python/Products/ZCatalog/CatalogAwareness.py, the method "url": def url(self, ftype=urllib.splittype, fhost=urllib.splithost): """Return a SCRIPT_NAME-based url for an object."""

[Zope-dev] Re: ZPatterns.. Property sheets... once and for all. ;-)

2000-08-24 Thread Steve Alexander
ns[a_])" dtml-if "option.has_key('help')" td align="right" valign="top" dtml-var "HelpSys.button(HelpSys, REQUEST, product=option['help'][0], topic=option['help'][1])" /td /dtml-if/dtml-with -- Steve Alexan

  1   2   3   4   5   >