Re: [Zope-dev] Possible TransparentFolders bug?

2001-01-25 Thread Shane Hathaway

Itai Tavor wrote:
 The TransparentFolders Product seems to make everything
 transparent... not just transparent folders.
 
 Zope/
  Folder_A/
  method_A
  Folder_B/ (transparent folder)
  method_B
 
 I'd expect the only effect of the transparent folder to be that
 /Folder_A/method_B would work. But /method_A and /method_B also work.
 Tested in Zope 2.3b2 and 2.3b3 with TransparentFolders 0.3.

Hmm... I can't get mine to do that.  You're sure Folder_A isn't
transparent also?  Did you ever have a transparent folder by that name,
in that same place?  (Indicating a bug)

Otherwise leaving things as they are, if you put a transparent folder at
the root of the site, do you still get the same behavior?

What path does it tell you if you visit
http://yourserver:8080/method_{A|B}/manage_main?

Shane

___
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/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] Passing arguments to DTML Methods

2001-01-25 Thread Espen Sorbye Frederiksen

Sorry this, possibly, very trivial question:

How do you pass on variables to a DTML Method.
If I would use a python method I would use dtml-call "pythonmethod(var1,
var2)". This does not work with DTML Methods. First of all why? Secondly
how is it possible to get around the problem?

Hope someone kindly could answer my question,

Espen


___
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/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Passing arguments to DTML Methods

2001-01-25 Thread Dieter Maurer

Espen Sorbye Frederiksen writes:
  How do you pass on variables to a DTML Method.
  If I would use a python method I would use dtml-call "pythonmethod(var1,
  var2)". This does not work with DTML Methods. First of all why? Secondly
  how is it possible to get around the problem?
DTML Methods have 2 positional and arbitrary many keyword parameters.
The positional arguments are "client" and "REQUEST".
"client" is an object (or tuple of objects or None).
All attributes of "client" are put into the DTML namespace.
"REQUEST" is a mapping object (or None), all keys of this
object are put into the DTML namespace.
All keyword arguments are put into the DTML namespace.

Thus, you can use:

  dtml-XXX "method(_.None,_,param1=value1, param2=value2, ...)"

In this use: "_.None" is the client and "_" the mapping object.
You must pass the "_" as otherwise, you break the DTML namespace
chain.

An alternative, probably easier:

 dtml-let param1="value1"
   param2="value2"
   
   dtml-XXX method
 /dtml-let

i.e. you bring the arguments into the DTML namespace (with the "let")
and then let DTML automatically pass the namespace to your method.



Dieter

___
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/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Passing arguments to DTML Methods

2001-01-25 Thread Espen Sorbye Frederiksen

Thank you Dieter!

Espen

On Thu, 25 Jan 2001, Dieter Maurer wrote:

 Espen Sorbye Frederiksen writes:
   How do you pass on variables to a DTML Method.
   If I would use a python method I would use dtml-call "pythonmethod(var1,
   var2)". This does not work with DTML Methods. First of all why? Secondly
   how is it possible to get around the problem?
 DTML Methods have 2 positional and arbitrary many keyword parameters.
 The positional arguments are "client" and "REQUEST".
 "client" is an object (or tuple of objects or None).
 All attributes of "client" are put into the DTML namespace.
 "REQUEST" is a mapping object (or None), all keys of this
 object are put into the DTML namespace.
 All keyword arguments are put into the DTML namespace.

 Thus, you can use:

   dtml-XXX "method(_.None,_,param1=value1, param2=value2, ...)"

 In this use: "_.None" is the client and "_" the mapping object.
 You must pass the "_" as otherwise, you break the DTML namespace
 chain.

 An alternative, probably easier:

  dtml-let param1="value1"
param2="value2"
  
dtml-XXX method
  /dtml-let

 i.e. you bring the arguments into the DTML namespace (with the "let")
 and then let DTML automatically pass the namespace to your method.



 Dieter



___
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/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Server seems to stop responding.

2001-01-25 Thread Chris McDonough

Andy, look at the documentation in z2.py for the "-M" switch that writes out
a debug log of method accesses.

Then visit http://www.zope.org/Members/mcdonc/HowTos/DEBUG-LOG

It tells you how to track down hangs via stuff in your debug log.

- Original Message -
From: "Andy McKay" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 25, 2001 5:08 PM
Subject: [Zope-dev] Server seems to stop responding.


 OS: Win2K
 Zope: 2.2.4b1, using ZServer direct
 Site, large catalog roughly 20,000 items, database size 839 MB.

 Problem:

 Zope's running quite happily, and then all of a sudden will stop
responding
 to incoming requests. A restart and its fine. There is no memory leak
 (memory usage is very low), no other resources consuming space. All log
 files say nothing. There seems to be no obvious trigger or thing to cause
 it, only time (or use).

 Im at wits end to figure out:
 a) where to start debugging (apart from log files, Control Panel debug
etc)
 and
 b) solution...

 Any help will get my undying gratitude...

 --
   Andy McKay.




 ___
 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/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )




___
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/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope] zope + img tags + javascript

2001-01-25 Thread Aleksander Salwa

On Thu, 25 Jan 2001, Lee wrote:
 
 I *hate* image maps but I'd like to use one so  how can I add the
 details to the dtml-var imageName? I'd also like to add various bits

Probably you need dtml-var "imageName.tag(attrib='value', attr2='v2')".


___
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/mailman/listinfo/zope-dev )




Re: [Zope] Re: Some help required but no sarcastic comments this time pleas ee

2001-01-25 Thread Stephane Bortzmeyer

On Wednesday 24 January 2001, at 17 h 49, the keyboard of [EMAIL PROTECTED] 
wrote:

   I'll believe it when I see it.
 
   Then I'll laugh when I see it crash.

You rabid Unix bigot, how do you dare being so sarcastic?



___
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/mailman/listinfo/zope-dev )




Re: [Zope] Add this and possible bug, was Re: [Zope] Add this to Wish list

2001-01-25 Thread Jerome Alet

On Thu, 25 Jan 2001, Jerome Alet wrote:

 [PARENT] = which moves the selected objects up to the parent folder.

Of course this is just a convenience for Cut  Paste, but saves some
clicks.

bye,

Jerome Alet


___
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/mailman/listinfo/zope-dev )




Re: [Zope] Did I miss some major change in Z SQL Methods ?

2001-01-25 Thread Hannu Krosing

Curtis Maloney wrote:
 
 Green things,
 
 I have a few methods poking about that just don't seem to make sense
 
 A Z SQL Method ( Returner.sql.getDetails ) which simply contains:
 
 SELECT * FROM Returner WHERE ReturnerID=dtml-sqlvar User type="int"
 
 Which returns everything as expected.  The I have a Python Method which
 refers to it, simply wrapping it up, and taking the first (of what should be
 only one anyway) element.  It contains the following:
 ( Returner.getDetails(self, User) )
 
 return self.sql.getDetails(User=User)[0]
 
 Now.. for some reason, the following throws complaints about not being able
 to find ANY of the fields in the row:
 
 dtml-with "Returner.getDetails(Returner, User=12)"
   dtml-var fieldName
 /dtml-with

what does :

 dtml-in "[Returner.getDetails(Returner, User=12)]"
   dtml-var sequence-item html_quote
 /dtml-in

return ?


Hannu

___
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/mailman/listinfo/zope-dev )




[Zope] Zope PTK Wizard

2001-01-25 Thread Priya Ramkumar

Hi

I am trying to create a wizard in my portal to enable users to store
information. In addition to the features of the already existing Document
Wizard, I would like my Wizard to have more features like information about
the category of the document, etc. I created a file called "Userdocument.py"
with a method "addUserdocument" which will be called to add a new document.
I have also added the new entry to the PTKBases  PTKDemos __init__.py. But
as soon as Zope starts, it gives this error


2001-01-25T06:07:07 ERROR(200) Zope Couldn't import Products.PTKDemo
Traceback (innermost last):
  File /export/usr/local/Zope-2.2.4-src/lib/python/OFS/Application.py, line
397,
in import_products
(Object: string)
  File
"/export/usr/local/Zope-2.2.4-src/lib/python/Products/PTKDemo/__init__.py
", line 159
 PTKBase.Userdocument = Userdocument
^
SyntaxError: invalid token

Could anyone please tell me how to create custom wizards and to register
them?

Thanks.
Priya



___
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/mailman/listinfo/zope-dev )




[Zope] a little problem - $1 reward!

2001-01-25 Thread Lee

Hi there,

If someone could have a quick look at this I would really appreciate it!
I cannot for the life of me understand this... I have a DTML method
taking in parameters for use with sendmail, which when I *display*
appear correct but when I *send* are altered slightly. I know where the
problem lies (it's obvious) but I can't see what the problem is.

Here's my DTML method:

dtml-var standard_html_header
dtml-call "REQUEST.set('recipients',[])"
  dtml-in "REQUEST.form.items()"
dtml-if expr="_['sequence-key'] in
('message','sender','senderEmail','subject')"
  input type="hidden" name="dtml-var sequence-key"
value="dtml-var sequence-item"
dtml-else
  dtml-call "recipients.append(_['sequence-key'])"
/dtml-if
  /dtml-in

dtml-sendmail mailhost="MailHost"
  To: dtml-var "_.string.join(recipients,'@cs.strath.ac.uk,
')"@cs.strath.ac.uk
  From: dtml-var sender 
  Reply-To: dtml-var senderEmail
  Subject: dtml-var subject
  X-Mailer: ZAPHOD Mail Client V1.0

  dtml-var message

/dtml-sendmail

h2Cheers, dtml-var sender!/h2
  pYour message has been sent./p

^
My problem lies with the To/From parts in the sendmail. When the
message has been sent...

-=-==--=-= I should see:

Subject:  Hello
Date: Thu, 25 Jan 2001 08:30:11 +
From: Lee
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED], [EMAIL PROTECTED]

-=-==--=-= but I see:

Subject:  Hello
Date: Thu, 25 Jan 2001 08:30:11 +
From: [EMAIL PROTECTED]  why is the @cs.strath.ac.uk still
appended?
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED], [EMAIL PROTECTED]

dtml-var sender gives me 'Lee'

Clearly, there is a problem with :
To: dtml-var "_.string.join(recipients,'@cs.strath.ac.uk,
')"@cs.strath.ac.uk
From: dtml-var sender 

i.e the @cs.strath.ac.uk is still lingering... but why? without the
'@cs.strath.ac.uk' at the end of the var the last email address would
not be complete i.e. it be "lreilly".

even when i put another tag in place of from, e.g. 'X-Mailer:' is still
renders From='[EMAIL PROTECTED]'. I know it's asking a lot but can
anyone tell me what the problem is? I'm confused and the coffee isn't
helping anymore!

- Thanks,

Lee

--
Lee Reilly
mailto:[EMAIL PROTECTED]

````

HAVE SKILLS; WILL TRAVEL.

I'm currently looking for an internship in the USA
in the field of web development. Ideally, I'm looking
for a placement for 3 to 18 months. Can you help?

More details, my resume, etc. @
http://homepages.strath.ac.uk/~aeu97172/

/shameless plug


___
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/mailman/listinfo/zope-dev )




Re: [Zope] Re: Some help required but no sarcastic comments this time pleas ee

2001-01-25 Thread corey

And upon Thursday of January 25, the illustrious Stephane Bortzmeyer spake thusly...
 On Wednesday 24 January 2001, at 17 h 49, the keyboard of [EMAIL PROTECTED] 
 wrote:
 
I'll believe it when I see it.
  
Then I'll laugh when I see it crash.
 
 You rabid Unix bigot, how do you dare being so sarcastic?
 


  grin

  Yeah -- this comming from someone using exmh mua on a linux debian 
  box!   (c8=

  X-mailer... the true sign of manhood.


Beers!

Corey

--
"Windows was created to keep the stupid people away from Unix.
An "MS advocate" is therefore already beneath contempt."
  - Tom Christiansen


___
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/mailman/listinfo/zope-dev )




Re: [Zope] Re: Some help required but no sarcastic comments this time pleas ee

