[Zope-dev] Compiled Python as an Extension file

2000-06-22 Thread Dr. Peer Griebel

Hi,

I managed to patch zope to accept compiled python files in the
Extensions directory. I don't know what to do with my path. Where could
I put it - into the Wiki pages?

-- 
connection reset by
  Peer

___
Dr. Peer Griebel  Tel. +49 7581 4831 23
Geschäftsführer   Fax. +49 7581 4831 11
Knoll Informationssysteme GmbH   http://www.knoll-is.de
Dreiköniggasse 17   mailto:[EMAIL PROTECTED]
88348 Saulgauprivat: mailto:[EMAIL PROTECTED]

___
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] Compiled Python as an Extension file

2000-06-22 Thread Martijn Pieters

On Thu, Jun 22, 2000 at 08:53:41AM +0200, Dr. Peer Griebel wrote:
 I managed to patch zope to accept compiled python files in the
 Extensions directory. I don't know what to do with my path. Where could
 I put it - into the Wiki pages?

Hi Peer,

Patches best go in the Collector:

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

-- 
Martijn Pieters
| Software Engineermailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
|   The Open Source Web Application Server
-

___
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] zope-cocoon interoperability

2000-06-22 Thread drawingincode

hi and thanks to Josh Zeider for responce:)

The very fine and wonderfull cocoon leader posted this today 
Stephano Mazzocchi wrote
I don't know of Zope's support for XML but I like their project, they
are a serious group of developers and I've been told their software
rocks. This is very good for them.

-just a healthy start please 
thanks to all
michael



On Wed, 21 June 2000, drawingincode wrote:

 
 hi, wish to introduce to everyone a thought.
 i see great value in zope and cocoon interoperability.
 
 just to ponder:)
 will elaborate before next dance
 
 here is my post to cocoon_group today:
 thank you
 michael
 (//xml.apache.org..)
 
 IMHO, cocoon and zope interoperability is a win win situation.
 -for my needs with drawingincode.com
 
 currently trying to get support from UUnet/mciWorldcom to fund
 open_source related projects.
 
 status: between a rock and a hardplace
  sales and managers(pre-occupied with thoughts of-t.v.
 commercials)
 
 if somone is friends with Mike O'Dell (VP and chief scientist at UUNet)
 please have him mail me :)
 
 Thank You
 michael p bolger
 [EMAIL PROTECTED]
 
 
 
 
 drawingincode
 
 ___
 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 )

drawingincode

___
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] ZPatterns bug. Very serious.

2000-06-22 Thread mike

Well, it should be:

 ##
 # Add this to see what I mean
 
 try :
 print "%s 'self'=%s" % (
 key,
 slot.values()[0].__dict__
 )
 except :
 print "Nothing to print"
 #
 ###

___
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] ZEO on NT? update

2000-06-22 Thread julio dinis

Hi,

I can see now that the problem is not per Data.fs but per object.
The problem isnt that 2nd Client to run cant write do Data.fs, I found
that its a per object conflict and not Data.fs, both clients can
write to the ZSS but once client B writes to object X, Client A will
never see the changes neither change the object X, but is capable of
changing other objects.

Objects changed buy Client B become "locked" for client A and viceversa.

Anyone testing ZEO?
Best Regards,
Júlio Dinis Silva

Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


___
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] Re: possible bug in dtml-in

2000-06-22 Thread Jonothan Farr

You want sequence-end, not sequence-last. That just bit me yesterday. ;)

--jfarr

"Perl is worse than Python because people wanted it worse."
Larry Wall, 14 Oct 1998

- Original Message -
From: Federico Di Gregorio [EMAIL PROTECTED]
To: Zope Dev [EMAIL PROTECTED]
Sent: Thursday, June 22, 2000 10:16 AM
Subject: [Zope-dev] possible bug in dtml-in


 hi *,

 an external method returns a list of tuples like this one:

 [(elt1, elt2), (elt3, elt4), ...]

 and i want to print something after the last one so i do:

 dtml-in "build_list(args...)"
   ...do some work here...
   dtml-if sequence-last
 should be executed only after last iteration
   /dtml-if
 /dtml-in

 that always worked (when getting stuff out of a DB, for example) but
 with a list built as above, if there is *more* than 1 element i get...

   File /usr/lib/zope/lib/python/DocumentTemplate/DT_Util.py, line 276, in
render
   File /usr/lib/zope/lib/python/OFS/DTMLMethod.py, line 146, in __call__
 (Object: lettera_ricevuta)
   File /usr/lib/zope/lib/python/DocumentTemplate/DT_String.py, line 502, in
__call__
 (Object: lettera_ricevuta)
   File /usr/lib/zope/lib/python/OFS/DTMLMethod.py, line 146, in __call__
 (Object: genera_ricevuta_mail)
   File /usr/lib/zope/lib/python/DocumentTemplate/DT_String.py, line 502, in
__call__
 (Object: genera_ricevuta_mail)
   File /usr/lib/zope/lib/python/DocumentTemplate/DT_In.py, line 691, in
renderwob
 (Object: elenco.keys())
   File /usr/lib/zope/lib/python/DocumentTemplate/DT_Let.py, line 145, in
render
 (Object: key=sequence-item)
   File /usr/lib/zope/lib/python/DocumentTemplate/DT_In.py, line 691, in
renderwob
 (Object: elenco[key][1])
   File /usr/lib/zope/lib/python/DocumentTemplate/DT_Let.py, line 145, in
render
 (Object: row=sequence-item)
   File /usr/lib/zope/lib/python/DocumentTemplate/DT_InSV.py, line 392, in
__getitem__
   File /usr/lib/zope/lib/python/DocumentTemplate/DT_InSV.py, line 194, in last
   File /usr/lib/zope/lib/python/DocumentTemplate/DT_InSV.py, line 182, in
value
 TypeError: getattr, argument 2: expected string, int found

 any idea?
 federico

 --
 Federico Di Gregorio
 MIXAD LIVE System Programmer   [EMAIL PROTECTED]
 Debian GNU/Linux Developer  Italian Press Contact[EMAIL PROTECTED]
   Those who do not study Lisp are doomed to reimplement it. Poorly.
   -- from Karl M. Hegbloom .signature

 ___
 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-dev] possible bug in dtml-in

