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

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

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

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

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

[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
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] 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] 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] Re: ZPatterns.. Property sheets... once and for all. ;-)

2000-08-24 Thread Steve Alexander
product=option['help'][0], topic=option['help'][1])" /td /dtml-if/dtml-with/dtml-if Replace the dtml-comment with dtml-if manage_options and /dtml-comment with /dtml-if. I'm putting this in the Collector. -- Steve Alexander Softwa

[Zope-dev] ZPatterns bug: Specialist does not implement _PropertySheetsFor(client)

2000-08-24 Thread Steve Alexander
/propertysheets/manage from working. It also stops _v_currentSheets from returning all the sheets a Dataskin might have. Phillip, is this fixed in your internal version? If not, I'll add the method over the weekend. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net

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

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

[Zope-dev] ZPatterns transaction bug

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

[Zope-dev] Bug in error logging in Catalog

2000-08-27 Thread Steve Alexander
ccessfully ' 'attempted to uncatalog an object ' 'with a uid of %s. ' % str(uid))) -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist - [EMAIL PROTE

Re: [Zope-dev] bug in CatalogAwareness?

2000-08-27 Thread Steve Alexander
should be changed to this: def __url(self): return '/'+string.join(self.getPhysicalPath(), '/') -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman

[Zope-dev] New method for ZCatalog: recatalog_object

2000-08-27 Thread Steve Alexander
HEN OBJECT ADDED, CHANGED CALL Catalog.recatalog_object(self, self.getPathAsString()) WHEN OBJECT DELETED CALL Catalog.uncatalog_object(self.getPathAsString()) Any comments? -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maill

Re: [Zope-dev] Compatibility issues: ZPatterns 0.4.2,LoginManager 0.9.0

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

[Zope-dev] inheritedAttribute

2000-08-28 Thread Steve Alexander
erride methods inherited from python classes because\n" " unbound methods gotten from Python classes cannot be called with \n" " extension class instances. \n" Is there some documentation of this on zope.org or dev.zope.org that I've missed? Thanks. -- Steve Ale

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

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

Re: [Zope-dev] ZPatterns bug with patch

2000-08-28 Thread Steve Alexander
"Phillip J. Eby" wrote: At 10:22 AM 8/27/00 +0100, Steve Alexander wrote: I've fixed this by adding a test to the start of __set_attr__ of DataSkins.py: def __set_attr__(self,name,val,_v_dm_=_v_dm_): + if name=='id' and val==self.__dict__['id']: +

Re: [Zope-dev] ZPatterns bug with patch

2000-08-28 Thread Steve Alexander
at all! I think what I meant was this: try: dm = self.__dict__[_v_dm_] except KeyError: if name=='id': if self.__dict__.has_key('id') and val==self.__dict__.['id']: return else: self.__dict__['id']=val return raise -- Steve

Re: [Zope-dev] ZPatterns bug with patch

2000-08-28 Thread Steve Alexander
Steve Alexander wrote: What rubbish! I didn't mean that at all! I think what I meant was this: try: dm = self.__dict__[_v_dm_] except KeyError: if name=='id': if self.__dict__.has_key('id') and val==self.__dict__.['id']: return else

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

2000-08-29 Thread Steve Alexander
ror occurs because the rename method redirects to: http://puffin.cat-box.net:7080/test/Customizers_ Pressing the "customizers" tab yields the url: http://puffin.cat-box.net:7080/test/Customizers_/Customizers_/manage_workspace -- Steve Alexander Software Engineer Cat-Box limited ht

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

2000-09-01 Thread Steve Alexander
Steve Alexander wrote: Phillip J. Eby wrote: Now, I can provide *unfiltered* linkage by direct delegation, but this would mean dropping the ability to selectively take only certain attributes or sheets from the parent. But I suppose that, compared to dropping the capability

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

2000-09-01 Thread Steve Alexander
this out by today, but then I discovered SkinScript, and also real work got in the way :-) I'll try and get it finished this weekend. Perhaps some of that can be reused as help in the management screens. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net _

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

2000-09-01 Thread Steve Alexander
, in _indexedSearch TypeError: (see above) This seems to be a simple type incompatibility error. Attached is a patch that fixes this. In Collector, http://classic.zope.org:8080/Collector/1586/view -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net *** Catalog.py.orig

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

2000-09-02 Thread Steve Alexander
er changes timezone or you enter daylight savings time. This is more of an issue near to the GMT zone. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/lis

[Zope-dev] ZPatterns: transaction bug

2000-09-03 Thread Steve Alexander
While updating a load of DataSkins all together using a ZCatalog, I got this error: 2000-09-03T08:03:13 PANIC(300) ZODB A storage error occurred in the last phase of a two-phase commit. This shouldn't happen. The application may be in a hosed state, so transactions will not be allowed to

[Zope-dev] ZPatterns: transaction bug

2000-09-03 Thread Steve Alexander
the top-level transaction that it knows about. Then again, I'm new to the way ZODB handles transactions, so I might well be wrong here. More later... -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist

[Zope-dev] ZPatterns transactions bug

2000-09-03 Thread Steve Alexander
anything more at present. I did note in ZODB/Transaction.py this comment. Perhaps it is relevant? # - For every jar for which we've called tpc_begin on, # we either call tpc_abort or tpc_finish. It is OK # to call these multiple times, as the storage is # required to ignore th

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

2000-09-03 Thread Steve Alexander
uest_name, 'string')" dtml-call "nips.manage_changeProperties(REQUEST)" /dtml-let form action=index_html input type=submit value="OK" /form /center You can use ZPatterns from DTML alone quite easily. How

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

2000-09-03 Thread Steve Alexander
tring')" dtml-call "nips.manage_changeProperties(REQUEST)" And, of course, another dtml-let closing tag here. /dtml-let -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist -

  1   2   3   4   >