2001-01-25 Thread Chris Withers

Michelle Walden wrote:
 
 You could now recommend W2k as a much more stable *than either 95 or NT4*
 alternative that does USB support out of the box.

Than NT4? I don't think so

Chris

___
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/mailman/listinfo/zope-dev )




Re: [Zope] a little problem - $1 reward!

2001-01-25 Thread M.

Lee,
This is more than likely your mailer doing this, not Zope.
try:
dtml-sendmail mailhost="MailHost"
  To: dtml-var "_.string.join(recipients,'@cs.strath.ac.uk,
')"@cs.strath.ac.uk
  From: "dtml-var sender"
  Reply-To: dtml-var senderEmail
  Subject: dtml-var subject
  X-Mailer: ZAPHOD Mail Client V1.0

  dtml-var message
/dtml-sendmail

Notice the quotes around the dtml-var sender

On 25 Jan 2001 08:52:07 +, Lee wrote:
 i.e the @cs.strath.ac.uk is still lingering... but why? without the
 '@cs.strath.ac.uk' at the end of the var the last email address would
 not be complete i.e. it be "lreilly".


___
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/mailman/listinfo/zope-dev )




Re: [Zope] Q's about Zope security model tweaking

2001-01-25 Thread Chris Withers

J B Bell wrote:
 
 I want to do authentication for a whole subset of the site (indeed, its
 entire public face really), but don't want a huge userfolder build from NIS.
 nisUserFolder doesn't seem like the right solution since I only want to use
 nis if they don't auth in the customary fashion.

Sounds like a job for LoginManager :-)

cheers,

Chris

___
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/mailman/listinfo/zope-dev )




[Zope] Editors [OT]

2001-01-25 Thread Chris Withers

Tres Seaver wrote:
 
 I'm liking it a lot -- the last reason to even consider using
 emacs is gone :)

Hmmm... interesting, maybe it's time to find a new editor...

My wishlist would be:

- Runs nicely on NT4
- Syntax highlighting for Python, C, XML, HTML (and, although this is dreamworld
stuff, DTML ;-)
- FTP or WebDAV editing built in as standard (or alternative solution, like
cadaver making it work ;-)
- Regular Expression search  replace
- search  replace of multiple files

and my dream list would be:

- can run multiple copies of the editor at once
- class browser for python, with expand/collapse of code (like the editor for
Python 2)

Any ideas?

cheers,

Chris

___
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/mailman/listinfo/zope-dev )




Re: [Zope] Did I miss some major change in Z SQL Methods ?

2001-01-25 Thread peter bengtson

Curtis,
Doing Z SQL Methods (SELECT) is really easy with DTML.
When you've got a working example of it in DTML, then we can perhaps help
you to convert that into Python Method code.

Cheers, Peter


 On Thursday 25 January 2001 16:50, Evan Simpson wrote:
  From: "Curtis Maloney" [EMAIL PROTECTED]
 
   A Z SQL Method ( Returner.sql.getDetails )
 
  [snip]
 
   dtml-with "Returner.getDetails(Returner, User=12)"
 dtml-var fieldName
   /dtml-with
 
  You want either:
 
  dtml-in "Returner.getDetails(Returner, User=12)"
dtml-var fieldName
  /dtml-in
 

 No...if you'd paid attention, the Returner.getDetails() is a python method
 that calls Returner.sql.getDetails() and does the [0] slicing.

 Besides, I've also tried ditching the Python Method, and doing the slicing
in
 my DTML, and it STILL doesn't work.  This is what has me so confused.
Even
 removing most of the complexity, the problem persists.

  Cheers,
 
  Evan @ digicool  4-am

 Have a better one,
 Curtis Maloney

 ___
 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/mailman/listinfo/zope-dev )



___
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/mailman/listinfo/zope-dev )




Re: [Zope] a little problem - $1 reward!

2001-01-25 Thread Lee

Hi,

Thanks for your response. "dtml-var sender" gives me...

From: "Lee"@cs.strath.ac.uk

... in the received message. A previous version I had of this script gave
me the correct results (From: God, Reply-To: [EMAIL PROTECTED]) so I'm
pretty-sure that's it's a problem with '@cs.strath.ac.uk' being appended.

As far as I can tell, the new version is doing exactly the same thing only
using a collection of recipients and python's string_join. H...

The virtual buck is still here!

Thanks,

Lee

"M. Adam Kendall" wrote:

 Lee,
 This is more than likely your mailer doing this, not Zope.
 try:
   From: "dtml-var sender"

 Notice the quotes around the dtml-var sender

--
Lee Reilly
mailto:[EMAIL PROTECTED]

````

HAVE SKILLS; WILL TRAVEL.

I'm currently looking for an internship in the USA
in the field of web development. Ideally, I'm looking
for a placement for 3 to 18 months. Can you help?

More details, my resume, etc. @
http://homepages.strath.ac.uk/~aeu97172/

/shameless plug



___
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/mailman/listinfo/zope-dev )




Re: [Zope] a little problem - $1 reward!

2001-01-25 Thread peter bengtson

Lee,

Before you move on to your DTML stuff about email address and stuff, you
should always make sure that you DON'T HAVE ANY WHITESPACE BEFORE THE MAIL
HEADERS. (sorry for the shouting, but it's a classic misstake)

Does it work "DTMLless". I.e. does it work with statically typed in email
addresses and such?
When your sendmail things works, try to work with the DTML stuff in a method
until that works. _Then_ merge the DTML and the sendmail.

Good luck!


- Original Message -
From: "Lee" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 25, 2001 8:52 AM
Subject: [Zope] a little problem - $1 reward!


 Hi there,

 If someone could have a quick look at this I would really appreciate it!
 I cannot for the life of me understand this... I have a DTML method
 taking in parameters for use with sendmail, which when I *display*
 appear correct but when I *send* are altered slightly. I know where the
 problem lies (it's obvious) but I can't see what the problem is.

 Here's my DTML method:

 dtml-var standard_html_header
 dtml-call "REQUEST.set('recipients',[])"
   dtml-in "REQUEST.form.items()"
 dtml-if expr="_['sequence-key'] in
 ('message','sender','senderEmail','subject')"
   input type="hidden" name="dtml-var sequence-key"
 value="dtml-var sequence-item"
 dtml-else
   dtml-call "recipients.append(_['sequence-key'])"
 /dtml-if
   /dtml-in

 dtml-sendmail mailhost="MailHost"
   To: dtml-var "_.string.join(recipients,'@cs.strath.ac.uk,
 ')"@cs.strath.ac.uk
   From: dtml-var sender
   Reply-To: dtml-var senderEmail
   Subject: dtml-var subject
   X-Mailer: ZAPHOD Mail Client V1.0

   dtml-var message

 /dtml-sendmail

 h2Cheers, dtml-var sender!/h2
   pYour message has been sent./p

 ^
 My problem lies with the To/From parts in the sendmail. When the
 message has been sent...

 -=-==--=-= I should see:

 Subject:  Hello
 Date: Thu, 25 Jan 2001 08:30:11 +
 From: Lee
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED], [EMAIL PROTECTED]

 -=-==--=-= but I see:

 Subject:  Hello
 Date: Thu, 25 Jan 2001 08:30:11 +
 From: [EMAIL PROTECTED]  why is the @cs.strath.ac.uk still
 appended?
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED], [EMAIL PROTECTED]

 dtml-var sender gives me 'Lee'

 Clearly, there is a problem with :
 To: dtml-var "_.string.join(recipients,'@cs.strath.ac.uk,
 ')"@cs.strath.ac.uk
 From: dtml-var sender

 i.e the @cs.strath.ac.uk is still lingering... but why? without the
 '@cs.strath.ac.uk' at the end of the var the last email address would
 not be complete i.e. it be "lreilly".

 even when i put another tag in place of from, e.g. 'X-Mailer:' is still
 renders From='[EMAIL PROTECTED]'. I know it's asking a lot but can
 anyone tell me what the problem is? I'm confused and the coffee isn't
 helping anymore!

 - Thanks,

 Lee

 --
 Lee Reilly
 mailto:[EMAIL PROTECTED]

 ````

 HAVE SKILLS; WILL TRAVEL.

 I'm currently looking for an internship in the USA
 in the field of web development. Ideally, I'm looking
 for a placement for 3 to 18 months. Can you help?

 More details, my resume, etc. @
 http://homepages.strath.ac.uk/~aeu97172/

 /shameless plug


 ___
 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/mailman/listinfo/zope-dev )



___
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/mailman/listinfo/zope-dev )




Re: [Zope] a little problem - $1 reward!

2001-01-25 Thread Erik Enge

[[EMAIL PROTECTED]]

| ... in the received message. A previous version I had of this script gave
| me the correct results (From: God, Reply-To: [EMAIL PROTECTED]) so I'm
| pretty-sure that's it's a problem with '@cs.strath.ac.uk' being appended.

And you are running with the same mailserver, on the same host?

___
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/mailman/listinfo/zope-dev )




RE: [Zope] Editors [OT]

2001-01-25 Thread Max Møller Rasmussen

From: Chris Withers [mailto:[EMAIL PROTECTED]]

Hmmm... interesting, maybe it's time to find a new editor...

Try www.ultraedit.com .

It's not free, but it ain't expensive, and I use it 12 hours/day with joy.
Has only crashed on me twice in 4 years.

regards Max M

___
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/mailman/listinfo/zope-dev )




Re: [Zope] Editors [OT]

2001-01-25 Thread Dario Lopez-Kästen

Textpad www.textpad.com
EditPluswww.editplus.com

I am using TextPad mostly now. Of course, given the choice, I'd much rather
use BBEdit or Alpha on a Mac

/dario

- Original Message -
From: "Chris Withers" [EMAIL PROTECTED]
To: "Tres Seaver" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, January 25, 2001 11:08 AM
Subject: [Zope] Editors [OT]


 Tres Seaver wrote:
 
  I'm liking it a lot -- the last reason to even consider using
  emacs is gone :)

 Hmmm... interesting, maybe it's time to find a new editor...

 My wishlist would be:

 - Runs nicely on NT4
 - Syntax highlighting for Python, C, XML, HTML (and, although this is
dreamworld
 stuff, DTML ;-)
 - FTP or WebDAV editing built in as standard (or alternative solution,
like
 cadaver making it work ;-)
 - Regular Expression search  replace
 - search  replace of multiple files

 and my dream list would be:

 - can run multiple copies of the editor at once
 - class browser for python, with expand/collapse of code (like the editor
for
 Python 2)

 Any ideas?

 cheers,

 Chris

 ___
 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/mailman/listinfo/zope-dev )



___
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/mailman/listinfo/zope-dev )




[Zope] z2.py

2001-01-25 Thread Wolfgang Strobl

While analyzing a problem, I had a quick look into z2.py, and 
frankly, I don't understand the logic behind the so called "required 
path hackery for the win32 binary distribution".

This hack unnecessarily makes the z2.py location dependant. The 
installer rewrites the z2.py source, inserting the absolute path of 
the zope home into a variable, from where it is used in getting 
some python folders in front of the python path. 

IMHO, this is nonsense.  A few lines down in z2.py, the absolute 
path to the zope home is constructed from sys.arg and os.cwd 
anyway.  Why not use that?

I removed the superflous stuff from the hack and moved the 
remaining lines down a few lines, now it comes right after the 
definition of  'here' and reads:

import sys
sys.path.insert(0, '%s/bin/lib' % here)
sys.path.insert(1, '%s/bin/lib/plat-win' % here)
sys.path.insert(2, '%s/bin/lib/win32' % here)
sys.path.insert(3, '%s/bin/lib/win32/lib' % here)

Works like a charm, both from a service (on win2000) and 
standalone.

ws


___
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/mailman/listinfo/zope-dev )




Re: [Zope] Editors [OT]

2001-01-25 Thread Wolfgang Strobl

On 25 Jan 2001, 10:08  Chris Withers wrote:

 Tres Seaver wrote:
  
  I'm liking it a lot -- the last reason to even consider using
  emacs is gone :)
 
 Hmmm... interesting, maybe it's time to find a new editor...