2000-06-22 Thread Jim Sanford

Shouldn't that be "sequence-end" instead of "sequence-last"?

- Original Message - 
From: Federico Di Gregorio [EMAIL PROTECTED]
To: Zope Dev [EMAIL PROTECTED]
Sent: Thursday, June 22, 2000 12:16 PM
Subject: [Zope-dev] possible bug in dtml-in


hi *,

an external method returns a list of tuples like this one:

[(elt1, elt2), (elt3, elt4), ...]

and i want to print something after the last one so i do:

dtml-in "build_list(args...)"
  ...do some work here...
  dtml-if sequence-last
should be executed only after last iteration
  /dtml-if
/dtml-in

that always worked (when getting stuff out of a DB, for example) but
with a list built as above, if there is *more* than 1 element i get...

  File /usr/lib/zope/lib/python/DocumentTemplate/DT_Util.py, line 276, in render
  File /usr/lib/zope/lib/python/OFS/DTMLMethod.py, line 146, in __call__
(Object: lettera_ricevuta)
  File /usr/lib/zope/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__
(Object: lettera_ricevuta)
  File /usr/lib/zope/lib/python/OFS/DTMLMethod.py, line 146, in __call__
(Object: genera_ricevuta_mail)
  File /usr/lib/zope/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__
(Object: genera_ricevuta_mail)
  File /usr/lib/zope/lib/python/DocumentTemplate/DT_In.py, line 691, in renderwob
(Object: elenco.keys())
  File /usr/lib/zope/lib/python/DocumentTemplate/DT_Let.py, line 145, in render
(Object: key=sequence-item)
  File /usr/lib/zope/lib/python/DocumentTemplate/DT_In.py, line 691, in renderwob
(Object: elenco[key][1])
  File /usr/lib/zope/lib/python/DocumentTemplate/DT_Let.py, line 145, in render
(Object: row=sequence-item)
  File /usr/lib/zope/lib/python/DocumentTemplate/DT_InSV.py, line 392, in __getitem__
  File /usr/lib/zope/lib/python/DocumentTemplate/DT_InSV.py, line 194, in last
  File /usr/lib/zope/lib/python/DocumentTemplate/DT_InSV.py, line 182, in value
TypeError: getattr, argument 2: expected string, int found

any idea?
federico

-- 
Federico Di Gregorio
MIXAD LIVE System Programmer   [EMAIL PROTECTED]
Debian GNU/Linux Developer  Italian Press Contact[EMAIL PROTECTED]
  Those who do not study Lisp are doomed to reimplement it. Poorly.
  -- from Karl M. Hegbloom .signature

___
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-dev] Another bug in DA.py?

2000-06-22 Thread Brian Lloyd

 If I try the following ZSQL method it displays de authorization
window:
 dtml-let Cl="get_Cliente(N_='22606')[0]"
 select * from Cliente where N_='22606'
 /dtml-let
 but if I try the next ZSQL method it displays the correct result (the
difference is theinteger index in the first line):
 dtml-let Cl="get_Cliente(N_='22606')"
 select * from Cliente where N_='22606'
 /dtml-let
 As you can see the "dtml-let" isn't usefull, but this is a simplified
example.
 For reference here is the get_Cliente ZSQL method:
 select * from Cliente where dtml-sqltest N_ type=string
 Very simple.
 Thank you in advance.

Juan - 

This is due to a missing declaration in the Results and Record objects 
returned by SQL Methods. It is fixed in beta 2 (which I hope to release 
by tomorrow at the latest).


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


___
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] Connect String for mysql with SQLRELAY

2000-06-22 Thread Roman Milner

You will need to have a sqlrelay server running somewhere that is
connected to your mysql database.  A given sqlrelay server running on
a given port will only be connected to one database - so the
informaiton below is all that is needed by the sqlrelay adapter.

The sqlrelay xml config file (usually
/usr/local/firstworks/etc/sqlrelay.conf) is where you will configure
what database you want to connect to and what the mysql auth info is.

^Roman



 "HK" == Harald Koschinski [EMAIL PROTECTED] writes:

HK Hallo, does anybody know how to connect to a mysql database
HK with SQLRELAY (the brand new adapter?)  The form-help says:

HK The connection string used for Z SQLRleay Database Connections
HK are as follows:

HK hostname portnumber username password

HK but that´s not enough - where is the Database connecting to.



___
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] External Method Difficulties

2000-06-22 Thread Dieter Maurer

Jason Lee writes:
  ... external method access ...
  
  dtml-call genhash
This says, "call the method (for its side effects)
but discard any return value".

  This produces nothing.  I think I read somewhere that dtml-call returns no data,
  so that might explain it.  I could be wrong.
You are right.

  dtml-var genhash
That should work.

What KeyError do you get?
The error message's head should tell you what key has not been
found. The traceback at the foot (especially the last line)
tells you where the KeyError occured.



Dieter

___
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] Newbie CGI question

2000-06-22 Thread Dieter Maurer

[EMAIL PROTECTED] writes:
  How can I access the variables passed into a DTML called as a Form by
  another DTML? it has the usual ?x=1y=2 ... stuff - I'd really like to loo
  through these.
Usually, between DTML1 (creating the form) and DTML2 (accessing the
form content) is the WWW browser.

I assume this familiar setup (tell me, in case I am wrong):

  you find the form content in the dictionary "REQUEST.form".
  Its content is automatically imported in the DTML namespace.
  Thus, you can simply access it like DTML variables
  (e.g. dtml-var x).

  If there are other variables with the same name,
  you could use something like:

dtml-call "REQUEST['x']"

  or even

   dtml-call "REQUEST.form['x']"


  Also can I construct a string and then evaluate it? ie
  
  varname="therealvar" + "name"
  
  some sort of eval varname
You have restricted evaluation capabilities:

dtml-var "expression"

e.g.

dtml-var "x+y"computes "x + y"
dtml-var "_[name]"renders the DTML var whose
name is given by the variable "name".
dtml-var "REQUEST[name]"
look up the REQUEST variable
whose name is given by "name".

You should read the DTML User Guide (-- zope.org-Documentation)
to learn more.



Dieter

___
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] Local File System (LocalFS) install problems

