RE: [Zope] Newbie Questions

2001-01-08 Thread Cornelis J. de Brabander

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Alex
 Reid
 Sent: maandag 8 januari 2001 15:33
 To: [EMAIL PROTECTED]
 Subject: [Zope] Newbie Questions

 - How would I display the value at a variable whose name is stored in
 another variable?
 In Perl this would simply be a double dollar type of affair
 $name = "Alex";
 $myvar = "name";
 print $$myvar;


dtml-var "_[myvar]"

cb



___
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] objectValues Question

2001-01-03 Thread Cornelis J. de Brabander

By applying your MyListFiles method within the context of your DTML Document
you are asking for files that are contained by your DTML Document and there
are none. By 'viewing' your method in the management interface you are
applying your method within the context of the folder that contains it, and
that folder apparently contains file's. If you want to use your method
within a DTML Document with the very same result you could use for instance:

dtml-in "PARENTS[0].objectValues('File')"

See also:
http://www.zope.org/Members/michel/HowTos/DTMLMethodsandDocsHowTo

Cornelis J. de Brabander
==
Department of Education, Leiden University
P.O.Box 9555, NL-2300 RB Leiden
+31 71 527 3422/3401
[EMAIL PROTECTED]
==

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Koch
 Marc
 Sent: woensdag 3 januari 2001 12:16
 To: '[EMAIL PROTECTED]'
 Subject: [Zope] objectValues Question


 Hi,

 I'm new to Zope and while 'playing' around I wondered about the following:

 I've created a DTML method (called MyListFiles) that lists the 'File'
 objects contained in a folder:

 ul  dtml-in "objectValues('File')"   lia href="dtml-var
 absolute_url"dtml-var id/a/li  /dtml-in /ul
 This works as expected when I run it using the 'View' tab.

 Now when I create a DTML document and call this method like this:

 dtml-var MyListFiles

 it produces no output.

 Why?


 Thank You for any help

 -

 Un courrier électronique n'engage pas son émetteur. Tout message
 susceptible de comporter un engagement doit être confirmé par un
 écrit dûment signé.

 An electronic message is not binding on its sender. Any message
 referring to a binding engagement must be confirmed in writing
 and duly signed.

 Ein elektronischer Brief bzw. eine elektronische Nachricht ist
 für den Absender nicht verbindlich. Jede Nachricht,  welche eine
 Verpflichtung beinhaltet, muß schriftlich bestätigt und
 ordnungsgemäß unterzeichnet werden.

 -



 ___
 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] (no subject)

2000-12-11 Thread Cornelis J. de Brabander

I have an educational application in which teachers and students can upload
all kinds of documents as files. Since I upgraded from Zope 2.0.1 to 2.1.6 I
have a problem with html-documents that are added as files. What happens is
that the text in the last HTML-paragraph is cut off somewhere in the middle.
Checking the source of the added document shows that after the point where
the text is cut off all text and codes have disappeared. Does anybody have
similar experiences and/or a clue as to what might cause this strange
behavior? The file is added by a method that essentially is a wrapper around
'manage_addFile'

tia, cb

Cornelis J. de Brabander
==
Department of Education, Leiden University
P.O.Box 9555, NL-2300 RB Leiden
+31 71 527 3422/3401
[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] import/export

2000-11-30 Thread Cornelis J. de Brabander

Guessing that you mean a Gadfly table: you need to copy the table you need
from the ../var/Gadfly/.. directory to your other machine.
hth, cb

Cornelis J. de Brabander
==
Department of Education, Leiden University
P.O.Box 9555, NL-2300 RB Leiden
+31 71 527 3422/3401
[EMAIL PROTECTED]
==

 -Original Message-
 Just to try , by using import/export i ported the product to another
 windows 98 machine.I am able to open the whole folder in the
 ported machine.
 The problem is i am not able to add a new record there using the existing
 script.If write new script to add record to the same table it
 works . so why
 it this happens like this  ?. Do we need to import any other files?.When i
 add a record using existing scripts it asks for username  password.
 when i type it , it doesn't take.

  Thanks,