Why not use Riaan Booysens Boa Constructor IDE or Mark Hammonds 
PythonWin IDE? 

Boa: http://sourceforge.net/projects/boa-constructor/ 
Use the cvs checkout, not the 0.0.4 download from September, which is almost 
unuseable.

PythonWin: http://www.activestate.com/Products/ActivePython/

Both use the scintilla control (http://www.scintilla.org/), btw.

For pure Python work, especially for Windows specific stuff,  I prefer 
PythonWin. But for platform independent work and Zope works Boa Constructor 
looks very promising. 

It's pure Python and wxPython (i.a. wxWindows) based, it even comes with a 
first attempt of a Zope interface! I wonder that it doesn't get more publicity here. 
On the other hand, I noticed that Shane Hathaway is listed as one of the 
developers ...


 
 My wishlist would be:
 
 - Runs nicely on NT4

Well, I use Boa on Windows 2000, but I don't see any reason why it shouldn't 
run as nicely on NT4, too.

 - Syntax highlighting for Python, C, XML, HTML (and, although this is
 dreamworld stuff, DTML ;-) - 

Well, it does Python and DTML. :-)

Scintilla comes with syntax colouring for many languages and seems pretty 
extendable. I haven't checked the above list, though. 


 FTP or WebDAV editing built in as
 standard (or alternative solution, like cadaver making it work ;-) -
 Regular Expression search  replace - search  replace of multiple
 files

I've used the builtin ftp client for editing my Zope sites a few times for editing 
zope. It's a bit rough at the edges, but usable.

 
 and my dream list would be:
 
 - can run multiple copies of the editor at once

Well, it's possible to run multiple copies of Boa. It's only usefull when working 
on different projects concurrently, though. Usually I prefer opening many files in 
a single instance.

 - class browser for python, with expand/collapse of code (like the
 editor for Python 2)

That's a scintilla feature, so it comes for free (so to speak) with both PythonWin 
and Boa Constructur (and SciTE, Scintillas own tiny editor, of course).

- http://www.scintilla.org/SciTE.html


--
  o  ( [EMAIL PROTECTED] (+49 2241) 14-2394
 /\*   GMD mbH   #include 
   _`\ `_===  Schloss Birlinghoven, std.disclaimer
__(_)/_(_)___.-._  53754 Sankt Augustin, Germany 

___
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/mailman/listinfo/zope-dev )




Re: [Zope] DCOracle with Python 2.0?

2001-01-25 Thread Oleg Broytmann

On Wed, 24 Jan 2001, Michelle Walden wrote:
 I'm having zero success getting DCOracle to build with any version of Python
 using the included Makefile.pre.in files.  Anyone with a working DCOracle
 install on RedHat 6.1 who might be willing to offer suggestions or donate
 binaries will receive many thanks from my programmer.

   I've built it on Debian 2.2. Makefiles require some tweakings...

Oleg.

 Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
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/mailman/listinfo/zope-dev )




Re: [Zope] Editors [OT]

2001-01-25 Thread Oleg Broytmann

On Thu, 25 Jan 2001, Chris Withers wrote:
 Hmmm... interesting, maybe it's time to find a new editor...
 My wishlist would be:

 - Runs nicely on NT4
 - Syntax highlighting for Python, C, XML, HTML (and, although this is dreamworld
 stuff, DTML ;-)
 - FTP or WebDAV editing built in as standard (or alternative solution, like
 cadaver making it work ;-)
 - Regular Expression search  replace
 - search  replace of multiple files

   www.vim.org

Oleg.

 Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
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/mailman/listinfo/zope-dev )




Re: [Zope] Editors [OT]

2001-01-25 Thread Phil Harris

Vim, seconded apart from the FTP and WebDAV bits ;), but using cadaver
sounds like a good option.

See also http://www.zope.org/Members/philh/vim_html for a small howto on
using Vim with FTP.


- Original Message -
From: "Oleg Broytmann" [EMAIL PROTECTED]
To: "Zope Mailing List" [EMAIL PROTECTED]
Sent: Thursday, January 25, 2001 12:31 PM
Subject: Re: [Zope] Editors [OT]


 On Thu, 25 Jan 2001, Chris Withers wrote:
  Hmmm... interesting, maybe it's time to find a new editor...
  My wishlist would be:
 
  - Runs nicely on NT4
  - Syntax highlighting for Python, C, XML, HTML (and, although this is
dreamworld
  stuff, DTML ;-)
  - FTP or WebDAV editing built in as standard (or alternative solution,
like
  cadaver making it work ;-)
  - Regular Expression search  replace
  - search  replace of multiple files

www.vim.org

 Oleg.
 
  Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED]
Programmers don't die, they just GOSUB without RETURN.


 ___
 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/mailman/listinfo/zope-dev )


___
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/mailman/listinfo/zope-dev )




Re: [Zope] Editors [OT]

2001-01-25 Thread Phil Harris

I just did a search on google and came up with some interesting  Win32
versions of Vim 5.7.11:

See http://vim.sourceforge.net/bin_download/00index.txt

Since the Python and TCL interpreters are built in it should be possible to
add seamless FTP/WebDAV clients into Vim, cool!

http://vim.sourceforge.net/bin_download/gvim57ole.zip
Gvim for win32 with ole support
http://vim.sourceforge.net/bin_download/vim5.7.11-win32-perl-tcl.zip
Vim/GVim with Perl 5.6 and TCL 8.3.2 support
http://vim.sourceforge.net/bin_download/vim5.7.11-win32-perl.zip
Vim/GVim with Perl 5.6 support
http://vim.sourceforge.net/bin_download/vim5.7.11-win32-python-perl-tcl.zip
(G)Vim with Python 1.5.2, Perl 5.6, and TCL 8.3.2
http://vim.sourceforge.net/bin_download/vim5.7.11-win32-python-perl.zip
Vim/GVim with Python 1.5.2 and Perl 5.6 support
http://vim.sourceforge.net/bin_download/vim5.7.11-win32-python-tcl.zip
Vim/GVim with Python 1.5.2 and TCL 8.3.2 support
http://vim.sourceforge.net/bin_download/vim5.7.11-win32-python.zip
Vim/GVim with Python 1.5.2 support
http://vim.sourceforge.net/bin_download/vim5.7.11-win32-tcl.zip
Vim/GVim with TCL 8.3.2 support


- Original Message -
From: "Phil Harris" [EMAIL PROTECTED]
To: "Oleg Broytmann" [EMAIL PROTECTED]; "Zope Mailing List"
[EMAIL PROTECTED]
Sent: Thursday, January 25, 2001 12:43 PM
Subject: Re: [Zope] Editors [OT]


 Vim, seconded apart from the FTP and WebDAV bits ;), but using cadaver
 sounds like a good option.

 See also http://www.zope.org/Members/philh/vim_html for a small howto on
 using Vim with FTP.


 - Original Message -
 From: "Oleg Broytmann" [EMAIL PROTECTED]
 To: "Zope Mailing List" [EMAIL PROTECTED]
 Sent: Thursday, January 25, 2001 12:31 PM
 Subject: Re: [Zope] Editors [OT]


  On Thu, 25 Jan 2001, Chris Withers wrote:
   Hmmm... interesting, maybe it's time to find a new editor...
   My wishlist would be:
  
   - Runs nicely on NT4
   - Syntax highlighting for Python, C, XML, HTML (and, although this is
 dreamworld
   stuff, DTML ;-)
   - FTP or WebDAV editing built in as standard (or alternative solution,
 like
   cadaver making it work ;-)
   - Regular Expression search  replace
   - search  replace of multiple files
 
 www.vim.org
 
  Oleg.
  
   Oleg Broytmann http://www.zope.org/Members/phd/
[EMAIL PROTECTED]
 Programmers don't die, they just GOSUB without RETURN.
 
 
  ___
  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/mailman/listinfo/zope-dev )


 ___
 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/mailman/listinfo/zope-dev )


___
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/mailman/listinfo/zope-dev )




[Zope] Mozilla and Zope (Was: Re: [Zope] Editors [OT])

2001-01-25 Thread Erik Enge

[Wolfgang Strobl]

| It's pure Python and wxPython (i.a. wxWindows) based, it even comes
| with a first attempt of a Zope interface! I wonder that it doesn't
| get more publicity here.  On the other hand, I noticed that Shane
| Hathaway is listed as one of the developers ...

I though DigiCool was developing a Zope interface with Mozilla, has
this been abandoned?

___
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/mailman/listinfo/zope-dev )




Re: [Zope] Editors [OT]

2001-01-25 Thread Tom Deprez

Hi,

What about http://freshmeat.net/projects/boa-constructor/?highlight=boa ?

I heard about this yesterday from Godefroid. With some changes we perhaps
could add a Zope interface?

Tom.
- Original Message -
From: "Dario Lopez-Ksten" [EMAIL PROTECTED]
To: "Chris Withers" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, January 25, 2001 11:56 AM
Subject: Re: [Zope] Editors [OT]


 Textpad www.textpad.com
 EditPluswww.editplus.com

 I am using TextPad mostly now. Of course, given the choice, I'd much
rather
 use BBEdit or Alpha on a Mac

 /dario

 - Original Message -
 From: "Chris Withers" [EMAIL PROTECTED]
 To: "Tres Seaver" [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Thursday, January 25, 2001 11:08 AM
 Subject: [Zope] Editors [OT]


  Tres Seaver wrote:
  
   I'm liking it a lot -- the last reason to even consider using
   emacs is gone :)
 
  Hmmm... interesting, maybe it's time to find a new editor...
 
  My wishlist would be:
 
  - Runs nicely on NT4
  - Syntax highlighting for Python, C, XML, HTML (and, although this is
 dreamworld
  stuff, DTML ;-)
  - FTP or WebDAV editing built in as standard (or alternative solution,
 like
  cadaver making it work ;-)
  - Regular Expression search  replace
  - search  replace of multiple files
 
  and my dream list would be:
 
  - can run multiple copies of the editor at once
  - class browser for python, with expand/collapse of code (like the
editor
 for
  Python 2)
 
  Any ideas?
 
  cheers,
 
  Chris
 
  ___
  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/mailman/listinfo/zope-dev )
 


 ___
 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/mailman/listinfo/zope-dev )



___
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/mailman/listinfo/zope-dev )




[Zope] Unable to instantiate ZClass

2001-01-25 Thread Åsmund Hjulstad



My previous mail is further down.

I have now done a fresh install from the CVS, after the beta3 release. 

If this problem is because I am using python 2.0, then I hope someone will 
fix this. If not, am I doing something wrong.

Is everybody else using python 1.5.2?

Asmund Hjulstad



On Tuesday 23 January 2001 17:23, I wrote:
 There appears to be something wrong...

 My config:

 Zope from CVS (2001-01-23, 16:15GMT)
 Python 2.0  (yes, I know it is not supported)


 I did the following:

 In Control Panel, generate new product.
 In the new product, Added new class (filled in the blanks).

 In the root folder: Add, select the new class, entered ID, and then...

 Error Type: AttributeError
Error Value: _setId

 I have reproduced it several times, with several different CVS-versions.


 Traceback (innermost last):
   File /home/ahj/polar/zope/Zope2/lib/python/ZPublisher/Publish.py, line
 222, in publish_module
   File /home/ahj/polar/zope/Zope2/lib/python/ZPublisher/Publish.py, line
 187, in publish
   File /home/ahj/polar/zope/Zope2/lib/python/Zope/__init__.py, line 221, in
 zpublisher_exception_hook
 (Object: RoleManager)
   File /home/ahj/polar/zope/Zope2/lib/python/ZPublisher/Publish.py, line
 171, in publish
   File /home/ahj/polar/zope/Zope2/lib/python/ZPublisher/mapply.py, line
 160, in mapply
 (Object: CDClass_add)
   File /home/ahj/polar/zope/Zope2/lib/python/ZPublisher/Publish.py, line
 112, in call_object
 (Object: CDClass_add)
   File /home/ahj/polar/zope/Zope2/lib/python/OFS/DTMLMethod.py, line 189,
 in __call__
 (Object: CDClass_add)
   File /home/ahj/polar/zope/Zope2/lib/python/DocumentTemplate/DT_String.py,
 line 538, in __call__
 (Object: CDClass_add)
   File /home/ahj/polar/zope/Zope2/lib/python/DocumentTemplate/DT_With.py,
 line 133, in render
 (Object: CDClass.createInObjectManager(REQUEST['id'], REQUEST))
   File /home/ahj/polar/zope/Zope2/lib/python/DocumentTemplate/DT_Util.py,
 line 334, in eval
 (Object: CDClass.createInObjectManager(REQUEST['id'], REQUEST))
 (Info: CDClass)
   File string, line 0, in ?
   File /home/ahj/polar/zope/Zope2/lib/python/ZClasses/ZClass.py, line 522,
 in createInObjectManager
 (Object: CDClass)
 AttributeError: (see above)


 ___
 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/mailman/listinfo/zope-dev )