2000-06-22 Thread Dieter Maurer

J. Atwood writes:
  (I have searched the newsgroups and zope.org)
  
  I downloaded and installed LocalFS (untar in zope dir) restarted Zope (2.1.6
  on Linux running as Nobody). The Local File System is an available object
  but when I try to add it to any folder I get..
  
  Error Type: IOError Error Value: [Errno 13] Permission denied:
  '/usr/local/zope/lib/python/Products/LocalFS/methodAdd.dtml'
The error message is puzzling.

I would expect that your file system is not accessible by
the user "Nobody".
However, I would not expect the get the
error value:  '/usr/local/zope/lib/python/Products/LocalFS/methodAdd.dtml'.
Maybe, this is the (Zope) object that got the IOError.


Dieter

___
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] Reversing acquisition?

2000-06-22 Thread zoper

Hi All,

Here's the situation

I have a tree such that

/index_html
/text_object_1
/text_object_2
/subfolder/text_object_1
/subfolder/text_object_2

where content is:

/index_html

dtml-var standard_html_header
table
trtddtml-var text_object_1 fmt=structured-text/td/tr
trtddtml-var text_object_2 fmt=structured-text/td/tr
/table
dtml-var standard_html_footer

/text_object_1

Just some text of text_object_1

/text_object_2

Just some text of text_object_1

/subfolder/text_object_1

Just some text which is different from /text_object_1

/subfolder/text_object_2

Just some text which is different from /text_object_2

The effect I would like to achieve is:
when user access http://myserver/, 
content of /text_object_1 and /text_object_2 will be shown
while user access http://myserver/subfolder/, 
content of /subfolder/text_object_1 and /subfolder/text_object_2

The point is that there's no index_html in /subfolder
so /index_html will be acquested and by default it displays 
content of /text_object_1 and /text_object_2

The question is: we got text_object_1 and text_object_2 in /subfolder
how could I let the acquested index_html in subfolder to use the
objects inside the subfolder?

If my desired effect could be achieved, that would be very useful
as the whole site could use a master template at root, changing objects
inside folder could show different content. While changing the root
index_html will change the layout of the whole site

Otherwise we have to put the same "index_html" inside every folder
so that default view of folders will show their containing object content.

If this is not easy, is there any other way to achieve the same effect?
I don't want to use something like "http://myserver/?c=some_parameters"
which is my current implementation (where site structured is not preserved
or shown by URL)

Thanks,

Roger

___
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: SiteAccess 2.1.6

2000-06-22 Thread Oleg Broytmann

On Wed, 21 Jun 2000, ethan mindlace fremen wrote:
 Oleg Broytmann wrote:
  
 I run 2.1.4 too, and for the same reason - ZSQL and SiteAccess. I am
  afraid I couldn't upgrade to 2.1.5+ nor 2.2+ due to SiteAccess :(
 
 I am using SiteAccess and 2.1.6 at iMeme, and they play fine together.

   This is one success story among millions failures. I certainly would not
upgrade to 2.1.6.

 SiteAccess is also tracking 2.2, if you take a look at it.

   Yes, I saw the announcement and will try 2.0.0b2 later, when I'd try to
upgrade to 2.2.

Oleg.(All opinions are mine and not of my employer)
 
Oleg Broytmann  Foundation for Effective Policies  [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 jobs.

2000-06-22 Thread Erik Enge

On Wed, 21 Jun 2000, ethan mindlace fremen wrote:

 So I ask for your patience: I will be moving on this soon.

Great!  Be sure to let us know :-).


___
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] Writing to LocalFS

2000-06-22 Thread J. Atwood

(thanks to Jonathon and Dieter... for the permissions problem. That 
did the trick)

Again, after some searching, I am looking for the syntax to write  a 
file / append to a file in a Local File System.

This is certainly where my Python days seem to slow my down b/c I 
would have just:

contents = open('/path/file.txt', "r")

to read and

contents = open('/path/file.txt', "a")

to append.

I am sure that I am missing some bit of Zope Zen here...

Please point me in the right direction...

J

___
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] Validating page entry help

2000-06-22 Thread Graham Chiu

In article [EMAIL PROTECTED]
, Stuart Foster [EMAIL PROTECTED] writes
1. What is the best way to do page validation before it is submited. 
2. If the way I am doing it seems to be an ok way, how do I go BACK with out
losing everything (equivalent of pressing the back button)

Stuart Foster
MediServe Information Systems

Never go back - always go forward!

http://www.zope.com/Members/gchiu/

Explanation of one way to build bullet proof data entry forms

-- 
Regards,  Graham Chiu
gchiuatcompkarori.co.nz
http://www.compkarori.co.nz/index.php
Powered by Interbase and Zope

___
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] Problem with the datatype lines

2000-06-22 Thread Anders Holmbech Nielsen

Hi Zopers,

I have found out that when using the datatype "lines" in my own 
ZClass it won't obey to the locale settings. That means that the 
words coming from "lines" look like: t/370nk. And therefore they 
don't get correctly indexed in the database.
I'm running Zope 2.1.6 (on both linux and winnt 4.0).

Is there an update to this problem or a workaround ?


Thanks in advance
-- 

Regards

-
Anders Holmbech Nielsen | Tlf:  (+45) 70 22 56 00
Software Engineer   | Fax:  (+45) 70 22 57 00
Integrator Uniware A/S  | http:/www.integrator.dk

___
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] Problem to init a DTML Document by uploading a file

2000-06-22 Thread Frédéric Quin

Hi all,


I did'nt manage to init a DTML Document by uploading a file.
I wrote :
dtml-call "manage_addDTMLDocument('my_id_html','','/home/index.html')
I tried too :
dtml-call "manage_addDTMLDocument('my_id_html','',file='/home/index.html')
And also :
dtml-call "manage_addDTMLDocument('my_id_html','',file_path)


Zope always creates a DTML Document and init his body with the path of the file
: it never uploads the file...
I encounter the same problem with manage_addImage which is a bigest problem...


Frederic

___
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 to init a DTML Document by uploading a file

2000-06-22 Thread Oleg Broytmann

On Thu, 22 Jun 2000, Frédéric Quin wrote:
 Zope always creates a DTML Document and init his body with the path of the file
 : it never uploads the file...

   Zope should not download the file itself - imaging the situation when