jacintha


 ___
 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] opinions please

2000-11-14 Thread Cornelis J. de Brabander

About webdav I don't know. In your first option it looks strange to me to
use email for your purpose. I would create a form with fields for the
attributes of the file to be uploaded an a field input type 'file'. Then I
would create a action method that essentially is a wrapper for the
'manage_addFile' method.
cb
 Subject: [Zope] opinions please


 hello,

 i am searching for opinions on a project i am considering. the
 project is to
 create a product or script to allow users to email documents into Zope as
 attachments. then the documents are to be placed in the proper folder
 according to information in the subject line of the email they rode in on.
 what i would like to know is, is this possible? if it is, how
 hard will this
 be to implement?

 the other idea was to create a client app where users can drop
 the document
 onto a desktop icon and the app uses webDAV to put it into Zope.
 would this
 be easier or harder?




___
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] Referecing items in subfolders

2000-11-14 Thread Cornelis J. de Brabander

You could use:

dtml-with resources
dtml-var standard_header
/dtml-with

I would suggest, however, to reorganize your design and to put index_html in
a subfolder of a folder where standard-header and standard_footer reside and
let acquisition take care of the work.
cb


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
 Pieter Claerhout
 Sent: dinsdag 14 november 2000 10:52
 To: '[EMAIL PROTECTED]'
 Subject: [Zope] Referecing items in subfolders


 Hello all,

 have a small question. Imagine you have the following folder
 structure in Zope:

 http://testserver.pclaerhout.com/index_html
 http://testserver.pclaerhout.com/resources/standard_header
 http://testserver.pclaerhout.com/resources/standard_footer

 How can I reference the standard_header document (which is in a
 subdirectory) from the index_html document, for example using a
 dtml-var standard_header?? I have the same question if the
 files in the subdirectory are for example SQL methods. I'm just
 looking for a way to separate different kinds of documents.

 Kind regards,


 Pieter

 ___
 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] Referecing items in subfolders

2000-11-14 Thread Cornelis J. de Brabander

Sure, but the setup you sketch is different in design than Pieter's. He just
wanted to organize 'different kinds of documents'.
cb

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Matt
 Sent: dinsdag 14 november 2000 13:09
 To: [EMAIL PROTECTED]
 Subject: Re: [Zope] Referecing items in subfolders


 I would have thought the dtml-with resources way was possibly a
 more flexible
 way of organizing things such that instead of making a base
 product that people
 duplicate and customize, all you need to do is set custom
 resource folders for
 each person and load these into the name space of the single
 instance of the
 product to give it a custom skin or user specific data.  It is
 also why most of
 my base product are methods that can't hold any properties that may get
 clobbered.   I tend to place headers in these user resource
 directories so that
 they can make them as fancy as they want.  Acquisition works
 nicely that way.

 matt



 "Cornelis J. de Brabander" wrote:

  You could use:
 
  dtml-with resources
  dtml-var standard_header
  /dtml-with
 
  I would suggest, however, to reorganize your design and to put
 index_html in
  a subfolder of a folder where standard-header and
 standard_footer reside and
  let acquisition take care of the work.
  cb
 
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
   Pieter Claerhout
   Sent: dinsdag 14 november 2000 10:52
   To: '[EMAIL PROTECTED]'
   Subject: [Zope] Referecing items in subfolders
  
  
   Hello all,
  
   have a small question. Imagine you have the following folder
   structure in Zope:
  
   http://testserver.pclaerhout.com/index_html
   http://testserver.pclaerhout.com/resources/standard_header
   http://testserver.pclaerhout.com/resources/standard_footer
  
   How can I reference the standard_header document (which is in a
   subdirectory) from the index_html document, for example using a
   dtml-var standard_header?? I have the same question if the
   files in the subdirectory are for example SQL methods. I'm just
   looking for a way to separate different kinds of documents.
  
   Kind regards,
  
  
   Pieter
  
   ___
   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] Gadfly