___
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/mailman/listinfo/zope-dev )




[Zope] .isCurrentDay strangeness

2001-01-25 Thread Michael Angelo

hi all,

i have an indexing script which highlights the modification date table cell
depending on whether the indexed object was modified today or in the past
month. however, it seems a bit flakey. todays red cells (modified today)
were objects modified on Aug 25, 2000 6:34 pm and Sep 25, 2000 5:09 pm. i am
thinking that the .isCurrentDay method is buggy. anyway, here is the
script - if i goofed maybe you can find it.

dtml-in expr="PARENTS[0].objectValues(['DTML Document','File','Folder'])"
 sort="bobobase_modification_time" reverse
  dtml-unless "_.string.find(_['id'],'index_html')==0"
  tr
 td bgcolor="#DD"a href="dtml-absolute_url;"dtml-var
title_or_id/a/td
 dtml-if "bobobase_modification_time().isCurrentDay()"
   td bgcolor="#FF8080"dtml-var bobobase_modification_time
fmt="aCommon"/td
 dtml-elif "bobobase_modification_time().isCurrentMonth()"
   td bgcolor="#BEFAB4"dtml-var bobobase_modification_time
fmt="aCommon"/td
 dtml-else
   td bgcolor="#EE"dtml-var bobobase_modification_time
fmt="aCommon"/td
 /dtml-if
 td bgcolor="#4269D6"
  small
  [a href="dtml-var URL1/dtml-var id/manage"font
color="#00"
  Edit/font/a]
  /small
 /td

  /tr
 /dtml-unless
/dtml-in

Zope overlord wisdom greatly appreciated ;-)

-mike-


___
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/mailman/listinfo/zope-dev )




[Zope] Zope gets stuck

2001-01-25 Thread Shai Berger

Hi guys,

We've repeatedly encountered a weird situation where Zope gets
stuck. Then, when we kill one of the Zope processes, it is released
and answers requests.

Has anybody encountered anything like this? I know this is a little
short on information, but we are still trying to figure more ourselves.

The stats: 

Zope version: Zope 2.2.5 (binary release, python 1.5.2, linux2-x86) 
Python version: 1.5.2 (#10, Dec 6 1999, 12:16:27) [GCC 2.7.2.3] 
System Platform: linux2 

We're using Oracle and ZOracleDA too, but this time they seem not
to be the culprits...

Thanks,
Shai.

___
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/mailman/listinfo/zope-dev )




Re: [Zope] Editors [OT]

2001-01-25 Thread Phil Harris

Boa already has a Zope interface via FTP.

- Original Message -
From: "Tom Deprez" [EMAIL PROTECTED]
To: "Dario Lopez-Ksten" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, January 25, 2001 1:23 PM
Subject: Re: [Zope] Editors [OT]


 Hi,

 What about http://freshmeat.net/projects/boa-constructor/?highlight=boa ?

 I heard about this yesterday from Godefroid. With some changes we perhaps
 could add a Zope interface?

 Tom.
 - Original Message -
 From: "Dario Lopez-Ksten" [EMAIL PROTECTED]
 To: "Chris Withers" [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Thursday, January 25, 2001 11:56 AM
 Subject: Re: [Zope] Editors [OT]


  Textpad www.textpad.com
  EditPluswww.editplus.com
 
  I am using TextPad mostly now. Of course, given the choice, I'd much
 rather
  use BBEdit or Alpha on a Mac
 
  /dario
 
  - Original Message -
  From: "Chris Withers" [EMAIL PROTECTED]
  To: "Tres Seaver" [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Sent: Thursday, January 25, 2001 11:08 AM
  Subject: [Zope] Editors [OT]
 
 
   Tres Seaver wrote:
   
I'm liking it a lot -- the last reason to even consider using
emacs is gone :)
  
   Hmmm... interesting, maybe it's time to find a new editor...
  
   My wishlist would be:
  
   - Runs nicely on NT4
   - Syntax highlighting for Python, C, XML, HTML (and, although this is
  dreamworld
   stuff, DTML ;-)
   - FTP or WebDAV editing built in as standard (or alternative solution,
  like
   cadaver making it work ;-)
   - Regular Expression search  replace
   - search  replace of multiple files
  
   and my dream list would be:
  
   - can run multiple copies of the editor at once
   - class browser for python, with expand/collapse of code (like the
 editor
  for
   Python 2)
  
   Any ideas?
  
   cheers,
  
   Chris
  
   ___
   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/mailman/listinfo/zope-dev )
  
 
 
  ___
  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/mailman/listinfo/zope-dev )
 


 ___
 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/mailman/listinfo/zope-dev )


___
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/mailman/listinfo/zope-dev )




Re: [Zope] Re: Editors [OT]

2001-01-25 Thread Åsmund Hjulstad


KWrite (the "advanced editor" that comes with KDE) also supports FTP. I just 
found out, by entering "ftp:[EMAIL PROTECTED]/" in the File Open dialog...


Åsmund Hjulstad

___
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/mailman/listinfo/zope-dev )




Re: [Zope] a little problem - $1 reward!

2001-01-25 Thread Lee

 DON'T HAVE ANY WHITESPACE BEFORE THE MAIL HEADERS. (sorry for the shouting,
 but it's a classic misstake)

I didn't realise that. Thanks.

 Does it work "DTMLless". I.e. does it work with statically typed in email
 addresses and such?

Nope, 'From:Lee' still gives me [EMAIL PROTECTED] in the received message.

 And you are running with the same mailserver, on the same host?

Yup. Here's a little example of a mail program (some might call it an email
spammer perhaps) to help me apply for some jobs. This is also why I wanted to
know if sendmail could be used for usenet postings...

dtml-var standard_html_header

dtml-sendmail mailhost="MailHost"
To: dtml-var email
From: Lee Reilly
Reply-To: [EMAIL PROTECTED]
X-Mailer: Job Spammer
Subject: dtml-var position practical training/internship position
Content-Type: multipart/mixed; boundary="138879291FA1FC8B06755CEE"

This is a multi-part message in MIME format.
--138879291FA1FC8B06755CEE
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

--138879291FA1FC8B06755CEE
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Base: "http://homepages.strath.ac.uk/~aeu9717
2/"
Content-Location: "http://homepages.strath.ac.uk/~aeu9717
2/"

html
head
titleLee Reilly/title
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"

meta name="description" content="seeking employment in the US for a period of 3
months starting in June 2001"

   meta name="keywords" content="lee, reilly, internship, web site, website,
BUNAC, summer, work, employment, Scottish, Lee Reilly"

/head

body bgcolor="#FF" text="#CCFFCC" link="#CC" vlink="#CC"
alink="#CC"
pfont color="#00" size="2" face="Arial, Helvetica, sans-serif"Dear
dtml-var name, /font/p
pfont color="#00" size="2" face="Arial, Helvetica, sans-serif"Further
  to you advertisement on dtml-var advertisement I am writing to enquire as to
whether you have any summer
  internship / practical training opportunities available for Computer Science
  graduates this summer. I am due to graduate with a BSc Hons degree in Computer

  Science in June 2001 from the University of Strathclyde, Glasgow, and from
there ... blah blah blah

/body
/html

--138879291FA1FC8B06755CEE--

/dtml-sendmail
h2Cheers big yin!/h2
pYou'll get the job ;-)/p
dtml-var standard_html_footer

This gives me the *correct* results so I can't imagine that's a problem with the
mailserver:

Subject: web developer practical training/internship position
Date: Thu, 25 Jan 2001 14:08:55 +
From:  Lee Reilly  - perfect!
Reply-To: [EMAIL PROTECTED]
To:  [EMAIL PROTECTED]

So I think it's a problem with
To: dtml-var "_.string.join(recipients,'@cs.strath.ac.uk,')"@cs.strath.ac.uk

It's now more trouble than it's worth so I'll just implement it differently.
It's quite annoying though!

Thanks for your help anyway :)

- Best regards,

Lee



___
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/mailman/listinfo/zope-dev )




Re: [Zope] ANNOUNCE: Zope 2.3.0 beta 3 released

2001-01-25 Thread Oleg Broytmann

Hi!

   Many cheers to DC people and the community!

On Wed, 24 Jan 2001, Brian Lloyd wrote:
   Zope 2.3.0 beta 3 is now available. You can download it
   from Zope.org:

   http://www.zope.org/Products/Zope/2.3.0b3/

   Finally it works for me lake a charm! (Even with python 2.0!) Thanks to
all, good guys!!!

   Now going to dive into new features (VirtualHostMonster, getId, etc...)

Oleg.

 Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
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/mailman/listinfo/zope-dev )




Re: [Zope] ZPoPyDa doesnt find the PoPy-Module

2001-01-25 Thread Axel Missbach

Thanks a lot. 
Moving the PoPymodule.so to the $ZOPE_HOME/lib/python1.5 works fine

Axel

[EMAIL PROTECTED] wrote:
 
 On Tue, Jan 23, 2001 at 07:41:45AM +0100, Axel Missbach wrote:
  [EMAIL PROTECTED] wrote:
  
   On Sun, Jan 21, 2001 at 11:27:30AM +0100, Axel Missbach wrote:
Hey to all,
having installed the PoPy-Modul-2.01. The ZPoPyDa-1.01-pre2 doesnt find
it.
calling "import PoPy" in the python-interprter works with out error.
Please give me a hint.
  
   Where did your zope come from?
  I have downloaded from zope.org the version zope-2.30b2-linux2-x86.tgz
 
 OK, I think that comes with an internal python interpreter.
 Yes, indeed, it is in $ZOPE_HOME/bin.
 
 This means that when you run python, you are probably not running the
 python that zope is running.
 
 I think, but am not totally sure, that the PoPymodule.so would have to go
 in $ZOPE_HOME/lib/python1.5 and zope restarted for it to become
 available.
 
 (Would you try this and tell me if it works, please?)
 
 Alternatively, one could edit z2.py to NOT use Zope's python,
 or one could install the source package.  I actually recommend
 the latter course.  It is a dead easy install.
 
 Jim
 
   
___
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/mailman/listinfo/zope-dev )
   
 


___
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/mailman/listinfo/zope-dev )




Re: [Zope] ANNOUNCE: Zope 2.3.0 beta 3 released

2001-01-25 Thread Erik Enge

[Oleg Broytmann]

| Finally it works for me lake a charm! (Even with python 2.0!)

Really? Python 2.0?  Without any problems?  Digicool's, are you
supporting Zope on Python 2.0?

___
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/mailman/listinfo/zope-dev )




Re: [Zope] ANNOUNCE: Zope 2.3.0 beta 3 released

2001-01-25 Thread Chris Withers

Erik Enge wrote:
 
 [Oleg Broytmann]
 
 | Finally it works for me lake a charm! (Even with python 2.0!)
 
 Really? Python 2.0?  Without any problems?  Digicool's, are you
 supporting Zope on Python 2.0?

That's the target for 2.4, isn't it?

cheers,

Chris

___
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/mailman/listinfo/zope-dev )




RE: [Zope] ANNOUNCE: Zope 2.3.0 beta 3 released

2001-01-25 Thread Brian Lloyd

 [Oleg Broytmann]
 
 | Finally it works for me lake a charm! (Even with python 2.0!)
 
 Really? Python 2.0?  Without any problems?  Digicool's, are you
 supporting Zope on Python 2.0?