you work on one computer, and Zope on another. What is the file
/path/to/xxx.html - your local or Zope's?
   Instead of putting the path, put a content of the file yourself.

Oleg.(All opinions are mine and not of my employer)
 
Oleg Broytmann  Foundation for Effective Policies  [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] Dynamic sorting key?

2000-06-22 Thread Steve Spicklemire


This is (mostly) the point if Zieve:

http://www.zope.org/Members/sspickle/Zieve

the good news is it's much more powerful
than 'sort='. The bad news is it's much more complex
than 'sort='. It also (currently) uses a cookie
for each Zieve instance. I'd love any feedback on
making this product more useful/friendly.

-steve

 "Dieter" == Dieter Maurer [EMAIL PROTECTED] writes:

Dieter Zoper writes:
 ..., however I would like to sort on different key by different
 paramenter...
 
 something like "... sort=REQUEST['sort_by'] ..." (doesn't work)
 where sort_by from URL parameter maybe "id", "title", "getSize"
 or "bobobase_modification_time", etc...
Dieter This is a known weakness.

Dieter AFAIK, there is currently no way to treat values for
Dieter "sort" as expressions.  You may try,

Dieter ... sort="REQUEST['sort_by']" ...

Dieter (note the "..."!), but it will probably not work.


Dieter It, obviously, is useful, but I believe nobody has
Dieter implemented it yet.



Dieter Dieter

Dieter ___ Zope
Dieter maillist - [EMAIL PROTECTED]
Dieter http://lists.zope.org/mailman/listinfo/zope ** No cross
Dieter posts or HTML encoding!  ** (Related lists -
Dieter http://lists.zope.org/mailman/listinfo/zope-announce
Dieter 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] System variables

2000-06-22 Thread Matthias Füsting

Hi,

I import a Web Site with hundreds of pages
into Zope.
Every pages use the folder "icon" for images.
As I create a folder with the name "icon", a error
message came from Zope. --
Error Type: Bad Request
Error Value: The id icon is invalid - it is already in use.

I think "icon" is a system-variable.

My Question:
Is there any possibility to create this folder?


Thanks.

___
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] Writing to LocalFS

2000-06-22 Thread Rik Hoekstra




(thanks to Jonathon and Dieter... for the permissions problem. That
did the trick)

Again, after some searching, I am looking for the syntax to write  a
file / append to a file in a Local File System.

This is certainly where my Python days seem to slow my down b/c I
would have just:

contents = open('/path/file.txt', "r")

to read and

contents = open('/path/file.txt', "a")

to append.

I am sure that I am missing some bit of Zope Zen here...

Please point me in the right direction...




Not sure if this was the question, but here's a relevant quote from the
python library reference
http://www.python.org/doc/current/lib/built-in-funcs.html#l2h-139

quote
Return a new file object (described earlier under Built-in Types). The first
two arguments are the same as for stdio's fopen(): filename is the file name
to be opened, mode indicates how the file is to be opened: 'r' for reading,
'w' for writing (truncating an existing file), and 'a' opens it for
appending (which on some Unix systems means that all writes append to the
end of the file, regardless of the current seek position).

Modes 'r+', 'w+' and 'a+' open the file for updating (note that 'w+'
truncates the file). Append 'b' to the mode to open the file in binary mode,
on systems that differentiate between binary and text files (else it is
ignored). If the file cannot be opened, IOError is raised.
/quote

hth

Rik


___
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] ZServer+SiteAccess+Apache+SSL

2000-06-22 Thread T.J. Mannos

Wayne,

I just wrote a HOWTO documenting how to do exactly that.  One thing that I
didn't mention (that I probably should have) is that communication between
Apache and ZServer is not necessarily secure, so you'll definitely want them
both on the same machine!

http://www.zope.com/Members/unfo/apche_zserver_ssl/index_html

Good luck,
T.J.

- Original Message -
From: Wayne Izatt [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 20, 2000 1:11 AM
Subject: [Zope] ZServer+SiteAccess+Apache+SSL


 I've just managed to get ZServer running behind Apache with SiteAccess
 (thanks for the how-to, anser!)

 Now, has anyone managed to configure SSL into a mix like this? Seems to
 me I should be able to go through the standard SSL setup for Apache, and
 not worry too much more abou the ZServer component of the architecture.

 thanks

 Wayne


 ___
 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] python product - newbie

2000-06-22 Thread Loren Stafford

I don't know about registering nested classes. I think Dieter Maurer
answered that in his response to your original email.

http://www.zope.org/Members/Zen/howto/ProductAPITutorial is the old way of
doing it.

http://www.zope.org/Members/gtk/Boring/HowTo-Boring documents the new way by
example.

http://www.zope.org/Members/michel/Projects/Interfaces/ProductRegistration
is the new official documentation. There's an example of two classes there
that might be relevant.

-- Loren


- Original Message -
From: "Bak @ kedai" [EMAIL PROTECTED]
To: "Loren Stafford" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: June 21, 2000 08:51 PM
Subject: Re: [Zope] python product - newbie

[snip __init__.py]


 i looked at the old product API, but got more confused because i think
Boring
 is based on another way of making product.  is that so?

 thabks



___
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 in the UK

2000-06-22 Thread Robin Becker

In article 006101bfdbf1$da7eaf40$[EMAIL PROTECTED], peter be
[EMAIL PROTECTED] writes
Hello Britts!
 
I live and work in London as a webdeveloper, but I haven't had a 
chance to stuck me teeth to some Z work here yet.
Are there no Zope developers in the UK, and especially in London 
where I live?
 
If you know about how Zoped UK (London) is on Zope, please let me 
know.
 
Best Regards, Peter 
 
I live in London  I have done some work in Zope. I wasn't really
'employed' doing it though (I gave my services for free to NIESR).
I learned a lot about Zope in the process.
-- 
Robin Becker

___
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: SiteAccess 2.1.6

2000-06-22 Thread Wright, Geoff

Oleg Broytmann writes:

  I am using SiteAccess and 2.1.6 at iMeme, and they play 
  fine together.
 
 This is one success story among millions failures. I 
 certainly would not upgrade to 2.1.6.