2000-11-01 Thread Cornelis J. de Brabander

I am not sure what you all are talking about, but in anticipation of a more
adequate solution I am using a Gadfly database for a few years (sic!) now.
The table was created with a Z SQL method and is populated with a second Z
SQL method. Every now and then, when a restart of Zope is necessary, that
does not affect the contents of my Gadfly table in any sense. I guess the
"commit" is taken care of by the Z SQL method then? Furthermore, I live with
the assumption that every time the table is accessed it is loaded into RAM
in its entirety. Has that anything to do with the notion of persistence?
cb

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
 Dieter Maurer
 Sent: dinsdag 31 oktober 2000 22:38
 To: Chris Withers
 Cc: jacintha menezes; [EMAIL PROTECTED]
 Subject: Re: [Zope] Gadfly


 Chris Withers writes:
   jacintha menezes wrote:
  
   I am using Gadfly database for Employee details.Kindly let me know
whether there is any maximum limit for the space available.
  
   Probably related to the memory in the machine you are running Zope on.
  
   Bear in mind that gadfly databases are not persistent and loose their
   contents when you restart Zope.
 It is very easy to make them persistent.
 When I remember correctly, it was only necessary to pass "commit"
 to Gadfly.


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

2000-10-16 Thread Cornelis J. de Brabander

You can export specific folders and save the resulting file either to the
server or to your local machine (in the management interface view the
content of a folder, choose the import/export tab and click export)
cb

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of matt
 Sent: zaterdag 14 oktober 2000 5:59
 To: [EMAIL PROTECTED]
 Subject: [Zope] backing up


 Is there a nice way to backup dtml documents and methods from a
 certain point
 in the object tree onwards without having to save all the other
 objects too?

 regards
 Matt


 ___
 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] Version Paradox

2000-06-15 Thread Cornelis J. de Brabander

I've inadvertently created a version paradox.  I created a version and
joined it,  then I realized that I did a stupid naming mistake I tried to
UNDO the creation of the version.  It allowed me to undo the creation of
the
version,  however I was in the version at the time,  and now I am stuck in
the version and cannot get out.  I cannot create a version of the same name
and delete it either.  I am stuck.  HELP !!

How can I exit a version that doesn't exist?

I believe that versions are based on cookies and that removing the culprit
will unlock your paradox

cb


___
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 do you changing web port address of Zserver installedas ase rvice on Win NT4? rvice on Win NT4?

2000-06-08 Thread Cornelis J. de Brabander

 I am looking for some guidance on how to change the web port address of my
 Zserver. I can use the -P option START.BAT file and start it
 manually but I
 haven't been able to figure out how to change it when I am starting the
 Zserver up as a service on a WinNT 4 box.
 It works fine on port 8080 but I now need to move it off of  that port.


There are several methods to achieve what you want. The one I use is to edit
z2.py and to change in the configuration section HTTP_PORT=8080 to something
else.



___
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] html-documents rendered incomplete

2000-05-25 Thread Cornelis J. de Brabander

Since I upgraded from Zope 2.0.1 to 2.1.6 I have a problem with
html-documents that are added as files. What happens is that the text in the
last HTML-element is cut of somewhere in the middle. Checking the source of
the document shows that after the point where the text is cut off all text
and codes have disappeared. Does anybody have similar experiences and a clue
as to what might cause this strange behavior?

tia, cb


___
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] Some examples of DTML scripts ?

2000-05-19 Thread Cornelis J. de Brabander

go to
http://www.zope.org
and click on the 'dtml source' link at the bottom of every page
cb
-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [EMAIL PROTECTED]
Aan: [EMAIL PROTECTED] [EMAIL PROTECTED]
Datum: vrijdag 19 mei 2000 11:55
Onderwerp: [Zope] Some examples of DTML scripts ?


Hi,


I'm a french new Zope developper and I'm a little bite lost with the
english
documentation... I think that some examples will help me a lot. So, if
someone
have some and can spend two minutes to send them tome, I will be very
happy.


Thanks
Fred

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