It is not *officially* supported, meaning that new features 
(unicode) are not guaranteed to work with Zope apis, etc. 
and that if you have problems you are on your own. But we 
have made an effort to ensure that Zope builds without 
problems for 2.0 and have made some tweaks to fix known 
problems people were having running under 2.0. Toby 
Dickenson deserves a lot of the credit for that.

Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909
Digital Creations  www.digicool.com


___
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/mailman/listinfo/zope-dev )




[Zope] 2.3 and Products

2001-01-25 Thread Andy Dawkins

I heard a rumour that with Zope 2.3 you don't need to restart the Zope
server after making changes a (python) Product.

Can anyone confirm this?
If so how can I turn on/make this work ?

-Andy

___
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/mailman/listinfo/zope-dev )




Re: [Zope] ANNOUNCE: Zope 2.3.0 beta 3 released

2001-01-25 Thread Oleg Broytmann

On 25 Jan 2001, Erik Enge wrote:
 | Finally it works for me lake a charm! (Even with python 2.0!)

 Really? Python 2.0?  Without any problems?

   I didn't found any, do you?

Oleg.

 Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
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/mailman/listinfo/zope-dev )




Re: [Zope] Zope Games

2001-01-25 Thread Mario Valente

At 20:53 1/24/01 +0100, Erik Enge wrote:
[Gerald Gutierrez]

| Does anyone know about any web games written in Zope, something akin
| to Blacknova.net, which is written in PHP ? The source is at
| http://sourceforge.net/projects/blacknova/.

I don't.  But I might be able to hook someone up with some financial
funding to do so.  I recall having a contact which wanted to do
web-based games, large scale.  


  Take a look at

   http://www.copyriot.com/tarnold/nlpi/

  and more specifically at 

  http://www.copyriot.com/tarnold/nlpi/operating/index.html

  to see actual examples and screenshots.

  We (Ruido Visual TI) are also developing a large scale web-based
 game.

  C U!

  -- Mario Valente




___
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/mailman/listinfo/zope-dev )




Re: [Zope] ANNOUNCE: Zope 2.3.0 beta 3 released

2001-01-25 Thread Erik Enge

[Oleg Broytmann]

| On 25 Jan 2001, Erik Enge wrote:
| 
|  Really? Python 2.0?  Without any problems?
| 
|I didn't found any, do you?

I haven't tried running Zope with 2.0, yet.

___
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/mailman/listinfo/zope-dev )




[Zope] Re: Zope and Python 2.0

2001-01-25 Thread Oleg Broytmann

On Thu, 25 Jan 2001, [iso-8859-1] Åsmund Hjulstad wrote:
 I am having a nightmare getting ZClasses to work with Python 2.0. Does it
 work for you??

   I don't create ZClasses because:

1. I am The Knight Of Command Line! I do not understand visual programming :)

2. I learned Zope Product API before ZClassess... and sticked to it :)

   Really, I want to learn ZClasses, but knowledge of the Product API
stands on the way :)

   Well, I use ZClasses written by other people. FlexFAQ, for example.
Let's see whether it would work with Zope on Python 2.0:

   http://phd.russ.ru/zope.net.ru/Zope/FAQ/

Don't see any problem, do you? At least these ZClasses (Questions and
Answers) are working fine.

Oleg.

 Oleg Broytmannhttp://phd.pp.ru/[EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
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/mailman/listinfo/zope-dev )




[Zope] Re: Zope and Python 2.0

2001-01-25 Thread Åsmund Hjulstad

On Thursday 25 January 2001 16:37, you wrote:
 On Thu, 25 Jan 2001, [iso-8859-1] Åsmund Hjulstad wrote:
  I am having a nightmare getting ZClasses to work with Python 2.0. Does it
  work for you??

I don't create ZClasses because:

 1. I am The Knight Of Command Line! I do not understand visual programming
 :)

 2. I learned Zope Product API before ZClassess... and sticked to it :)

Really, I want to learn ZClasses, but knowledge of the Product API
 stands on the way :)

Well, I use ZClasses written by other people. FlexFAQ, for example.
 Let's see whether it would work with Zope on Python 2.0:

http://phd.russ.ru/zope.net.ru/Zope/FAQ/

 Don't see any problem, do you? At least these ZClasses (Questions and
 Answers) are working fine.

Then there must be something wrong with my setup. I really cannot see what 
could be wrong.

I have done a fresh install of everything; it still doesn't work. (and I 
really hate trying the "fresh install" option.. .)


I try the following:   (apologies for posting this again, but this is a 
different thread)

In Control Panel, generate new product.
In the new product, Added new class (filled in the blanks).

In the root folder: Add, select the new class, entered ID, and then...

Error Type: AttributeError
   Error Value: _setId

I have reproduced it several times, with Python 2.0 and 2.1a.


Traceback (innermost last):
  File /home/ahj/polar/zope/Zope2/lib/python/ZPublisher/Publish.py, line 222, 
in publish_module
  File /home/ahj/polar/zope/Zope2/lib/python/ZPublisher/Publish.py, line 187, 
in publish
  File /home/ahj/polar/zope/Zope2/lib/python/Zope/__init__.py, line 221, in 
zpublisher_exception_hook
(Object: RoleManager)
  File /home/ahj/polar/zope/Zope2/lib/python/ZPublisher/Publish.py, line 171, 
in publish
  File /home/ahj/polar/zope/Zope2/lib/python/ZPublisher/mapply.py, line 160, 
in mapply
(Object: CDClass_add)
  File /home/ahj/polar/zope/Zope2/lib/python/ZPublisher/Publish.py, line 112, 
in call_object
(Object: CDClass_add)
  File /home/ahj/polar/zope/Zope2/lib/python/OFS/DTMLMethod.py, line 189, in 
__call__
(Object: CDClass_add)
  File /home/ahj/polar/zope/Zope2/lib/python/DocumentTemplate/DT_String.py, 
line 538, in __call__
(Object: CDClass_add)
  File /home/ahj/polar/zope/Zope2/lib/python/DocumentTemplate/DT_With.py, 
line 133, in render
(Object: CDClass.createInObjectManager(REQUEST['id'], REQUEST))
  File /home/ahj/polar/zope/Zope2/lib/python/DocumentTemplate/DT_Util.py, 
line 334, in eval
(Object: CDClass.createInObjectManager(REQUEST['id'], REQUEST))
(Info: CDClass)
  File string, line 0, in ?
  File /home/ahj/polar/zope/Zope2/lib/python/ZClasses/ZClass.py, line 522, in 
createInObjectManager
(Object: CDClass)
AttributeError: (see above)




___
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/mailman/listinfo/zope-dev )




RE: [Zope] 2.3 and Products

2001-01-25 Thread Brian Lloyd

 I heard a rumour that with Zope 2.3 you don't need to restart the Zope
 server after making changes a (python) Product.
 
 Can anyone confirm this?
 If so how can I turn on/make this work ?
 
 -Andy

That's not the case - it was something that we considered, 
but doing this with a consistent and worthwhile level of 
service is extraordinarily hard. We don't want to put 
something new in that only works part of the time with a 
long list of caveats - in the long run, that would only 
cause confusion for people.

Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909
Digital Creations  www.digicool.com


___
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/mailman/listinfo/zope-dev )




Re: [Zope] 2.3 and Products

2001-01-25 Thread Andy Dawkins

Brain

Cheers, That explains why it wouldn't do it then
:)

-Andy

Brian Lloyd wrote:
 
  I heard a rumour that with Zope 2.3 you don't need to restart the Zope
  server after making changes a (python) Product.
 
  Can anyone confirm this?
  If so how can I turn on/make this work ?
 
  -Andy
 
 That's not the case - it was something that we considered,
 but doing this with a consistent and worthwhile level of
 service is extraordinarily hard. We don't want to put
 something new in that only works part of the time with a
 long list of caveats - in the long run, that would only
 cause confusion for people.
 
 Brian Lloyd[EMAIL PROTECTED]
 Software Engineer  540.371.6909
 Digital Creations  www.digicool.com

___
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/mailman/listinfo/zope-dev )




Re: [Zope] 2.3 and Products

2001-01-25 Thread Chris McDonough

This is not true.  The behavior is the same as before... the plans to make
restart optional were waylaid by complications.  ;-(

- Original Message -
From: "Andy Dawkins" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 25, 2001 11:45 AM
Subject: [Zope] 2.3 and Products


 I heard a rumour that with Zope 2.3 you don't need to restart the Zope
 server after making changes a (python) Product.

 Can anyone confirm this?
 If so how can I turn on/make this work ?

 -Andy

 ___
 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/mailman/listinfo/zope-dev )




___
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/mailman/listinfo/zope-dev )




[Zope] DNS/access problems

2001-01-25 Thread Olaf Zanger

hi there,
for presentation purposes i installed zope on suse 7.0 on a laptop with
port 8090. 

i was able to access apache on port 80,
i was able to access http://vaio:8090/ipOperate
but then, when i clicked to any link i got an error.

any idea where to search?

thanks 

olaf

-- 
soli-con Engineering Zanger
Dipl.-Ing. (FH) Olaf Marc Zanger
Lorrainestrasse 23
3013 Bern / Switzerland
Fon: +41-31-332 9782
Mob: +41-76-572 9782
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
http://www.soli-con.com

begin:vcard 
n:Zanger;Olaf Marc
tel;cell:+41-76-572 9782
tel;work:+41-31-332 9782
x-mozilla-html:FALSE
url:www.soli-con.com
org:soli-con Engineering Zanger
adr:;;Lorrainestrasse 23;Bern;BE;3013;Switzerland
version:2.1
email;internet:[EMAIL PROTECTED]
title:Dipl.-Ing.
note;quoted-printable:IT-Consulting=0D=0AEmbedded Systems=0D=0AEnergy Systems=0D=0AOpen Source Solutions=0D=0A
x-mozilla-cpt:;-32176
fn:Olaf Zanger
end:vcard



[Zope] How to prevent the user from going Back to a page???

2001-01-25 Thread Daniel Rusch

All,

Has anyone figured out a way to prevent a user from going "Back" to a
page once they have passed it. 


The situation: 

We have an Order Entry/Billing intranet site where users fill out
several pages of data an then submit the information. After the order is
submitted we would like to prevent them from backing up and resubmitting
the same order. Is there a way to prevent them from doing this. 

I know I can remove the tool bar, but then the user can right click and
select "Back" or select GO|Back. 

Any Ideas?

DR

___
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/mailman/listinfo/zope-dev )




Re: [Zope] DNS/access problems

2001-01-25 Thread Chris McDonough

What is ipOperate?

- Original Message - 
From: "Olaf Zanger" [EMAIL PROTECTED]
To: "Zope Mailinglist" [EMAIL PROTECTED]
Sent: Thursday, January 25, 2001 11:05 AM
Subject: [Zope] DNS/access problems


 hi there,
 for presentation purposes i installed zope on suse 7.0 on a laptop with
 port 8090. 
 
 i was able to access apache on port 80,
 i was able to access http://vaio:8090/ipOperate
 but then, when i clicked to any link i got an error.
 
 any idea where to search?
 
 thanks 
 
 olaf
 
 -- 
 soli-con Engineering Zanger
 Dipl.-Ing. (FH) Olaf Marc Zanger
 Lorrainestrasse 23
 3013 Bern / Switzerland
 Fon: +41-31-332 9782
 Mob: +41-76-572 9782
 mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
 http://www.soli-con.com


___
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/mailman/listinfo/zope-dev )




Re: [Zope] How to prevent the user from going Back to a page???

2001-01-25 Thread Chris Withers

Daniel Rusch wrote:
 
 We have an Order Entry/Billing intranet site where users fill out
 several pages of data an then submit the information. After the order is
 submitted we would like to prevent them from backing up and resubmitting
 the same order. Is there a way to prevent them from doing this.

Use a session tracking product, that'll give you a session id and ocne the
session is complete, you can return an error if that session id is presented
again.

cheers,

Chris