I am running SiteAccess on two 2.1.6 installs -- one on a RedHat 6.1 box and
the other on a RH6.2 box.  Both work like a champ.

These were both fresh 2.1.6 installs.  Does the problem typically occur
w/upgrades or did I just get lucky twice?  I ask because I have a 2.1.4
install that I've been planning to upgrade -- and it serves several domains
and depends heavily upon SiteAccess.

 Oleg.(All opinions are mine and not of my employer)
  
 Oleg Broytmann  Foundation for Effective Policies 
  [EMAIL PROTECTED]
Programmers don't die, they just GOSUB without RETURN.

-glw

___
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: Writing to LocalFS

2000-06-22 Thread Jonothan Farr

 Again, after some searching, I am looking for the syntax to write  a
 file / append to a file in a Local File System.

 This is certainly where my Python days seem to slow my down b/c I
 would have just:

 contents = open('/path/file.txt', "r")

 to read and

 contents = open('/path/file.txt', "a")

 to append.

 I am sure that I am missing some bit of Zope Zen here...

 Please point me in the right direction...


To write a new file you would use the manage_upload method. To append a file,
you could read the contents of an existing file, append your data, then call
manage_upload to overwrite the file. See the LocalFS/DTML faq at
http://www.zope.org/Members/jfarr for information on how to access the contents
of a local file.

You may also consider just using an external method to do what you're trying to
accomplish.

--jfarr



___
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] Reversing acquisition?

2000-06-22 Thread Patrick Lewis

Try changing /index_html as follows:

dtml-var standard_html_header
table
trtddtml-var "PARENTS[0].text_object_1" fmt=structured-text
/td/tr
trtddtml-var "PARENTS[0].text_object_2" fmt=structured-text
/td/tr
/table
dtml-var standard_html_footer

Basically force Zope to look in the current folder first.

--
Patrick Lewis [EMAIL PROTECTED] 

On Thu, Jun 22, 2000 at 11:03:37PM +0800, [EMAIL PROTECTED] wrote:
 Hi All,
 
 Here's the situation
 
 I have a tree such that
 
 /index_html
 /text_object_1
 /text_object_2
 /subfolder/text_object_1
 /subfolder/text_object_2
 
 where content is:
 
 /index_html
 
   dtml-var standard_html_header
   table
   trtddtml-var text_object_1 fmt=structured-text/td/tr
   trtddtml-var text_object_2 fmt=structured-text/td/tr
   /table
   dtml-var standard_html_footer
 
 /text_object_1
 
   Just some text of text_object_1
 
 /text_object_2
 
   Just some text of text_object_1
 
 /subfolder/text_object_1
 
   Just some text which is different from /text_object_1
 
 /subfolder/text_object_2
 
   Just some text which is different from /text_object_2
 
 The effect I would like to achieve is:
 when user access http://myserver/, 
 content of /text_object_1 and /text_object_2 will be shown
 while user access http://myserver/subfolder/, 
 content of /subfolder/text_object_1 and /subfolder/text_object_2
 
 The point is that there's no index_html in /subfolder
 so /index_html will be acquested and by default it displays 
 content of /text_object_1 and /text_object_2
 
 The question is: we got text_object_1 and text_object_2 in /subfolder
 how could I let the acquested index_html in subfolder to use the
 objects inside the subfolder?
 
 If my desired effect could be achieved, that would be very useful
 as the whole site could use a master template at root, changing objects
 inside folder could show different content. While changing the root
 index_html will change the layout of the whole site
 
 Otherwise we have to put the same "index_html" inside every folder
 so that default view of folders will show their containing object content.
 
 If this is not easy, is there any other way to achieve the same effect?
 I don't want to use something like "http://myserver/?c=some_parameters"
 which is my current implementation (where site structured is not preserved
 or shown by URL)
 
 Thanks,
 
 Roger
 
 ___
 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] Quickstart problems...

2000-06-22 Thread addyd

Hi all,

Recently set up my first IIS server. Installed ActivePerl and Python.
Installed latest Zope beta. Restarted and looked good to go. Got the
"Welcome to Zope" page at: http://xanadu.unk.edu:8080/

Click on the "QuickStart" link. Good.
Click on any tree symbol "+". Good.
Click on any next level down tree symbol: Zope Error:
Error Type: TypeError
Error Value: len() of unsized object

Source says (Greek to me, at this point):
!--
Traceback (innermost last):
  File D:\xanadu\lib\python\ZPublisher\Publish.py, line 222, in
publish_module
  File D:\xanadu\lib\python\ZPublisher\Publish.py, line 187, in publish
  File D:\xanadu\lib\python\Zope\__init__.py, line 221, in
zpublisher_exception_hook
(Object: ElementWithAttributes)
  File D:\xanadu\lib\python\ZPublisher\Publish.py, line 171, in publish
  File D:\xanadu\lib\python\ZPublisher\mapply.py, line 160, in mapply
(Object: index_html)
  File D:\xanadu\lib\python\ZPublisher\Publish.py, line 112, in call_object
(Object: index_html)
  File D:\xanadu\lib\python\OFS\DTMLMethod.py, line 168, in __call__
(Object: index_html)
  File D:\xanadu\lib\python\DocumentTemplate\DT_String.py, line 500, in
__call__
(Object: index_html)
  File D:\xanadu\lib\python\TreeDisplay\TreeTag.py, line 155, in render
(Object: Outline)
  File D:\xanadu\lib\python\TreeDisplay\TreeTag.py, line 261, in tpRender
(Object: ElementWithAttributes)
  File D:\xanadu\lib\python\TreeDisplay\TreeTag.py, line 515, in
