RE: [Zope] Underscore Caracter

2000-09-05 Thread Dennis Nichols
, but according to "Python Essential Reference" p. 117, it is indeed present in the string module: replace( str, old, new [,max] ) -- Dennis Nichols [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailma

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

2000-09-15 Thread Dennis Nichols
arse Error Invalid attribute name, "absolute_url", for tag dtml-var "restrictedTraverse(choice)" absolute_url ... -- Dennis Nichols [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zo

Re: [Zope] can I suppress newlines/whitespace in DocumentTemplates?

2000-09-19 Thread Dennis Nichols
mply by "delaying" the closing ''. For example, dtml-var "_['start'].strftime('%m/%d%y')" dtml-if "start != end" -dtml-var "_['end'].strftime('%m/%d%y')" /dtml-if -- Dennis Nichols [EMAIL PROTECTED] ___

[Zope] BTreeFolder (easy?) questions

2000-09-27 Thread Dennis Nichols
1. Can I blithely use BTreeFolder in place of Folder without loss of functionality? 2. Can I successfully inherit from BTreeFolder in ZClasses (assuming that I uncomment registerBaseClass, which has been commented out in all BTreeFolder versions so far)? -- Dennis Nichols [EMAIL PROTECTED

[Zope] AUTHENTICATED_USER (or something) making me crazy

2000-10-07 Thread Dennis Nichols
. dtml-if "AUTHENTICATED_USER=='Anonymous User'" Guest dtml-else dtml-var AUTHENTICATED_USER /dtml-if Thanks. Maybe I shouldn't work on Saturdays. Zope 2.2.2 roughly, Python 1.5.2, RH 6.2 -- Dennis Nichols [EMAIL

[Zope] fmt=structured-text seems wrongish

2000-10-09 Thread Dennis Nichols
I can just fix this within my own product(s) by returning various fields in a manner something like this: Stored as STX, return as HTML return str(StructuredText.HTML(self.description)) Stored as STX, return as raw, or stored as HTML, return as HTML return self.description and so o

Re: [Zope] how to include Flash/SWF objects in Zope website?

2000-10-17 Thread Dennis Nichols
, you might want to also include the free Moock "fpi" (f.lash p.layer i.nspector) found at http://www.moock.org/webdesign/flash/detection/moockfpi/ -- Dennis Nichols [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://list

Re: [Zope] Re: [Zope-book] Re: [Zope] Zope Book Beta

2000-10-31 Thread Dennis Nichols
? That would be very cool. Thanks! -- Dennis Nichols [EMAIL PROTECTED] ___ 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] Zope.org down?

2000-11-01 Thread Dennis Nichols
% of that on its busiest days. This would not be remarkable except that the response times from zope.org seem to usually be 10 seconds or so. I am on a T-1 line and 13 hops and 80ms from the zope.org server. -- Dennis Nichols [EMAIL PROTECTED

[Zope] re-releasing mysqlUserFolder 0.5 ??

2000-11-02 Thread Dennis Nichols
. -- Dennis Nichols [EMAIL PROTECTED] ___ 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-announce http://lists.zope.org

[Zope] overriding manage_beforeDelete in a CatalogAware Product

2000-11-16 Thread Dennis Nichols
pealing for guidance. Zope 2.2.2, Python 1.5.2, RH 6.2, etc Thanks! -- Dennis Nichols [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - h

Re: [Zope] overriding manage_beforeDelete in a CatalogAware Product

2000-11-17 Thread Dennis Nichols
my product's __init__ routine, that sets the catalog for the rest of the object's existence, not just the __init__ routine. And so I don't have to set it again in any edit routine, nor do I have to worry about the object's deletion. Tested and working. Many thanks. -- D

Re: [Zope] Pseudo E-Mail Address validation

2000-11-21 Thread Dennis Nichols
in the r'...' string. import re def wellformedEmail(self, address): """ return true if email address appears to be well formed """ m = re.search(r'^[_a-z0-9-]+(\.[_a-z0-9-]+)*@([0-9a-z][0-9a-z-]*[0-9a-z]\.)+[a-z]{2,3}$', address, re.IGNORECASE) return m !=

Re: [Zope] DTML source

2000-11-23 Thread Dennis Nichols
, level+1)" dtml-call "REQUEST.set('NodeToShow', _['sequence-item'])" dtml-var display_menu dtml-call "REQUEST.set('level', level-1)" /dtml-if /dtml-in /dtml-if Not my finest piece of coding, but maybe it will help. -- Dennis Nichols [EMAI

[Zope] Zope, squid, the Host header

2000-11-25 Thread Dennis Nichols
ss of whatever to a name and some aliases. Does this mean that I should have a line 111.222.111.222 myhost.com myhost or is something else implied. 3.1 meaning "http_port myhost.com:8070" ? 3.2 this means? All help sincerely appreciat

[Zope] The inverse of REQUEST.set is ??

2000-12-04 Thread Dennis Nichols
I can do dtml-call "REQUEST.set('something','whatever')" Having done that, I'd like to be able delete 'something' and I do NOT mean just dtml-call "REQUEST.set('something','')" I want it gone! Come on, humor me... is there a good way to do this? -- Dennis Nich

[Zope] why I don't use popen2 any more

2000-12-20 Thread Dennis Nichols
contains arbitrary input from users. Wasn't true for me but it might be for you. A curiosity: the description in Python Essential Reference says getoutput uses os.popen2() to execute the command, but I was too lazy^H^H^H^H busy to investigate further. -- Dennis Nichols [EMAIL PROTECTED

Re: [Zope] Newbie Questions

2001-01-08 Thread Dennis Nichols
parameter for the edit mode to pre-populate the element. dtml-var company_id missing -- Dennis Nichols [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Rel

[Zope] IEMethod (was: Can Zope ... )

2001-01-09 Thread Dennis Nichols
, what and where is IEMethod? Zope.org search turns up nothing. -- Dennis Nichols [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http

RE: [Zope] Design/DTML question

2001-01-10 Thread Dennis Nichols
ce to have a sequence-midpoint ? But then somebody would surely want a sequence-first-quartile and so on :-) -- Dennis Nichols [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross pos

RE: [Zope] Design/DTML question

2001-01-10 Thread Dennis Nichols
At 1/10/01 01:22 PM, Timothy Wilson wrote: On Wed, 10 Jan 2001, Dennis Nichols wrote: Or, if you insist that dates flow down the columns like I do, you could use this untested revision of Max's solution stuff removed This doesn't seem to work. The if statement only evaluates to true

Re: [Zope] log file.

2001-01-11 Thread Dennis Nichols
TTP%j" %c %b "%f" "%B") LOGFORMAT (%S: %j %u [%d/%M/%Y:%h:%n:%j] "%j%w%r" %c %b "%f" "%B") -- Dennis Nichols [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.or

Re: [Zope] Calling other frames (OT)

2001-01-15 Thread Dennis Nichols
then you can't bookmark that particular content. What to do about that? -- Dennis Nichols [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists

Re: [Zope] dtml-var expr=maand missing=1???

2001-01-16 Thread Dennis Nichols
ddtml-call "REQUEST.set('maand',1)"/dtml-unless -- Dennis Nichols [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/m

Re: [Zope] Stopping a dtml-in

2001-01-17 Thread Dennis Nichols
that is more of a correction than it is an extension. Now just don't get me started on "_['index-whatever']" :-) -- Dennis Nichols [EMAIL PROTECTED] ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/z

[Zope-dev] extending objectValues() and objectIds() or ?

2000-10-24 Thread Dennis Nichols
about this one possible solution, would be: How can I extend Zope to give me a list of objects qualified by more than just the meta_type? Guidance gleefully gathered. Thanks! -- Dennis Nichols [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL

Re: [Zope-dev] extending objectValues() and objectIds() or ?

2000-10-25 Thread Dennis Nichols
Method (install the PythonMethods product first) called say, publishableObjectValues that does that: paramself/param # functions that returns publishable objects result = [] for o in self.objectValues(): if o.isPublishable(): result.append(o) return result -- Dennis Nichols [EMAIL PROTECTED

Re: [Zope-dev] Fault tolerance and thread-loss

2000-12-18 Thread Dennis Nichols
PServer.py: http://www.zope.org/Members/4am/postfixbug Or, even more, http://www.zope.org/Members/4am/postbugfix -- Dennis Nichols [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No c