___
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/mailman/listinfo/zope-dev )




Re: [Zope] VirtualHostMonster, PATH_INFO and absolute_url

2001-01-25 Thread Philip Aylesworth

 I should probably write a Howto for VirtualHostMonster, and ask the folks
 who've written the various fine SiteAccess-related Howtos to incorporate it.
 It really is a lot easier and safer to use than SiteRoots 98% of the time.

I would appreciate that HOWTO. :) I am going to need virtual hosting for
a project I am undertaking and don't even know where to begin. Is
VirtualHostMonster part of SiteAccess (which I have just discovered when
I did a search on zope.org)? Do I need to use apache for it? Should I
use apache rather than ZServer if I don't need any of apache's features?

Thanks,

Phil.

-- 
Philip Aylesworth
[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/mailman/listinfo/zope-dev )




Re: [Zope] DNS/access problems

2001-01-25 Thread Phil Harris

What error are you getting?

- Original Message - 
From: "Olaf Zanger" [EMAIL PROTECTED]
To: "Zope Mailinglist" [EMAIL PROTECTED]
Sent: Thursday, January 25, 2001 4:05 PM
Subject: [Zope] DNS/access problems


 hi there,
 for presentation purposes i installed zope on suse 7.0 on a laptop with
 port 8090. 
 
 i was able to access apache on port 80,
 i was able to access http://vaio:8090/ipOperate
 but then, when i clicked to any link i got an error.
 
 any idea where to search?
 
 thanks 
 
 olaf
 
 -- 
 soli-con Engineering Zanger
 Dipl.-Ing. (FH) Olaf Marc Zanger
 Lorrainestrasse 23
 3013 Bern / Switzerland
 Fon: +41-31-332 9782
 Mob: +41-76-572 9782
 mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
 http://www.soli-con.com


___
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/mailman/listinfo/zope-dev )




Re: [Zope] Problem instantiating ZClass

2001-01-25 Thread Erik Enge

[smund Hjulstad]

| I did the following:

But do you have to?  Have you sniffed the Python Product API?

If you haven't already, check these out:

URL:http://www.zope.org/Members/maxm/HowTo/minimal_01

and then

URL:http://www.itamarst.org/learningzope/index.html

___
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/mailman/listinfo/zope-dev )




Re: [Zope] How to prevent the user from going Back to a page???

2001-01-25 Thread Chris McDonough

 Use a session tracking product, that'll give you a session id and ocne the
 session is complete, you can return an error if that session id is
presented
 again.

I'd probably handle this instead by computing an identifier for the
transaction and including it as a hidden form field on the submission page.
Keeping one day's worth of transaction ids somewhere to check against in the
form action would probably suffice.



___
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/mailman/listinfo/zope-dev )




[Zope] Minor oddity in beta 3

2001-01-25 Thread Michael W. Homyack

One oddity I just noticed in the beta 3... if you have no folders created in the root, 
then the left-hand navigation pane doesn't show the Control_Panel, Quickstart, or 
acl_users folder.  Once you add a folder, then all three of those objects, as well as 
the new folder, appear in the left-hand pane.  If you then delete the folder, and 
refresh the browser, everything in the left-hand pane disappears again (leaving only 
the root folder at the top).

Not a biggie, but a little odd.

-- 
--  Michael W. Homyack
--  [EMAIL PROTECTED]  --  [EMAIL PROTECTED]  --  303.539.0045 -- 720.560.8772
--  "To make an apple pie from scratch, you must first invent the universe"
--  - Carl Sagan

___
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/mailman/listinfo/zope-dev )




Re: [Zope] DNS/access problems

2001-01-25 Thread Erik Enge

[Olaf Zanger]

| any idea where to search?

Try providing more details about what went wrong, how it should've
worked instead and any error messages.  Then, maybe, we'll be able to
help you.  :-)

___
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/mailman/listinfo/zope-dev )




Re: [Zope] Minor oddity in beta 3

2001-01-25 Thread Martijn Pieters

On Thu, Jan 25, 2001 at 09:22:14AM -0700, Michael W. Homyack wrote:
 One oddity I just noticed in the beta 3... if you have no folders created in the 
root, then the left-hand navigation pane doesn't show the Control_Panel, Quickstart, 
or acl_users folder.  Once you add a folder, then all three of those objects, as well 
as the new folder, appear in the left-hand pane.  If you then delete the folder, and 
refresh the browser, everything in the left-hand pane disappears again (leaving only 
the root folder at the top).
 
 Not a biggie, but a little odd.

Sound like a bug. COuld you report this to the Collector?

  http://classic.zope.org:8080/Collector/

-- 
Martijn Pieters
| Software Engineer  mailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
-

___
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/mailman/listinfo/zope-dev )




Re: [Zope] DNS/access problems

2001-01-25 Thread Oleg Broytmann

On Thu, 25 Jan 2001, Olaf Zanger wrote:
 but then, when i clicked to any link i got an error.
 any idea where to search?

   First, carefully read the error message...

Oleg.

 Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
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/mailman/listinfo/zope-dev )




RE: [Zope] DNS/access problems

2001-01-25 Thread Farrell, Troy

What browser are you using?  Netscape 6 (I'm on NT4) has a nasty habit of
remembering (or not remembering) ports associated with addresses.  When I
run Zope 2.2.5 on port 80 and 2.3.0b? on port 9000, and access the first as
http://localhost and the second on http://localhost:9000, Netscape 6 changes
all my links on localhost:9000 to point to localhost.  This gets old.  A
work around is to refer to one by the ip address and the other by a domain
name.

Troy

-Original Message-
From: Chris McDonough [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 25, 2001 10:35 AM
To: [EMAIL PROTECTED]; Zope Mailinglist
Subject: Re: [Zope] DNS/access problems


What is ipOperate?

- Original Message - 
From: "Olaf Zanger" [EMAIL PROTECTED]
To: "Zope Mailinglist" [EMAIL PROTECTED]
Sent: Thursday, January 25, 2001 11:05 AM
Subject: [Zope] DNS/access problems


 hi there,
 for presentation purposes i installed zope on suse 7.0 on a laptop with
 port 8090. 
 
 i was able to access apache on port 80,
 i was able to access http://vaio:8090/ipOperate
 but then, when i clicked to any link i got an error.
 
 any idea where to search?
 
 thanks 
 
 olaf
 
 -- 
 soli-con Engineering Zanger
 Dipl.-Ing. (FH) Olaf Marc Zanger
 Lorrainestrasse 23
 3013 Bern / Switzerland
 Fon: +41-31-332 9782
 Mob: +41-76-572 9782
 mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
 http://www.soli-con.com


___
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/mailman/listinfo/zope-dev )

___
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/mailman/listinfo/zope-dev )




[Zope] Change Permissions via FTP

2001-01-25 Thread Matthias Füsting

Hi,

is there any possibility to change permissions of files via ZOPE-FTP?
Every time I try this with the command "chmod", I get following error message:

500 'SITE': command not understood.


What is the problem?



Thanks.

Matthias Fsting


___
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/mailman/listinfo/zope-dev )




Re: [Zope] Change Permissions via FTP

2001-01-25 Thread Phil Harris

Matthias,

First thing is that your not looking at files when you ftp into Zope, your
looking at objects.

Secondly Zope uses it's own permissions/security system, that is far more
comprehensive than *nix permissions.  I really rather doubt that you can set
permissions on Zope using a 'simple' chmod.

Basically I'm saying that to change permisions for Zope objects, you need to
use the TTW (through the web) managment interface.

hth

Phil

- Original Message -
From: "Matthias Fsting" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 25, 2001 4:40 PM
Subject: [Zope] Change Permissions via FTP


 Hi,

 is there any possibility to change permissions of files via ZOPE-FTP?
 Every time I try this with the command "chmod", I get following error
message:

 500 'SITE': command not understood.


 What is the problem?



 Thanks.

 Matthias Fsting


 ___
 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/mailman/listinfo/zope-dev )


___
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/mailman/listinfo/zope-dev )




Re: [Zope] PythonScripts editable through FTP?

2001-01-25 Thread A.J. Rossini

 "TS" == Tres Seaver [EMAIL PROTECTED] writes:

TS I'm liking it a lot -- the last reason to even consider using
TS emacs is gone :)

There never is a reason to not consider Emacs.  Note that there is a
new package for editing XML, called XAE (XML authoring environment)
which takes care of XSLT jobs for you.  Developed by the same guy,
Paul Kinnucan, who does the marvelous JDE package for editing Java in
Emacs.  Now if only he'd do a zope package ;-).

best,
-tony

-- 
A.J. RossiniRsrch. Asst. Prof. of Biostatistics
UW Biostat/Center for AIDS Research [EMAIL PROTECTED]
FHCRC/SCHARP/HIV Vaccine Trials Net [EMAIL PROTECTED]
 (friday is unknown) 
FHCRC: M--W : 206-667-7025 (fax=4812)|Voicemail is pretty sketchy
CFAR:  ??   : 206-731-3647 (fax=3694)|Email is far better than phone
UW:Th   : 206-543-1044 (fax=3286)|Change last 4 digits of phone to FAX

___
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/mailman/listinfo/zope-dev )




Re: [Zope] VirtualHostMonster, PATH_INFO and absolute_url

2001-01-25 Thread Evan Simpson

From: Philip Aylesworth [EMAIL PROTECTED]
 I would appreciate that HOWTO. :) I am going to need virtual hosting for
 a project I am undertaking and don't even know where to begin. Is
 VirtualHostMonster part of SiteAccess (which I have just discovered when
 I did a search on zope.org)? Do I need to use apache for it? Should I
 use apache rather than ZServer if I don't need any of apache's features?

If you genuinely don't need Apache, ZServer is certainly good enough.  Many
people (such as myself) use Apache for a cheap management/performance win
serving large utterly static content like images, for battle-tested SSL, and
for the ability to run other back-end servers or CGI in parallel.
VirtualHostMonster is a newish SiteAccess component that makes virtual
hosting easy for the most common cases, where Apache or some other thin
back-end is handling the incoming rewriting, and the rewriting consists of
host/port renaming and path insertion (http://www.myhost.com/ =
http://localhost:8080/myhost).  In this case, all you need is one
VirtualHostMonster and a slight, easy change to your rewrite/proxy
directives.

Cheers,

Evan @ digicool  4-am


___
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/mailman/listinfo/zope-dev )




Re: [Zope] PythonScripts editable through FTP?

2001-01-25 Thread Chris Withers

"A.J. Rossini" wrote:
 
  "TS" == Tres Seaver [EMAIL PROTECTED] writes:
 
 TS I'm liking it a lot -- the last reason to even consider using
 TS emacs is gone :)
 
 There never is a reason to not consider Emacs.  Note that there is a
 new package for editing XML, called XAE (XML authoring environment)

Oooo... when can I get that?

Does it work with EMACS for Win32 and does it handle CDATA tags?

cheers,

Chris

___
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/mailman/listinfo/zope-dev )




[Zope] LoginManager ...

2001-01-25 Thread mapr

Hi everybody,
I installed LoginManager-0-8-8b1 on Zope-2.2.2 by following the
install.-instructions in the HOWTO: 'LoginManager with SQL DB' by
jok. Nevertheless when I try to watch my TestFolder I get some weird
error messages, like :
Error Type: NameError
Error Value: username

 ... any hints would be appreciated.

Thanks
Mario



___
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/mailman/listinfo/zope-dev )




RE: [Zope] ANNOUNCE: Zope 2.3.0 beta 3 released

2001-01-25 Thread Ron Bickers

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Chris
 Withers
 Sent: Thursday, January 25, 2001 10:19 AM
 To: Erik Enge
 Cc: Oleg Broytmann; Zope Mailing List
 Subject: Re: [Zope] ANNOUNCE: Zope 2.3.0 beta 3 released

  | Finally it works for me lake a charm! (Even with python 2.0!)
 
  Really? Python 2.0?  Without any problems?  Digicool's, are you
  supporting Zope on Python 2.0?

 That's the target for 2.4, isn't it?

That's what Brian has mentioned...that 2.4 will primarily be Python 2.x
support (including unicode) and may even require Python 2.