tpRenderTABLE
(Object: ElementWithAttributes)
(Info: (['ABI=', [['ABs=', [['ABw=', []],
{'childless_decoration': '', 'id': 'tpId', 'leaves': 'dtcTemplate', 'url':
'tpURL', 'name': 'Outline', 'branches': 'tpValues', '': 'Outline'},
[['ABI=', [['ABs=', [['ABw=', []]],
[['ABI=', [['ABs=', [['ABw=', []]]))
  File D:\xanadu\lib\python\TreeDisplay\TreeTag.py, line 515, in
tpRenderTABLE
(Object: ElementWithAttributes)
(Info: (['ABs=', [['ABw=', [,
{'childless_decoration': '', 'id': 'tpId', 'leaves': 'dtcTemplate', 'url':
'tpURL', 'name': 'Outline', 'branches': 'tpValues', '': 'Outline'},
[['ABI=', [['ABs=', [['ABw=', []]],
[['ABs=', [['ABw=', []))
  File D:\xanadu\lib\python\TreeDisplay\TreeTag.py, line 478, in
tpRenderTABLE
(Object: ElementWithAttributes)
  File D:\xanadu\lib\python\OFS\DTMLMethod.py, line 164, in __call__
(Object: dtcTemplate)
  File D:\xanadu\lib\python\DocumentTemplate\DT_String.py, line 500, in
__call__
(Object: dtcTemplate)
  File D:\xanadu\lib\python\DocumentTemplate\DT_In.py, line 657, in
renderwob
(Object: _.namespace(standard_html_header='', standard_html_footer=''))
TypeError: (see above)

--

Do I have something misconfigured, or is Quickstart broken with latest
beta?


Darren Addy
Internet Specialist and
Interim Web Presence Coordinator
Office of Information Technology Services
University of Nebraska at Kearney


___
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] ZODBC DA Fails to show in installed products.

2000-06-22 Thread RMarkman

I just installed Zope 2.1.6 and the ZODBCDA (ZODBCDA-3.1.0b2-win32-x86.tgz). 
After unpacking into the lib tree, ZODBC doen't show as an installed product. 
I've stopped and started the service, rebooted, etc.  There is no entry for the
ZODBCDA in product management, thus no way to look at the traceback log.  Any
ideas?

A Newbie to Zope,

Russ


___
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] Reversing acquisition?

2000-06-22 Thread Jeff K. Hoffman

On Thu, 22 Jun 2000, Patrick Lewis wrote:

 Try changing /index_html as follows:
 
 dtml-var standard_html_header
 table
 trtddtml-var "PARENTS[0].text_object_1" fmt=structured-text
 /td/tr
 trtddtml-var "PARENTS[0].text_object_2" fmt=structured-text
 /td/tr
 /table
 dtml-var standard_html_footer
 
 Basically force Zope to look in the current folder first.

Additionally:

Is your root index_html a DTML Method or a DTML Document?

If it's a DTML Method, it should work as you desire; DTML Methods are the 
odd bird, and acquire differently than everyone else. DTML Methods
acquire other objects from the context in which they are called. This is
how standard_html_header and standard_html_footer work.

DTML Documents, however, acquire like every other Zope object, and will
behave as you have described: acquire text_object_1 and text_object_2
from the actual location of the DTML Document.

--Jeff

---
Jeff K. Hoffman   704.849.0731 x108
Chief Technology Officer  mailto:[EMAIL PROTECTED]
Going Virtual, L.L.C. http://www.goingv.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] Quickstart problems...

2000-06-22 Thread Brian Lloyd

 
 Do I have something misconfigured, or is Quickstart broken with latest
 beta?
 
 
 Darren Addy

Darren - 

The QuickStart was broken in beta 1. Its fixed in beta 2 (out late 
today or early tomorrow).


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] Quickstart problems...

2000-06-22 Thread addyd


Brian,

Thanks for the quick reply.
What is the procedure for upgrading to beta 2? Relatively painless?
Is there an Uninstall I will need to do for beta 1?

Also, it appears that How-To: Zope2, IIS, and PCGI (
http://www.zope.org/Members/brianh/iis_howto/index_html ) is outdated (if
you install the Zope .exe). It appears to be unnecessary now. Would someone
confirm?

Darren Addy
Internet Specialist and
Interim Web Presence Coordinator
Office of Information Technology Services
University of Nebraska at Kearney


___
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] newbie question

2000-06-22 Thread ethan mindlace fremen

Alexander N Gould wrote:
 
 Now that I've set up some virtual hosts off my zserver, I have another
 question.  These sites (each in a folder in the zope DB) share a lot of
 data in the form of some custom zobjects representing contacts, calendar
 items, and posts to discussion boards.  If I put these objects in folders
 on the root level, how do I access them from dtml methods somewhere else?
 Or am I going about this all wrong?

dtml-with SomeTopFolder
dtml-var SomeObject
/dtml-with

A revamped "transparent folder" will allow you to make global objects
more easily sometime in the near future (after 2.2 release)

ethan mindlace fremen
Zopatista Community Liason

___
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] Adding users via external method

2000-06-22 Thread ethan mindlace fremen

Timothy Grant wrote:

 I'm working on a project where it would be very nice to add all the original
 users via a script.
 
 I'm working with an external method that should--I believe use manage_user()
 to add the users.

I use a dtml_method for this, actually. I don't know how to do it with
an external method (or why you would want to).

I have an external method that does external things, like call adduser
on the system, but the things you do inside the ZODB are probably better
done in a Product or just a regular method.

hope that helps,

~ethan fremen

___
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] Stupid question of the day

2000-06-22 Thread Andy McKay

How do I find the size of the results returned by the catalog?


___
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 2.2 beta 2 released

2000-06-22 Thread Brian Lloyd

Hi all,

Zope 2.2.0 beta 2 has been released - you can download it from
Zope.org:

http://www.zope.org/Products/Zope/2.2.0b2/

This release resolves the outstanding issues from beta 1 as well 
as the integrated fix for the recent security issue and further 
refinements of the help system. 

For more information, see the CHANGES.txt file for the release:

http://www.zope.org/Products/Zope/2.2.0b2/CHANGES.txt

If you are still using a 2.1.x version of Zope, be sure to see the 
document "Upgrading to Zope 2.2" for information on the recent 
changes to the Zope security model and other upgrade information.

http://www.zope.org/Products/Zope/2.2.0b2/upgrading_to_220


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] Select Box Problem

2000-06-22 Thread caseman

The entire form is in a dtml-in that has a customerid value. I would like
to have the current customer show up in this box. How would I tell the
select box to select the current custoemer as default?

I had a similar issue on a form I created. There are basically two ways to
make this work. One is server-side the other using JavaScript. I chose the
former for mine.

I simply just inserted the chosen selection as the first item in the list
then followed it with the query data.  Assuming when the form is rendered
there is a REQUEST variable customerid as your example it would look
something like this:

select name=customerId
dtml-in sql_getCustomerName
option value=dtml-var customerIddtml-var firstName dtml-var
lastName
/dtml-in
dtml-in "sql_getCustomers(omit=customerId)"
option value=dtml-var customerIddtml-var firstName dtml-var
lastName
/dtml-in
/select

This should do it. The first query (sql_getCustomerName) will return one
record of the customer info by customerId. This returns the current
customer's name for the list. The second query (sql_getCustomers) returns
every customer except the one specified by omit. The omit argument could be
made optional to return all in other instances.

Hope that helps,
Casey Duncan


___
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] More reliable Database Adapter for linux

2000-06-22 Thread Rogerio Atem de Carvalho

 
 Maybe the correct question is the most reliable combo 
DA+DB.
 
 Regards.
 

How about: Zope+ZODB ?

I have a question: Will ZODB have something like OQL?
The problem in using ZODB is to do simple queries and 
link different class object instances in queries (SQL 
join).
It is hard to do simple things in ZODB like aggregate 
functions (sum, max ...)
That's why I use an external RDBMS...

regards,

Rogerio Atem.

---
E-mail enviado pelo servidor do CEFETCampos

___
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] Fwd: Re: [Zope-dev] ZEO on NT? update

2000-06-22 Thread julio dinis




From: "julio dinis" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [Zope-dev] ZEO on NT? update
Date: Thu, 22 Jun 2000 14:05:07 PDT

Ok. :-)

Continuing with the ZODB.POSException.Conflit...

Now I know the problem with Zeo on NT is with the ClientStorage
and not with the ServerStorage.
You ask why? Because Ive tested different setup to come to this
conclusion.


ZSS - Zeo Storage Server
ZCS - Zeo Client Storage

1- First setup:

Machine 1: Running ZSS on NT
Machine 2: Runninc ZCS on NT
Machine 3: Running ZCS on NT

Conclusion: with this setup clients ARE NOT able to view/write changes
to objects changed by other clients.

2- Second Setup:

Machine 1: Running ZSS on Linux
Machine 2: Runninc ZCS on NT
Machine 3: Running ZCS on NT

Conclusion: with this setup clients ARE NOT able to view/write changes
to objects changed by other clients.

3- third Setup:

Machine 1: Running ZSS on NT
Machine 2: Runninc ZCS on Linux
Machine 3: Running ZCS on Linux

Conclusion: with this setup clients ARE able to view/write changes
to objects changed by other clients.

4- Fourth Setup:

Machine 1: Running ZSS on NT
Machine 2: Runninc ZCS on Linux
Machine 3: Running ZCS on Linux
Machine 4: Running ZCS on NT
Machine 5: Running ZCS on NT

Conclusion: with this setup ALL LINUX clients ARE able to view/write 
changes to objects changed by other clients. All NT clients ARE NOT able to 
view/write objects changed by other clients.

NT clients can view/write objects that have never been changed. But
cant viewchanges/change objects changed by other clients. However
linux clients can viewchanges/change objects changed by other NT and Linux 
clients.

So my conclusion is that there is a problem with Zeo Clients on NT.
And I guess is related with the invalidator, the NT clients cant
see changes others do to objects, or something is just a guess.
I'm using cPickle.pyd which is cPickle.so on Linux. Maybe there
is a diference with this shared object from Linux to Nt.

I'm using the win32 version of Zope2.2.0b1, and ZEO-0.2.

Ok, ./dig_resume

Julio Dinis Silva



From: "julio dinis" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [Zope-dev] ZEO on NT? update
Date: Thu, 22 Jun 2000 09:37:31 PDT

Hi,

I can see now that the problem is not per Data.fs but per object.
The problem isnt that 2nd Client to run cant write do Data.fs, I found
that its a per object conflict and not Data.fs, both clients can
write to the ZSS but once client B writes to object X, Client A will
never see the changes neither change the object X, but is capable of
changing other objects.

Objects changed buy Client B become "locked" for client A and viceversa.

Anyone testing ZEO?
Best Regards,
Júlio Dinis Silva

Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


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



Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


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



Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] Object URLs like Zope with Java servlets / EJBs?

2000-06-22 Thread Hamish Lawson

Are there any Zopistas with experience also of Java servlets/EJBs? 
From my reading so far I get the impression that servlets/EJBs 
roughly correspond to Zope's products. What I'm not sure is whether 
any Java app servers have Zope's concept of having URL paths to 
object instances, or whether they only provide URLs to the 
servlets/EJBs themselves, with passed parameters being used instead 
to specify a particular instance?

Hamish Lawson





Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

___
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] Is DTML a bastardized form of XML, or valid XML?

2000-06-22 Thread Kevin Howe

Hi,

just wondering if DTML is actually a valid form of XML, or a bastardized
version of XML created specifically for ZOPE. I've done a little reasearch
on XML, and I it seems like DTML tags such as:

dtml-var "..."or

dtml-if "..."
...
dtml-else
...
/dtml-if

aren't really valid XML forms. The following would make more sense:

dtml-var expr="..."/or

dtml-if expr="..."
...
dtml-else
...
/dtml-else
...
/dtml-if

Anyone care to enlighten me?

Thanks,
kh





___
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 product: NISUserFolder

2000-06-22 Thread Jonothan Farr

I've created a new product similar to etcUserFolder that authenticates against
an NIS database.

http://www.zope.org/Members/jfarr/Products/NISUserFolder/

This also improves upon the etcUserFolder product by defining a separate role
for each user group, allowing more fine-grained control of which users have
which permissions.

I've submitted a patch to the collector containing these same changes to
etcUserFolder. If DC decides not to include them I'll release this as a separate
product.

Enjoy!
--jfarr

"Perl is worse than Python because people wanted it worse."
Larry Wall, 14 Oct 1998



___
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 2.2 beta 2 released

2000-06-22 Thread Gregory Tucker

Hi,

If I want to start learning Zope from scratch, should I use the "stable"
release, 2.1.x, or should I start with the latest beta release? How good is
the documentation for the beta release? Will it have bugs that are
frustrating to a new learner?

Your feedback is appreciated.

Regards,
Greg

Brian Lloyd wrote:
 
 Hi all,
 
 Zope 2.2.0 beta 2 has been released - you can download it from
 Zope.org:
 
 http://www.zope.org/Products/Zope/2.2.0b2/
 
 This release resolves the outstanding issues from beta 1 as well
 as the integrated fix for the recent security issue and further
 refinements of the help system.
 
 For more information, see the CHANGES.txt file for the release:
 
 http://www.zope.org/Products/Zope/2.2.0b2/CHANGES.txt
 
 If you are still using a 2.1.x version of Zope, be sure to see the
 document "Upgrading to Zope 2.2" for information on the recent
 changes to the Zope security model and other upgrade information.
 
 http://www.zope.org/Products/Zope/2.2.0b2/upgrading_to_220
 
 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 )

-- 
 .---. .---. .--- .---.   |  Gregory Tucker, Tokyo, Japan
 |---. | |- --- |---.   |  
 `---' `-'`-'`--- `---'   |  "Our Father, who art in Redmond,
 My opinions are my own.  |  William by thy name..."


___
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] Problem with LocalFS

2000-06-22 Thread jensebaer



Hello,

I want to upload files to LocalFS. 
I created a LocalFS with the id: 
images

I don´t want to use the existing addImageForm to 
create a new Image in the LocalFS.

I want to use two DTML Methods

uploadform

 form action="savefile" methode="POST" 
ENCTYPE="multipart/form-data" Fileinput type="file" 
name="file" size="25" value=""br input type="submit" 
value="UPLOAD"


and send the data to:

savefile

dtml-call 
"images.manage_addImages('newfile',file,'titleof tempfile')"


but this do not create a new image in the 
LocalFS.
It creates an image in the Folder in which the the 
LocalFS exists.

I do not understand why 

Jens


[Zope] Re: Problem with LocalFS

2000-06-22 Thread Jonothan Farr

This is a known problem with LocalFS. The only workaround I know of is to put
your dtml code into a file, give it a .dtml extension, and place it in the
directory you want to upload to. This problem will be addressed in the next
version of LocalFS.

--jfarr

"Perl is worse than Python because people wanted it worse."
Larry Wall, 14 Oct 1998

- Original Message -
From: jensebaer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 22, 2000 5:23 PM
Subject: [Zope] Problem with LocalFS


Hello,

I want to upload files to LocalFS.
I created a LocalFS with the id: images

I don´t want to use the existing addImageForm to create a new Image in the
LocalFS.

I want to use two DTML Methods

uploadform

  form action="savefile" methode="POST" ENCTYPE="multipart/form-data"
  Fileinput type="file" name="file" size="25" value=""br
  input type="submit" value="UPLOAD"


and send the data to:

savefile

dtml-call "images.manage_addImages('newfile',file,'titleof tempfile')"


but this do not create a new image in the LocalFS.
It creates an image in the Folder in which the the LocalFS exists.

I do not understand why 

Jens



___
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 2.2 beta 2 released

2000-06-22 Thread T.J. Mannos

Umm, help?

2000-06-23T01:49:23 ERROR(200) ZODB Couldn't load state for
'\000\000\000\000\000\000\003z'
Traceback (innermost last):
  File /usr/Zope-2.2.0b2-solaris-2.6-sparc/lib/python/ZODB/Connection.py,
line 441, in setstate
TypeError: ('len() of unsized object', class Shared.DC.ZRDB.DA.SQL at
641960, None)

Do I need to update my ZMySQLDA?  I'm using version 2.0.0 currently.

- T.J.

- Original Message -
From: Brian Lloyd [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, June 22, 2000 3:19 PM
Subject: [Zope] Zope 2.2 beta 2 released


 Hi all,

 Zope 2.2.0 beta 2 has been released - you can download it from
 Zope.org:

 http://www.zope.org/Products/Zope/2.2.0b2/

 This release resolves the outstanding issues from beta 1 as well
 as the integrated fix for the recent security issue and further
 refinements of the help system.

 For more information, see the CHANGES.txt file for the release:

 http://www.zope.org/Products/Zope/2.2.0b2/CHANGES.txt

 If you are still using a 2.1.x version of Zope, be sure to see the
 document "Upgrading to Zope 2.2" for information on the recent
 changes to the Zope security model and other upgrade information.

 http://www.zope.org/Products/Zope/2.2.0b2/upgrading_to_220


 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 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: Is DTML a bastardized form of XML, or valid XML?

2000-06-22 Thread Martijn Pieters

On Thu, Jun 22, 2000 at 05:45:58PM -0700, Hung Jung Lu wrote:
 The rest should be handled through a good GUI (Graphical User Interface),
 with fancy stuff like collapsable panel items. I hope Digicool is doing
 something like this with their Mozilla project.

This kind of feature may indeed become part of Zope Studio _one day_. I first
of all want Zope Studio to be a working product.

For a first version, the goal of Zope Studio to provide a GUI alternative for
the current management interface, but with the same basic functionality. For
DTML editing this means that it will provide no more than basic text editing.

I am in the process of clarifying all this right now, before we do any more
development. The Zope Studio ZWiki will, over the coming days, contain much
more information on what Zope Studio is about.

-- 
Martijn Pieters
| Software Engineermailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
|   The Open Source Web Application Server
-

___
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] External Method Difficulties

2000-06-22 Thread Jason Lee

Dieter Maurer wrote:
   dtml-var genhash
 That should work.
 
 What KeyError do you get?
 The error message's head should tell you what key has not been
 found. The traceback at the foot (especially the last line)
 tells you where the KeyError occured.

After I posted, I did some more wild, random, send-up-a-prayer hacking and I
think I discovered the problem.  It appears that the name of the external method
and the name of the module file must be the same.  At least, I changed the name
of the file to genhash.py and things worked.  It could be that the file was
called md5.py, and since there is a Python module called md5, the interpreter
may have been getting confused.   I don't know which.  Can any one shed some
light on that?

Thanks for your help, Dieter!

-- 
Jason Lee   |Maybe it's good that I can't afford anti-psychotic 
[EMAIL PROTECTED]|medication. It frees me up to plan the assassination 
Programmer/Analyst  |of Deputy Dawg.  -- The Onion

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