I'm running Python 2.0 with Zope 2.3b3, several custom and borrowed
ZClasses, Python Products, MySQL connections and it's running very well.  I
just hope I'm not a Chernobyl waiting to happen. :-)

___

Ron Bickers
Logic Etc, Inc.
[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/mailman/listinfo/zope-dev )




Re: [Zope] How to prevent the user from going

2001-01-25 Thread rlanham

I use this on asp pages, you will have to modify for zope syntax, but it works
very well for your need:

Response.buffer = true
Response.Expires = -1
Response.AddHeader "Pragma", "no-cache"
Response.AddHeader "cache-control", "no-store"



  Original Message ---
 From: Daniel Rusch [EMAIL PROTECTED]
 Date: Thu, 25 Jan 2001 10:07:51 -0600
 
 All,
 
 Has anyone figured out a way to prevent a user from going "Back" to a
 page once they have passed it. 
 
 
 The situation: 
 
 We have an Order Entry/Billing intranet site where users fill out
 several pages of data an then submit the information. After the order is
 submitted we would like to prevent them from backing up and resubmitting
 the same order. Is there a way to prevent them from doing this. 
 
 I know I can remove the tool bar, but then the user can right click and
 select "Back" or select GO|Back. 
 
 Any Ideas?
 
 DR
 
 ___
 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/mailman/listinfo/zope-dev )
 



___
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/mailman/listinfo/zope-dev )




[Zope] How to make broken images/links broken!

2001-01-25 Thread sbabu

Hi folks,

I think this has to do with acquisition. Here's my problem.

I've an image, say
http://localhost:8080/colorado/images/myimage.jpg

Now, with Zope, if in a DTML document called
   http://localhost:8080/colorado/test.html
, I refer to it as  img src="images/myimage.jpg" it works
as expected.

However, if I have another DTML document called
   http://localhost:8080/colorado/slideshows/test2.html
which *also* refers to it as img src="images/myimage.jpg"
the image appears there also. I don't want this to happen.
I would like this image to be broken as you would expect
in a normal, dumb webserver.

However, I don't want to turn off acquisition completely in all
the folders too (I don't know how to do that either).

Is there any thing we can do to test2.html which will not show
things like this?

FYI: This is for a content management application using Zope.
We use Zope to make our content, then make static pages
into file system to be served by IIS. All that works very nice.
But users often give wrong URL for their images in the content
and in the Zope DTML method (like test2.html) which does the preview,
these images appear all right and so they think it is going to be OK
in the static version too.  I'm using something like ZIE for editor,
so at least in that if we can disable acquisition, that would be neat.

Many thanks in advance


V.Satheesh Babu Web Technologies Group, (703)-841-5348[EMAIL PROTECTED]
The Nature Conservancyhttp://www.tnc.org  
http://vsbabu.csoft.net/
"The man who smiles when things go wrong has thought of someone to blame it 
on." --- Jone's Law

___
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/mailman/listinfo/zope-dev )




RE: [Zope] Unable to instantiate ZClass

2001-01-25 Thread Brian Lloyd

 My previous mail is further down.
 
 I have now done a fresh install from the CVS, after the beta3 release. 
 
 If this problem is because I am using python 2.0, then I hope 
 someone will 
 fix this. If not, am I doing something wrong.
 
 Is everybody else using python 1.5.2?
 
 Asmund Hjulstad

This is not Python 2 related - I've added a fix for this 
(defining _setId in SimpleItem.Item) that should do the 
trick. Can you update from CVS and let me know if you 
still have problems?


Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com 




___
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/mailman/listinfo/zope-dev )




[Zope] Treeing a dictionary

2001-01-25 Thread Gary Perez

Hi, all.

I've been playing with the XML Document product and the dtml-tree
tags. Works quite nicely. Is there any way to duplicate this "treeing"
in Zope for a dictionary (with embedded dictionaries) coming in from an
external method?

For example, the external method is returning to Zope something like this:
{'Category 1': {'Section 1': {'Key 1': 'Value 1.1.1', 'Key 2': 'Value
1.1.2'}}, {'Section 2': {'Key 1': 'Value 1.2.1', 'Key 2': 'Value 1.2.2'}}}

Or, a little easier on the eyes:
{'Category 1':
{'Section 1':
{'Key 1': 'Value 1.1.1', 'Key 2': 'Value 1.1.2'}
},
{'Section 2':
{'Key 1': 'Value 1.2.1', 'Key 2': 'Value 1.2.2'}
}
}

Is there some way in Zope to tree this dictionary up like so (expanded)?:

[-] Category 1
[-] Section 1
Key 1
Key 2
[-] Section 2
Key 1
Key 2

Alternately, what type of objects is the dtml-tree tag looking for
when constructing the tree? Would it be easier to "programatically"
generate those types of objects from the dictionary using either DTML or
an external python module?

Any help or insight is greatly appreciated.
-Gary

___
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/mailman/listinfo/zope-dev )




[Zope] REMOTE_ADDR

2001-01-25 Thread Marcus Mendes

I don't understand very much about Apache; but i've this lines in my 
httpd.conf. See:

VirtualHost xxx.xxx.xxx.xxx
   ServerAdmin XXX
   DocumentRoot XXX
   ServerName myserver.xxx.xxx
   ServerAlias myserver
   ErrorLog /usr/local/apache/logs/error_log
   CustomLog /usr/local/apache/logs/access_log common
   ScriptAlias /script/ /usr/local/apache/script/

   RewriteEngine On
   RewriteLog "/usr/local/apache/logs/rewrite_log"
   RewriteLogLevel 0
   RewriteRule ^/local/ - [L]
   RewriteRule ^/(.*) http://myserver:8080/marcus/$1 [P]
/VirtualHost

I'm using Zope.cgi with SiteAccess
In the SiteAcess, I have - base: http://myserver:8080
and URL : /marcus

How can I pass to my ZServer the REMOTE_ADDR's content?

Thanks a lot!

Marcus Mendes.

--
Oleg Wrote:

  Which way do you connect Apache to Zope? Mod_pcgi? mod_fastcgi?
mod_proxy? I am afraid if you use mod_proxy - you cannot obtain remote
address. Or may be there is a way to pass it explicitly to Zope.
  Other modules (FCGI/PCGI) should pass all neccessary information
(actually, the entire request environment) by default.

Oleg.

Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED]
  Programmers don't die, they just GOSUB without RETURN.



___
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/mailman/listinfo/zope-dev )




Re: [Zope] LoginManager ...

2001-01-25 Thread mapr

Oops, I have forgotten to ask something:
I have heard that GenericUserFolder doesn't work under
Zope-2.2.x, is that right ?
Thanks
Mario



On Thu, 25 Jan 2001 [EMAIL PROTECTED] wrote:

 Hi everybody,
 I installed LoginManager-0-8-8b1 on Zope-2.2.2 by following the
 install.-instructions in the HOWTO: 'LoginManager with SQL DB' by
 jok. Nevertheless when I try to watch my TestFolder I get some weird
 error messages, like :
   Error Type: NameError
   Error Value: username
 
  ... any hints would be appreciated.
 
 Thanks
   Mario
 
 
 
 ___
 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/mailman/listinfo/zope-dev )
 


___
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/mailman/listinfo/zope-dev )




Re: [Zope] Editors [OT]

2001-01-25 Thread Jason Cunliffe

check out HTML-Kit
http://www.chami.com/html-kit/#features

- Jason
___
Jason CUNLIFFE = NOMADICS['Interactive Art and Technology']

- Original Message -
From: Chris Withers [EMAIL PROTECTED]
To: Tres Seaver [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, January 25, 2001 5:08 AM
Subject: [Zope] Editors [OT]


 Tres Seaver wrote:
 
  I'm liking it a lot -- the last reason to even consider using
  emacs is gone :)

 Hmmm... interesting, maybe it's time to find a new editor...

 My wishlist would be:

 - Runs nicely on NT4
 - Syntax highlighting for Python, C, XML, HTML (and, although this is
dreamworld
 stuff, DTML ;-)
 - FTP or WebDAV editing built in as standard (or alternative solution,
like
 cadaver making it work ;-)
 - Regular Expression search  replace
 - search  replace of multiple files

 and my dream list would be:

 - can run multiple copies of the editor at once
 - class browser for python, with expand/collapse of code (like the editor
for
 Python 2)

 Any ideas?



___
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/mailman/listinfo/zope-dev )




Re: [Zope] How to make broken images/links broken!

2001-01-25 Thread Chris Withers

I'd change to using 2.3 with the Cache management stuff and leave IIS totally
out of the loop.

Then everyone gets what they expect and you get nice, fast-served pages :-)

cheers,

Chris

PS: Maybe having ZServer behind Apache would be needed for a decent solution.

[EMAIL PROTECTED] wrote:
 
 Hi folks,
 
 I think this has to do with acquisition. Here's my problem.
 
 I've an image, say
 http://localhost:8080/colorado/images/myimage.jpg
 
 Now, with Zope, if in a DTML document called
http://localhost:8080/colorado/test.html
 , I refer to it as  img src="images/myimage.jpg" it works
 as expected.
 
 However, if I have another DTML document called
http://localhost:8080/colorado/slideshows/test2.html
 which *also* refers to it as img src="images/myimage.jpg"
 the image appears there also. I don't want this to happen.
 I would like this image to be broken as you would expect
 in a normal, dumb webserver.
 
 However, I don't want to turn off acquisition completely in all
 the folders too (I don't know how to do that either).
 
 Is there any thing we can do to test2.html which will not show
 things like this?
 
 FYI: This is for a content management application using Zope.
 We use Zope to make our content, then make static pages
 into file system to be served by IIS. All that works very nice.
 But users often give wrong URL for their images in the content
 and in the Zope DTML method (like test2.html) which does the preview,
 these images appear all right and so they think it is going to be OK
 in the static version too.  I'm using something like ZIE for editor,
 so at least in that if we can disable acquisition, that would be neat.
 
 Many thanks in advance
 
 V.Satheesh Babu Web Technologies Group, (703)-841-5348[EMAIL PROTECTED]
 The Nature Conservancyhttp://www.tnc.org
 http://vsbabu.csoft.net/
 "The man who smiles when things go wrong has thought of someone to blame it
 on." --- Jone's Law
 
 ___
 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/mailman/listinfo/zope-dev )

___
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/mailman/listinfo/zope-dev )




RE: [Zope] Minor oddity in beta 3

2001-01-25 Thread Brian Lloyd

 One oddity I just noticed in the beta 3... if you have no folders 
 created in the root, then the left-hand navigation pane doesn't 
 show the Control_Panel, Quickstart, or acl_users folder.  Once 
 you add a folder, then all three of those objects, as well as the 
 new folder, appear in the left-hand pane.  If you then delete the 
 folder, and refresh the browser, everything in the left-hand pane 
 disappears again (leaving only the root folder at the top).
 
 Not a biggie, but a little odd.

What client are you using? I'm not able to reproduce this 
here :( I suspect some sort of client rendering problem or 
maybe a stall or truncation of the page somehow? If you 
view source on the nav pane do you see a complete well-formed 
html document missing those items or a truncated file? Note 
that some clients will show you the latest cached source 
when a page didn't load all of the way, so be sure to refresh
the pane manually as well.


Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com 




___
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/mailman/listinfo/zope-dev )




Re: [Zope] Editors [OT]

2001-01-25 Thread Mario Valente

At 10:08 1/25/01 +, Chris Withers wrote:
Hmmm... interesting, maybe it's time to find a new editor...

My wishlist would be:

- Runs nicely on NT4
- Syntax highlighting for Python, C, XML, HTML (and, although this is
dreamworld
stuff, DTML ;-)
- FTP or WebDAV editing built in as standard (or alternative solution, like
cadaver making it work ;-)
- Regular Expression search  replace
- search  replace of multiple files

and my dream list would be:

- can run multiple copies of the editor at once


  You should look into

  Notetab Pro  at http://www.notetab.com/

  and

  40tude at http://www.40tude.com/html/


  The first one does all you request (FTP access) except DTML/Python
 syntax, although I'm sure there was a file around to do it.

  The second one already comes with Zope/DTML syntax highlighting
 builtin. You can get to the files using MS WebFolders (Webdav) or
 through alternatives.

  C U!

  -- Mario Valente



  

___
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/mailman/listinfo/zope-dev )




RE: [Zope] How to make broken images/links broken!

2001-01-25 Thread Farrell, Troy

I will try, although I don't completely understand your problem.

Instead of refering to your images with html, try using dtml.  This requires
that the images are Zope Image Objects.

Try this:

dtml-if expr="images.myimage.jpg"
  dtml-var expr="images.myimage.jpg"
/dtml-if

That will place the image on the page if there is any object called "images"
with a subobject "myimage.jpg".  But wait.  There is a complication.  The
.jpg will really play with python.  If possible, rename the image to
"myimage_jpg" or just "myimage".  Content-Type should take care of the lack
of extension.  This method also works it's way up the entire zope tree.

May DTML methods cower at the sound of your name.

Troy

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 25, 2001 11:43 AM
To: [EMAIL PROTECTED]
Subject: [Zope] How to make broken images/links broken!


Hi folks,

I think this has to do with acquisition. Here's my problem.

I've an image, say
http://localhost:8080/colorado/images/myimage.jpg

Now, with Zope, if in a DTML document called
   http://localhost:8080/colorado/test.html
, I refer to it as  img src="images/myimage.jpg" it works
as expected.

However, if I have another DTML document called
   http://localhost:8080/colorado/slideshows/test2.html
which *also* refers to it as img src="images/myimage.jpg"
the image appears there also. I don't want this to happen.
I would like this image to be broken as you would expect
in a normal, dumb webserver.

However, I don't want to turn off acquisition completely in all
the folders too (I don't know how to do that either).

Is there any thing we can do to test2.html which will not show
things like this?

FYI: This is for a content management application using Zope.
We use Zope to make our content, then make static pages
into file system to be served by IIS. All that works very nice.
But users often give wrong URL for their images in the content
and in the Zope DTML method (like test2.html) which does the preview,
these images appear all right and so they think it is going to be OK
in the static version too.  I'm using something like ZIE for editor,
so at least in that if we can disable acquisition, that would be neat.

Many thanks in advance


V.Satheesh Babu Web Technologies Group, (703)-841-5348[EMAIL PROTECTED]
The Nature Conservancyhttp://www.tnc.org  
http://vsbabu.csoft.net/
"The man who smiles when things go wrong has thought of someone to blame it 
on." --- Jone's Law

___
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/mailman/listinfo/zope-dev )

___
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/mailman/listinfo/zope-dev )




Re: [Zope] REMOTE_ADDR

2001-01-25 Thread Oleg Broytmann

Hi!

   This [P] suggests that you use mod_proxy. --\
|
   As I already said, mod_proxy can't pass environment. ---+--\
|  |
On Thu, 25 Jan 2001, Marcus Mendes wrote:   |  |
RewriteRule ^/(.*) http://myserver:8080/marcus/$1 [P]-/  |
  |
 I'm using Zope.cgi with SiteAccess   |
 In the SiteAcess, I have - base: http://myserver:8080   |
 and URL : /marcus|
  |
 How can I pass to my ZServer the REMOTE_ADDR's content?  |
  |
 -+
 Oleg Wrote:  |
  V
   Which way do you connect Apache to Zope? Mod_pcgi? mod_fastcgi?
 mod_proxy? I am afraid if you use mod_proxy - you cannot obtain remote
 address. Or may be there is a way to pass it explicitly to Zope.
   Other modules (FCGI/PCGI) should pass all neccessary information
 (actually, the entire request environment) by default.

Oleg.

 Oleg Broytmann http://www.zope.org/Members/phd/ [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
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/mailman/listinfo/zope-dev )




[Zope] New User: Documentation + Information

2001-01-25 Thread Freddy Wanis


Hey All,

I just installed Zope in my machine but i don't have any documentation or
manual .. I tryed to find something on the web page but it would just have
the online manual what is not a good thing for me since i don't have 24hs of
internet connection.
Anyways... I'd like to know if anybody has some documentation to send me.

I need docs about ... using zope... learning zope.what's zope ? hehe !
Stuff like That !
I'm gonna use the sotware as an admin for a website.

thanks for your attention,


Freddy Wanis
-
Freddy Wanis - PredialNET
[EMAIL PROTECTED]
ICQ: 7024168 AOL: FreddyW99


___
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/mailman/listinfo/zope-dev )




[Zope] Instatiate object instances :-)

2001-01-25 Thread Mario Valente



  Hi:

  Can someone give any info/tips on the best way to solve this ?

  We have a folder "/content" containing all the diferent type of
 content we have available on our site.
  Within this folder, for example, we have a subfolder "/content/polls"
 where we store all the polls (instances of a Poll product). Another
 example, we have a subfolder "/content/articles" where we instantiate
 Squishdot articles.

  Now, the problem is that we'd like to reference those objects in
 several and different parts of the site. For example, we'd like to
 be able to reference diferent polls and diferent articles on area/folder
 "/Money"; and diferent polls and diferent articles on "/Games"; but
 an article could be referenced in "/Lifestyle" and in "/Money"

  We havent found an elegant OO solution. Up until now the only thing
 that comes to mind is that we should instatiate copies for the same
 object within each area/folder. This is a problem (duplicate copies,
 lack of data integrity, etc)

  The obvious solution in a non-OO paradigm would be links/pointers. But
 it is, of course, non-OO. And you cant do that on Zope anyway (can you?).

  The subject of this message is also another hypothesis: each object in
 Zope has a reference (the "Object Instance at #hiusd9743" messages...). Is
 it possible to instantiate object instances :-) ? This would be, of
course, pointers.

  Any other options ? Is this a problem in our OO design (probable) ? How
 would you (suggest we) do it ?

  Any help/suggestions are welcome.

  C U!

  -- Mario Valente




___
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/mailman/listinfo/zope-dev )




[Zope] url_quote written differently

2001-01-25 Thread peter bengtson

1a) dtml-var id is one way of writing it.

2a) dtml-var "'text %s text'%id" is another way of writing it

1b) dtml-var id url_quote is a second way of writing it

2b) ? How do I do this one??


I have tried this, but that didn't work: dtml-var "'text %s
text'%id.url_quote()" , but that didn't work either.
What's the syntax? Anybody?

Cheers, Peter


___
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/mailman/listinfo/zope-dev )




Re: [Zope] url_quote written differently

2001-01-25 Thread Andy McKay

dtml-var "'text %s text'%id" url_quote the url_quote is a parameter to
dtml-var.
--
  Andy McKay.


- Original Message -
From: "peter bengtson" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 25, 2001 11:01 AM
Subject: [Zope] url_quote written differently


 1a) dtml-var id is one way of writing it.

 2a) dtml-var "'text %s text'%id" is another way of writing it

 1b) dtml-var id url_quote is a second way of writing it

 2b) ? How do I do this one??


 I have tried this, but that didn't work: dtml-var "'text %s
 text'%id.url_quote()" , but that didn't work either.
 What's the syntax? Anybody?

 Cheers, Peter


 ___
 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/mailman/listinfo/zope-dev )



___
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/mailman/listinfo/zope-dev )




Re: [Zope] Editors [OT]

2001-01-25 Thread Dan L. Pierson

Chris Withers [EMAIL PROTECTED] writes:

 Hmmm... interesting, maybe it's time to find a new editor...
 
 My wishlist would be:
 
 - Runs nicely on NT4
 - Syntax highlighting for Python, C, XML, HTML (and, although this is dreamworld
 stuff, DTML ;-)
 - FTP or WebDAV editing built in as standard (or alternative solution, like
 cadaver making it work ;-)
 - Regular Expression search  replace
 - search  replace of multiple files
 
 and my dream list would be:
 
 - can run multiple copies of the editor at once
 - class browser for python, with expand/collapse of code (like the editor for
 Python 2)

XEmacs :-) (what I used for the last few years on NT)

Visual SlickEdit (maybe you can finish my Python support -- I think
it's now available from the VSE site).

___
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/mailman/listinfo/zope-dev )




Re: [Zope] Instatiate object instances :-)

2001-01-25 Thread Aleksander Salwa

Paths can be treated as "pointers", so methods
getPhysicalPath/(un)restrictedTraverse may be what you need.

[EMAIL PROTECTED], [EMAIL PROTECTED]

/--\
| `long long long' is too long for GCC |
\--/


___
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/mailman/listinfo/zope-dev )




Re: [Zope] Unique ID generation

2001-01-25 Thread Andy McKay

Using time is very common eg _.str(_.int(ZopeTime)), or I did a HowTo on
using FSCounter to do this:
http://www.zope.org/Members/andym/FSCounter/unique_ids
--
  Andy McKay.


- Original Message -
From: "Tim Moore" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 25, 2001 2:55 PM
Subject: [Zope] Unique ID generation


 I'm writing a simple ZClass (and a second ZClass which contains the
 first) and I would like the constructor for this class to be able to
 auto-generate unique IDs for the instances rather than making the
 owner choose one.  What I've tried isn't working, but I don't really
 know what I'm doing here...I figure this must be a fairly common
 problem, so what is the best way to handle it?  The ID needs only be
 unique within its container object (i.e., doesn't have to be globally
 unique).  I have full control over the container class, so solutions
 involving setting properties on that class are OK.

 TIA,
 --
 Tim Moore

 ___
 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/mailman/listinfo/zope-dev )



___
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/mailman/listinfo/zope-dev )




Re: [Zope] Editors [OT]

2001-01-25 Thread seb bacon


 - class browser for python, with expand/collapse of code (like the editor for
 Python 2)

would

  http://www.beopen.com/products/oobrowser/oobrowser_overview.html

be any use?

___
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/mailman/listinfo/zope-dev )




Re: [Zope] Editors [OT]

2001-01-25 Thread Michel Pelletier

On Thu, 25 Jan 2001, Chris Withers wrote:

 My wishlist would be:
 
 - Runs nicely on NT4

XEmacs

 - Syntax highlighting for Python, C, XML, HTML (and, although this is dreamworld
 stuff, DTML ;-)

XEmacs

 - FTP or WebDAV editing built in as standard (or alternative solution, like
 cadaver making it work ;-)

XEmacs

 - Regular Expression search  replace

XEmacs

 - search  replace of multiple files

XEmacs

 and my dream list would be:
 
 - can run multiple copies of the editor at once

XEmacs (but who needs more than one emacs?)

 - class browser for python, with expand/collapse of code (like the editor for
 Python 2)

XEmacs (speedbar mode)

 Any ideas?

I had to, love makes you do strange things.

-Michel


___
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/mailman/listinfo/zope-dev )




[Zope] Acquisition Algebra; interaction of containment and acquisition is confusing

2001-01-25 Thread Fred Yankowski

Can anyone help me understand what's going on in the last example of
the main "Acquisition" document,
http://www.digicool.com/releases/ExtensionClass/Acquisition.html?
I think I understand how the various "complex expressions" relate to
the equivalent expression in terms of the '__of__' operator, except
for the very last case, "a.b.c.x".  I just can't follow why the
equivalent expression isn't

x.__of__(a).__of__(c.__of__(b.__of__(a)))

rather than the more complex answer given:

x.__of__(a).__of__(b.__of__(a)).__of__(c.__of__(b.__of__(a)))

When I run the test cases given in the document I see that the latter
does match the behavior, but I find that baffling.  In particular, why
is the effective search order x-a-b-c rather than x-a-c-b?  It almost
looks like the effective search order could be described as "up
through the containment heirarchy, then down through the remaining
acquired path", but I'm not at all sure if that's a valid
generalization.

Can anyone shed some light on this for me?

-- 
Fred Yankowski   [EMAIL PROTECTED]  tel: +1.630.879.1312
Principal Consultant www.OntoSys.com   fax: +1.630.879.1370
OntoSys, Inc 38W242 Deerpath Rd, Batavia, IL 60510, USA

___
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/mailman/listinfo/zope-dev )