Re: [Zope-dev] ZPatterns + Skinscript

2000-10-30 Thread Joachim Schmitz

for debugging I inserted in Specialists.py in getItem:

return str(self.rackList) -- inserted 
for rack in self.rackList:
item = rack.__of__(self).getItem(key)
if item is not None: return item

this alway returns an empty list, when calling it from the dtml:

dtml-var "getItem(_.int(609))"  returns "[]"

I tried to follow the magic how this rackList is setup, but it is to much
python-Zen for me.

On Sun, 29 Oct 2000, Joachim Schmitz wrote:

 On Sat, 28 Oct 2000, Phillip J. Eby wrote:
 
  At 05:17 PM 10/28/00 +0200, Joachim Schmitz wrote:
  
  select e.event_id as event_id
  ,e.zeiten as zeiten
  ,v.firma as firma
  ,v.tel as tel
  ,e.movie_id as movie_id
  ,m.movie_title as movie_title
  ,m.movie_link as movie_link
  ,m.movie_text as movie_text
  ,e.datum_von as datum_von
  ,e.datum_bis as datum_bis
  from event as e, veranstalter as v, movies as m 
  where  
  e.event_id = dtml-sqlvar e_id type=int
  and e.movie_id = m.movie_id and e.veran_id = v.veran_id
  order by m.movie_title
  
  Just out of curiosity, why do you have an "order by" clause, if this is
  supposed to only return one row?  If more than one item is returned by this
  query, only the first will be used to supply data to your DataSkin.
  
 that was just left over from an reused query-template, I forgot to take it
 out.
 
  
  I also added a SkinScript method as a Data Plug-in in the defaultRack like
  this
  
  WITH QUERY readEvents(e_id=self.event_id) COMPUTE zeiten,firma,tel
  ,movie_id,movie_text,movie_link,movie_title
  ,datum_von,datum_bis,zeiten
  
  Do you have some way of providing self with an "event_id" value?  Keep in
  mind that when DataSkins are created, they have only an "id" attribute,
  nothing else.  So unless you have an attribute provider that provides an
  "event_id" value, this statement will fail.  Perhaps what you actually mean
  is:
  
  WITH QUERY readEvents(e_id=self.id) COMPUTE 
event_id,
zeiten,firma,tel,
movie_id,movie_text,movie_link,movie_title,
datum_von,datum_bis,zeiten
  
  Notice that I'm passing self.id to readEvents, and that I've added event_id
  to the list of attributes retrieved from the query.
  
 how do I set "self.id" I tried in dtml-method in the event-specialist:
 There is a event_id 609 in the table:
 
 dtml-var "getItem(_.int(609))"  returns none
 or
 dtml-var "getItem(key=_.int(609))" returns none
 
 
  
  under the storage tab I selected for:
  
  Class to use for stored items: ZPatterns:DataSkin and
  
  Objects are: o stored persistently.
   x loaded by accessing attribute: event_id
  
  This will work fine, if you use the revised SkinScript above.  You will
  probably want to create a ZClass subclass of DataSkin at some point to use
  instead, so that you can define permissions, methods, and so on for your
  Event objects.
  
  
 
 Mit freundlichen Grüßen
 
 Joachim Schmitz  
 
   
 AixtraWare, Ing. Büro für Internetanwendungen
 Hüsgenstr. 33a, D-52457 Aldenhoven  
 Telefon: +49-2464-8851, FAX: +49-2464-905163
 
 
 ___
 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 )
 
 

Mit freundlichen Grüßen

Joachim Schmitz  

  
AixtraWare, Ing. Büro für Internetanwendungen
Hüsgenstr. 33a, D-52457 Aldenhoven  
Telefon: +49-2464-8851, FAX: +49-2464-905163


___
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] Latest ZPatterns stability

2000-10-30 Thread Itamar Shtull-Trauring

How stable is the latest ZPatterns beta?  I'd like to put up a site using
it, but I'm still kinda wary of doing it.  Admittedly, I ahven't had any
TransactionErrors since upgrading. Has anyone had them?  Or are the
transaction problems solved?  That's what worries me most, since it takes
down all of Zope with it.

-- 
Itamar S.T.  [EMAIL PROTECTED]
Fingerprint = D365 7BE8 B81E 2B18 6534  025E D0E7 92DB E441 411C

___
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 + Skinscript

2000-10-30 Thread Joachim Schmitz

On Mon, 30 Oct 2000, Steve Spicklemire wrote:

 
 Hi Joachim,
 
rackList just refers to the racks in the 'racks' tab
 of the Specialist. Do you have any racks defined for 
 this Specialist? The rackList is managed magically 
 with the plug-in-group stuff.
 
Yes that's what I found too, but it doesn't work, with SQL-database and
SkinScripts, the setup is described below:

  "Joachim" == Joachim Schmitz [EMAIL PROTECTED] writes:
 
 Joachim for debugging I inserted in Specialists.py in getItem:
 
 Joachim return str(self.rackList) -- inserted for rack in
 Joachim self.rackList: item = rack.__of__(self).getItem(key) if
 Joachim item is not None: return item
 
 Joachim this alway returns an empty list, when calling it from
 Joachim the dtml:
 
 Joachim dtml-var "getItem(_.int(609))" returns "[]"
 
 Joachim I tried to follow the magic how this rackList is setup,
 Joachim but it is to much python-Zen for me.
 
 Joachim On Sun, 29 Oct 2000, Joachim Schmitz wrote:
 
  On Sat, 28 Oct 2000, Phillip J. Eby wrote:
  
   At 05:17 PM 10/28/00 +0200, Joachim Schmitz wrote:
   
   select e.event_id as event_id  ,e.zeiten as zeiten 
  ,v.firma as firma  ,v.tel as tel  ,e.movie_id as movie_id
   ,m.movie_title as movie_title  ,m.movie_link as movie_link
   ,m.movie_text as movie_text  ,e.datum_von as datum_von 
  ,e.datum_bis as datum_bis  from event as e, veranstalter as
  v, movies as m  where  e.event_id = dtml-sqlvar e_id
  type=int  and e.movie_id = m.movie_id and e.veran_id =
  v.veran_id  order by m.movie_title
   
   Just out of curiosity, why do you have an "order by" clause,
  if this is  supposed to only return one row?  If more than one
  item is returned by this  query, only the first will be used
  to supply data to your DataSkin.
   
  that was just left over from an reused query-template, I forgot
  to take it out.
  
   
   I also added a SkinScript method as a Data Plug-in in the
  defaultRack like  this
   
   WITH QUERY readEvents(e_id=self.event_id) COMPUTE
  zeiten,firma,tel  ,movie_id,movie_text,movie_link,movie_title
   ,datum_von,datum_bis,zeiten
   
   Do you have some way of providing self with an "event_id"
  value?  Keep in  mind that when DataSkins are created, they
  have only an "id" attribute,  nothing else.  So unless you
  have an attribute provider that provides an  "event_id" value,
  this statement will fail.  Perhaps what you actually mean  is:
   
   WITH QUERY readEvents(e_id=self.id) COMPUTE  event_id, 
  zeiten,firma,tel,  movie_id,movie_text,movie_link,movie_title,
   datum_von,datum_bis,zeiten
   
   Notice that I'm passing self.id to readEvents, and that I've
  added event_id  to the list of attributes retrieved from the
  query.
   
  how do I set "self.id" I tried in dtml-method in the
  event-specialist: There is a event_id 609 in the table:
  
  dtml-var "getItem(_.int(609))" returns none or dtml-var
  "getItem(key=_.int(609))" returns none
  
  
   
   under the storage tab I selected for:
   
   Class to use for stored items: ZPatterns:DataSkin and
   
   Objects are: o stored persistently.x loaded by
  accessing attribute: event_id
   
   This will work fine, if you use the revised SkinScript above.
  You will  probably want to create a ZClass subclass of
  DataSkin at some point to use  instead, so that you can define
  permissions, methods, and so on for your  Event objects.
   
   
  

Mit freundlichen Grüßen

Joachim Schmitz  

  
AixtraWare, Ing. Büro für Internetanwendungen
Hüsgenstr. 33a, D-52457 Aldenhoven  
Telefon: +49-2464-8851, FAX: +49-2464-905163


___
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] Cruft on dev.zope.org

2000-10-30 Thread Chris Withers

Hi,

I went and had a look at dev.zope.org for the first time in a long time
and noticed that there's now _lots_ of proposals which no indication of
which ones are active/done/outdated/etc. I took off my cruft but I was
wondering what the process is for ageing proposals and dealing with ones
that are and aren't successful...

cheers,

Chris

___
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 + Skinscript

2000-10-30 Thread Steve Spicklemire


My Experience with 'raw' DataSkins is that you'll quickly
run afoul of the Zope Security system. Using a ZClass that has
ZPatterns:DataSkin as a base class avoids this, and gives
you an easy way to put a 'user interface' on your objects.

-steve

 "Joachim" == Joachim Schmitz [EMAIL PROTECTED] writes:

Joachim Hi Steve,

Joachim thanks for the tips, I try to do it without the ZClass,
Joachim according to my understanding, and Phil Eby's reply that
Joachim should work too, but apparently I the first one to try
Joachim it. I try it out.



Joachim On Mon, 30 Oct 2000, Steve Spicklemire wrote:

  Hi Joachim,
 
 Hmm.. I would start start really simple here, and then 'work
 up' to the sql query Create a default rack with the
 following SkinScript.
 
 WITH ['a','b','c'] COMPUTE
 movie_link=RESULT[0],movie_title=RESULT[1], zeiten=RESULT[2]
 
 Set the storage for this rack to be a DataSkin derived ZClass
 loaded by accessing attribute 'movie_link'. Then try the
 following method in the Specialist:
 
 dtml-var standard_html_header dtml-let
 theItem="getItem('anyOldThing')" dtml-with theItem dtml-var
 movie_link dtml-var movie_title dtml-var zeiten
 
 /dtml-with /dtml-let dtml-var standard_html_footer
 
 If this does what you expect.. then you're getting close. Now
 change the ['a','b','c'] to be a call to your query:
 
 WITH yourQuery(... parameters for your query... ) COMPUTE
 movie_link, movie_title... etc.
 
 If you get the same errors in the first case.. then your
 problem has nothing to do with SQL.
 
 -steve
 
  "Joachim" == Joachim Schmitz [EMAIL PROTECTED] writes:
 
Joachim On Mon, 30 Oct 2000, Steve Spicklemire wrote:
   Hi Joachim,
  
  rackList just refers to the racks in the 'racks' tab of the
  Specialist. Do you have any racks defined for this
 Specialist?   The rackList is managed magically with the
 plug-in-group stuff.
  
Joachim Yes that's what I found too, but it doesn't work, with
Joachim SQL-database and SkinScripts, the setup is described
Joachim below:
"Joachim" == Joachim Schmitz [EMAIL PROTECTED]
 writes:
  
Joachim for debugging I inserted in Specialists.py in getItem:
 
Joachim return str(self.rackList) -- inserted for rack in
Joachim self.rackList: item = rack.__of__(self).getItem(key) if
Joachim item is not None: return item
 
Joachim this alway returns an empty list, when calling it from
Joachim the dtml:
 
Joachim dtml-var "getItem(_.int(609))" returns "[]"
 
Joachim I tried to follow the magic how this rackList is setup,
Joachim but it is to much python-Zen for me.
 
Joachim On Sun, 29 Oct 2000, Joachim Schmitz wrote:
   On Sat, 28 Oct 2000, Phillip J. Eby wrote:
   
At 05:17 PM 10/28/00 +0200, Joachim Schmitz wrote:

select e.event_id as event_id  ,e.zeiten as zeiten 
   ,v.firma as firma  ,v.tel as tel  ,e.movie_id as
 movie_id,m.movie_title as movie_title 
 ,m.movie_link as  movie_link   ,m.movie_text as
 movie_text  ,e.datum_von as  datum_von   ,e.datum_bis
 as datum_bis  from event as e,  veranstalter as  v,
 movies as m  where  e.event_id =  dtml-sqlvar e_id 
 type=int  and e.movie_id = m.movie_id  and e.veran_id = 
 v.veran_id  order by m.movie_title

Just out of curiosity, why do you have an "order by" 
 clause,  if this is  supposed to only return one row?  If 
 more than one  item is returned by this  query, only the 
 first will be used  to supply data to your DataSkin.

   that was just left over from an reused query-template, I
  forgot  to take it out.
   

I also added a SkinScript method as a Data Plug-in in
 the   defaultRack like  this

WITH QUERY readEvents(e_id=self.event_id) COMPUTE 
  zeiten,firma,tel 
 ,movie_id,movie_text,movie_link,movie_title   
 ,datum_von,datum_bis,zeiten

Do you have some way of providing self with an
 "event_id"   value?  Keep in  mind that when DataSkins are
 created, they   have only an "id" attribute,  nothing
 else.  So unless you   have an attribute provider that
 provides an  "event_id"  value,  this statement will fail.
 Perhaps what you actually  mean  is:

WITH QUERY readEvents(e_id=self.id) COMPUTE  event_id,
zeiten,firma,tel,  
 movie_id,movie_text,movie_link,movie_title,   
 datum_von,datum_bis,zeiten

Notice that I'm passing self.id to readEvents, and that
  I've  added event_id  to the list of attributes retrieved
  from the  query.

   how do I set "self.id" I tried in dtml-method in the 
  event-specialist: There is a event_id 609 in the table:
   
   dtml-var 

Re: [Zope-dev] Latest ZPatterns stability

2000-10-30 Thread Bill Anderson

Itamar Shtull-Trauring wrote:
 
 How stable is the latest ZPatterns beta?  I'd like to put up a site using
 it, but I'm still kinda wary of doing it.  Admittedly, I ahven't had any
 TransactionErrors since upgrading. Has anyone had them?  Or are the
 transaction problems solved?  That's what worries me most, since it takes
 down all of Zope with it.

Ib elieve the TransactionErrors occur primarily when used in combination
with ZCatalog using subtransactions, and packing the db, and that
disabling subtransactions in the latter solves it. At teast, it did for
me.

Dunno about other transactionerrors, haven't had any.



--
E PLURIBUS LINUX


___
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] Streaming?

2000-10-30 Thread Michel Pelletier

Lalo Martins wrote:
 
 Never mind, I found it. Just for the record, if anyone else
 needs this:
 
snip
 
 I don't know if this is documented somewhere, but it does what
 I wanted.

It is documented in the online help system, under API documentation,
under the 'Response' object.

-Michel

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

2000-10-30 Thread Loibl Johann

Hi,

I have trouble to install ZPatterns. I don't understand the following:

After unpacking the ZPatterns product, you will need to build this extension
  using the included 'Setup' file in the ZPatterns directory.  If you are not
  building ZPatterns in the lib/python/Products directory of your Zope
  installation, you will need to edit the 'Setup' file to reflect the correct
  paths to the include files it wants.  Please follow the standard procedures
  for building a Python module on your platform.  (On Unix-ish systems, this
  usually consists of copying a 'Makefile.pre.in' to the directory, then doing a 
  'make -f Makefile.pre.in boot' followed by 'make'.

How to do on a WinNT System?

Thanks, Hannes

-
   Siemens AG, Zentralbereich Personal
  S I E M E N S Qualifizierung und Training (SQT ELS IS)
   Elektronische Wissens- und Lernsysteme
-
 Johann Loibl  
  Internet Solutions  SQT ELS IS
  Siemens AG, D-81541 Muenchen, St.-Martin-Strasse 76 

  EMail: [EMAIL PROTECTED]
  Phone: +49-89-636-43487
  Mobile: 0174-480-97-55  
  Fax: +49-89-636-81748   
-




___
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 + Skinscript

2000-10-30 Thread Joachim Schmitz

Hi Steve,

I did exactly (hopefully) as you sugested, but the dtml-method fails with:
(I moved the SkinScript with first to the top)


Error Type: KeyError
Error Value: movie_link

...

  File /usr/local/Zope-2.2.0/lib/python/DocumentTemplate/DT_String.py, line 528, in 
__call__
(Object: testzclass)
  File /usr/local/Zope-2.2.0/lib/python/DocumentTemplate/DT_Let.py, line 147, in render
(Object: theItem="getItem('anyOldThing')")
  File /usr/local/Zope-2.2.0/lib/python/DocumentTemplate/DT_With.py, line 146, in 
render
(Object: theItem)
KeyError: (see above)

what's the best way to debug this ?




On Mon, 30 Oct 2000, Steve Spicklemire wrote:

 
 Hi Joachim,
 
Hmm.. I would start start really simple here, and then 'work up' 
 to the sql query Create a default rack with the following 
 SkinScript.
 
 WITH ['a','b','c'] COMPUTE movie_link=RESULT[0],movie_title=RESULT[1], 
zeiten=RESULT[2]
 
 Set the storage for this rack to be a DataSkin derived ZClass loaded by
 accessing attribute 'movie_link'. Then try the following method in the Specialist:
 
 dtml-var standard_html_header
 dtml-let theItem="getItem('anyOldThing')"
 dtml-with theItem
 dtml-var movie_link
 dtml-var movie_title
 dtml-var zeiten
 
 /dtml-with
 /dtml-let
 dtml-var standard_html_footer
 
 If this does what you expect.. then you're getting close. Now change the 
 ['a','b','c'] to be a call to your query:
 
 WITH yourQuery(... parameters for your query... ) COMPUTE movie_link, movie_title... 
etc.
 
 If you get the same errors in the first case.. then your problem has
 nothing to do with SQL.
 
 -steve
 
  "Joachim" == Joachim Schmitz [EMAIL PROTECTED] writes:
 
 Joachim On Mon, 30 Oct 2000, Steve Spicklemire wrote:
 
   Hi Joachim,
  
  rackList just refers to the racks in the 'racks' tab of the
  Specialist. Do you have any racks defined for this Specialist?
  The rackList is managed magically with the plug-in-group stuff.
  
 Joachim Yes that's what I found too, but it doesn't work, with
 Joachim SQL-database and SkinScripts, the setup is described
 Joachim below:
 
   "Joachim" == Joachim Schmitz [EMAIL PROTECTED] writes:
  
 Joachim for debugging I inserted in Specialists.py in getItem:
 
 Joachim return str(self.rackList) -- inserted for rack in
 Joachim self.rackList: item = rack.__of__(self).getItem(key) if
 Joachim item is not None: return item
 
 Joachim this alway returns an empty list, when calling it from
 Joachim the dtml:
 
 Joachim dtml-var "getItem(_.int(609))" returns "[]"
 
 Joachim I tried to follow the magic how this rackList is setup,
 Joachim but it is to much python-Zen for me.
 
 Joachim On Sun, 29 Oct 2000, Joachim Schmitz wrote:
On Sat, 28 Oct 2000, Phillip J. Eby wrote:
   
At 05:17 PM 10/28/00 +0200, Joachim Schmitz wrote:

select e.event_id as event_id  ,e.zeiten as zeiten  
  ,v.firma as firma  ,v.tel as tel  ,e.movie_id as movie_id
,m.movie_title as movie_title  ,m.movie_link as
  movie_link   ,m.movie_text as movie_text  ,e.datum_von as
  datum_von   ,e.datum_bis as datum_bis  from event as e,
  veranstalter as  v, movies as m  where  e.event_id =
  dtml-sqlvar e_id  type=int  and e.movie_id = m.movie_id
  and e.veran_id =  v.veran_id  order by m.movie_title

Just out of curiosity, why do you have an "order by"
  clause,  if this is  supposed to only return one row?  If
  more than one  item is returned by this  query, only the
  first will be used  to supply data to your DataSkin.

   that was just left over from an reused query-template, I
  forgot  to take it out.
   

I also added a SkinScript method as a Data Plug-in in the
   defaultRack like  this

WITH QUERY readEvents(e_id=self.event_id) COMPUTE 
  zeiten,firma,tel  ,movie_id,movie_text,movie_link,movie_title
,datum_von,datum_bis,zeiten

Do you have some way of providing self with an "event_id"
   value?  Keep in  mind that when DataSkins are created, they
   have only an "id" attribute,  nothing else.  So unless you
   have an attribute provider that provides an  "event_id"
  value,  this statement will fail.  Perhaps what you actually
  mean  is:

WITH QUERY readEvents(e_id=self.id) COMPUTE  event_id, 
   zeiten,firma,tel, 
  movie_id,movie_text,movie_link,movie_title,  
  datum_von,datum_bis,zeiten

Notice that I'm passing self.id to readEvents, and that
  I've  added event_id  to the list of attributes retrieved
  from the  query.

   how do I set "self.id" I tried in dtml-method in the 
  event-specialist: There is a event_id 609 in the table:
   
   dtml-var "getItem(_.int(609))" returns none or dtml-var
   "getItem(key=_.int(609))" returns none
  

Re: [Zope-dev] Recursive folders from Python

2000-10-30 Thread Dieter Maurer

Jason Spisak writes:
  Does anyonw know why this code won't create a folder within a folder. 
  It's tells me the id is already in use, so that means it's not
  descending into the newly created folder to make another folder.
  
  def create(self):
  for digit in range(0, 10):
  folder= self.manage_addFolder(str(digit), str(digit))
  subfolder = self.folder.manage_addFolder(str(digit), str(digit))
Apparently, the above line should add a new folder in (say) '00'.
What it does, however, is trying to add the new folder in the object named
'folder' (accessible from 'self'). This may well go wrong.

Keep in mind, that the local name space of the function 'create'
(where your variable 'folder' lives) is disjunct from the attribute
namespace of 'self' (where the attribute 'folder' lives).


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] ZPatterns + Skinscript

2000-10-30 Thread Steve Spicklemire


Hi Joachim,

   Hmm... I just put all the code in myself... to be *really* sure, and
it does work. What do you see for 'current attribute handling' in the
Data PlugIns tab of the default rack? I would try to simplify. Take
out all the skin script execpt for the one line.

-steve

 "JS" == Joachim Schmitz [EMAIL PROTECTED] writes:

JS Hi Steve,

JS I did exactly (hopefully) as you sugested, but the dtml-method
JS fails with: (I moved the SkinScript with first to the top)


JS Error Type: KeyError Error Value: movie_link

JS ...

JS   File
JS /usr/local/Zope-2.2.0/lib/python/DocumentTemplate/DT_String.py,
JS line 528, in __call__ (Object: testzclass) File
JS /usr/local/Zope-2.2.0/lib/python/DocumentTemplate/DT_Let.py,
JS line 147, in render (Object: theItem="getItem('anyOldThing')")
JS File
JS /usr/local/Zope-2.2.0/lib/python/DocumentTemplate/DT_With.py,
JS line 146, in render (Object: theItem) KeyError: (see above)

JS what's the best way to debug this ?




JS On Mon, 30 Oct 2000, Steve Spicklemire wrote:

  Hi Joachim,
 
 Hmm.. I would start start really simple here, and then 'work
 up' to the sql query Create a default rack with the
 following SkinScript.
 

___
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] ACL users and Packing the DB

2000-10-30 Thread Casey Duncan

Keith Larsen Wrote:
 I have found a way to kill the user via a link or straight html url


http://username:[EMAIL PROTECTED]:8080/testfolder?ids:list=acl_users;
manage_delObjects:method=Delete
 now if I can get my lynx to run it ok I will be set. ( lynx does not like
 it so far but works fine from a browser url )

If Lynx isn't working, try the -force_html switch. I think Lynx gets
confused by the fact that the URL does not point to a .htm or .html file.

-Casey D.


___
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] Cruft on dev.zope.org

2000-10-30 Thread Ken Manheimer

On Mon, 30 Oct 2000, Chris Withers wrote:

 I went and had a look at dev.zope.org for the first time in a long time
 and noticed that there's now _lots_ of proposals which no indication of
 which ones are active/done/outdated/etc. I took off my cruft but I was
 wondering what the process is for ageing proposals and dealing with ones
 that are and aren't successful...

It look like we're soon - within the next few weeks - going to have some
time to devote to wiki/process.  I'm going to try, within that time, to
come up with a tactical proposal - for near-term measures to deal with the
immediate problems, like staleness.

Offhand, i'm thinking about a "status" field for proposal and project
pages, which the owner sets, and which creeps towards staleness, the
longer that the principles in the effort fail to touch the status
setting.

Other suggestions are welcome, with the understanding that we're
particularly looking for expediency, at this point, since there are a lot
of things to be rectified.

While i'm talking about it, my current sense of high-priority needs is:

 - Really *really* simple commenting mechanism, for feedback about wiki
   pages.  This is not a squishdot/confera/zdialogue or anything like
   that, just a form that puts attributed comments linearly at the end...
   (More elaborate mechanisms will come later.)

 - Attribution - responsible parties should be identified for each page, 
   as should the comment authors, etc.

 - Expose change history (with differences) - so anyone can look at a page
   and see progressive changes, along with who made them.  (In addition
   to obvious reasons, credibility of attribution, in context where
   editors could change other people's comments.)

 - Editing constraints - where page owner can easily say what roles can
   edit, comment, just read pages.

 - Change notifications - this is a biggie.  Enable members to
   "subscribe" to pages, and obtain emailed notices when they change.

If there are other features that seem critical, please mention them - no
guarantees, the idea here is near term expedience, maximum results for
minimum effort.  In not too long we should be able to look at ways to
leverage PTK, etc, and do wiking right...

--
Ken
[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] ACL users and Packing the DB

2000-10-30 Thread Bill Anderson

Casey Duncan wrote:
 
 Keith Larsen Wrote:
  I have found a way to kill the user via a link or straight html url
 
 
 http://username:[EMAIL PROTECTED]:8080/testfolder?ids:list=acl_users;
 manage_delObjects:method=Delete
  now if I can get my lynx to run it ok I will be set. ( lynx does not like
  it so far but works fine from a browser url )
 
 If Lynx isn't working, try the -force_html switch. I think Lynx gets
 confused by the fact that the URL does not point to a .htm or .html file.

I doubt it is the lack of .htm/.html. Ihave a cronjob set up via lynx
that accesses a zope URL that doesn't have a .anything, and it works
flawlessly.

Add the --source switch to lynx, it should work then. In my case, I call
a URL that creates an instance of a ZClass. I suspect the
username:password _may_ be a factor, but it is likely you just need to
add the --source.


--
E PLURIBUS LINUX


___
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] ZWiki 0.7.0 release candidate (was Re: Cruft on dev.zope.org)

2000-10-30 Thread Simon Michael

He 8-) ... sounds like a good time to mention the below
(and Ken, your new feature priorities look very close to mine):

I have uploaded a release candidate:
http://zwiki.org/zwikidir/releases/ZWiki-0.7.0.tgz .  

Please hammer on it if you can - tomorrow is an auspicious date for
release!

ZWiki 0.7.0 2000-10-31 "Halloween!"

* cookie-based user options, including edit form size, timezone,
  bookmarks and wikiwikiweb-style username (help from Phil Armstrong)

* ZWiki is now zope 2.2-compatible (Garth Kidd) and -requiring,
  and benefits from the 2.2 security model. Executable dtml pages
  now run with those permissions that are common to both the
  page-viewing user and the wiki web's owner. Set the folder's
  owner to limit the permissions of executable pages.

* incorporated  updated Chris Withers' product for creating wiki webs

* added streamlined "hierarchal2" wiki style  other layout tweaks

* wikiwikiweb-style late page creation

* added simple javascript-disabling code

* made paths work with virtual hosting again (Evan Simpson)

* fixed unreliable ! line protection in structuredtext modes

* fixed unreliable remote wiki links in classicwiki mode

* more permissive remote wiki link regexps (Geoff Gardiner)

* "with this" dtml kludge no longer needed

* added built-in defaults for all dtml methods

* simpler, more consistent urls  api

* code refactoring/cleanups, other misc. bugfixes


It's dark.. and the witching hour is near. Don't be afraid.. :)

-Simon

___
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] Paul comments on the PythonLabs Move

2000-10-30 Thread Michael Bernstein

Check out his comments here:

http://weblogs.userland.com/zopeNewbies/discuss/msgReader$831

Cheers,

Michael Bernstein.

___
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] load_site.py URL.

2000-10-30 Thread Oleg Broytmann

On Sat, 28 Oct 2000, Jason C. Leach wrote:
 What does the load_site.py expect as a URL?

   URL to a Zope folder, where you wnat to upload your files/directories.
the folder should exists before you start load_site.py.

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 )




RE: [Zope] Displaying Folder Contents.

2000-10-30 Thread Max M

If I have a mail folder Projects, and in it Proj1, Proj2, ... I'd like to
pass the folder to an external method, and have the method get a list of
all the files inside (bla.jpg, bla_large.jpg).  Can somone help w/
fetching a list of the folder contents?

Maybe this will work??? Untested.

dtml-call "REQUEST.set('resultList', [])"
dtml-in "Projects.objectValues('Folder')"
dtml-let folderContent=sequence-item
dtml-in folderContent.objectValues()
dtml-call "resultList.append(title_or_id())"
/dtml-in
/dtml-let
/dtml-in
dtml-return resultList

Regards Max M


Max M. W. Rasmussen,Denmark.   New Media Director
private: [EMAIL PROTECTED] work: [EMAIL PROTECTED]
-
Specialization is for insects.  -  Robert A. Heinlein


___
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] trapping login errors/exceptions

2000-10-30 Thread Chris Withers

Henny van der Linde wrote:
 Thanks. I already thought about using Loginmanager but we still use Zope
 2.1.6.

Why? ;-)

 I'm very commited, to and happy with Zope but I was amazed that you can't
 trap Unauthorized exception like that. I'ts seems such a basic
 functionality.

Yeah, I totally agree :-S

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] Website develoment with CVS Zope?

2000-10-30 Thread Chris Withers

Jimmie Houchin wrote:
 I know because I will be developing and changing files in these
 directories but not via CVS that CVS will probably complain about the
 changes. Is this a problem?

Depends, if you're changing Zope source files, then you may get some
merge conflicts, but there shouldn't be any real problems. If you
edit/add file which aren't stored in cvs.zope.org, CVS will just ignore
them, it's good like that ;-)

 I will also be wanting to use the CVS of other Zope items like the PTK.
 Does this impact this in any way?

Just checkout the PTK/whatever to the appropriate bit of the Zope tree.
IIRC, the PTK CVS structure isnt' conducive to doing this, though, which
could be a pain :-(

HTH,

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] Securing ftp.

2000-10-30 Thread Chris Withers

"Jason C. Leach" wrote:
 
 I'd like to set up a ftp site so a specific client gets sent to a specific
 folder when they log in, and they can not back out of that folder.

That's not actually a question ;-)

You might be able to do something usful with a SiteAccess Access Rule...

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] using zope with MS FrontPage -- underscore in foldernames

2000-10-30 Thread Chris Withers

John Verzani wrote:
 Is there some way short of renaming the
 offending folders to do this. (also I'm not keen on LocalFS solutions
 either.)

You will probably need to rename them. LocalFS sounds like your best
bet, what have you got against it? ;-)
That said, even with LocalFS, you'll probably find yourself needing to
rename folders...

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] Multiple Inheritance and the Portal Base classes.

2000-10-30 Thread Steinar Rune Eriksen

Can anybody see why I get the following error ? I try to subclass
DemoPortalBase and PortalObjectBase into a class CMyPortalBase which I again
subclass with a Zope ZClass. 
It all works fine until I add another class in the inheritance list of
CMyPortalBase.When I try to call its __init__ method with the "self"
argument if does not recognise this as the instance variable ? (I tries to
print self, and it says that this is an instance of my ZClass).
In other Python programs, calling Parent.__init__(self) works fine, but when
running through Zope in this context

Error Type: TypeError
Error Value: unbound method must be called with class instance 1st argument


class CMyPortalBase(TemplatePage.CTemplatePage,Portal.DemoPortalBase,
PortalObject.PortalObjectBase):

def __init__(self):
TemplatePage.CTemplatePage.__init__(self)

The CTemplatePage class is as follows :

class CTemplatePage:

standard_html_header = Globals.HTMLFile("StandardHeader", globals())
standard_html_footer = Globals.HTMLFile("StandardFooter", globals())

def __init__(self):
print "In CTemplatePage"


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

Admin
Orion System AS
**

___
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] siteaccess, hosting etc, sanity check

2000-10-30 Thread Jonathan Cheyne

Hi all, just a bit further down my vhosting journey ...

got apache ProxyPassing and siteaccess installed but something is
missing.

I type in my vhosted domain www.red.com which (correctly) goes straight
to /red and shows the index_html contents *except* images which show
broken. The source shows that they (correctly) are trying to load from
www.red.com/imagename which is right. This image is in /red along with
the index_html. Also the one link to a dtml document in the /red
directory is also broken.

If I suppress siteaccess then everthing works from the initial
www.red.com but only because the links and images are loading from the
'master site url'. you can click but then the url obviously gives the
game away. so proxypass works.

What I dont get is why I can see the body text in index_html, which lays
out the page but not the image embedded in the page?

my various settings ...

NameVirtualHost 111.222.333.444

VirtualHost 111.222.333.444
  ServerName www.red.com
  ProxyPass / http://www.blue.com:8080/red
  ProxyPassReverse / http://www.blue.com:8080/red
/VirtualHost

then in /red we have a siteroot with the following

title:
base: http://www.red.com
path: /

www.blue.com and www.red.com both point to 111.222.333.444 and the box
also has the www.blue.com as its host name which zope recognises on
start iup.

a bit stuck.

Jonathan




___
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] Login Manager problem

2000-10-30 Thread Luca Mearelli

Hello,
I posted this some days ago on zope-ptk and zope-dev mailing list,
but got no response, so I thought I've sent it to the wrong mailing list,
here is waht happens, and a possible solution  :-)
 
I had a strange problem when trying out LoginManager v0.8.8b1 with the latest cvs 
Checkout (as of Oct.23),
 here is the traceback trying to add a LoginManager (The form didn't show up):

Error Type: NameError
Error Value: path
...
Traceback (innermost last):
  File /usr/local/tmp/Zope2/lib/python/ZPublisher/Publish.py, line 222, in 
publish_module
  File /usr/local/tmp/Zope2/lib/python/ZPublisher/Publish.py, line 187, in publish
  File /usr/local/tmp/Zope2/lib/python/Zope/__init__.py, line 221, in 
zpublisher_exception_hook
  File /usr/local/tmp/Zope2/lib/python/ZPublisher/Publish.py, line 171, in publish
  File /usr/local/tmp/Zope2/lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: addLoginManager)
  File /usr/local/tmp/Zope2/lib/python/ZPublisher/Publish.py, line 112, in call_object
(Object: addLoginManager)
  File /usr/local/tmp/Zope2/lib/python/App/special_dtml.py, line 120, in __call__
(Object: addLoginManager)
(Info: /usr/local/tmp/Zope2/lib/python/Products/LoginManager/addLoginManager.dtml)
  File /usr/local/tmp/Zope2/lib/python/DocumentTemplate/DT_String.py, line 528, in 
__call__
(Object: addLoginManager)
  File /usr/local/tmp/Zope2/lib/python/DocumentTemplate/DT_In.py, line 633, in 
renderwob
(Object: UserSourcesMetaTypes(this()))
  File /usr/local/tmp/Zope2/lib/python/DocumentTemplate/DT_Util.py, line 331, in eval
(Object: UserSourcesMetaTypes(this()))
(Info: UserSourcesMetaTypes)
  File /usr/local/tmp/Zope2/lib/python/ZPublisher/HTTPRequest.py, line 772, in 
__getitem__
NameError: (see above)

after looking at the LM code I found that the manage_addLoginManagerForm is defined 
in LoginManager.py:
...
manage_addLoginManagerForm = HTMLFile('addLoginManager', globals(),
UserSourcesMetaTypes = PlugInFinder(LoginManager.UserSourcesGroup),
LoginMethodsMetaTypes = PlugInFinder(LoginManager.LoginMethodsGroup))
...


At first I thought it could have been a LM problem, removing 
UserSourcesMetaTypes(this()) let
the form appear, but when I focused on the UserSourcesMetaTypes work, and how the user 
sources
PlugIns get installed I found nothing (It was actually my first test with LM  
ZPatterns), moreover
there was no mention of such problems by anyone else on the Mailing Lists.

Then I tried to it on a Zope 2.2.0 (released) and it worked fine adding the LM.
So it should have been something with my Zope CVS checkout, when looked at the 
HTTPRequest.py
file at the line shown in the Traceback, i found a possible error with "__getitem__"
When it tries to return the value of UserSourcesMetaTypes, it enters the "if 
key[:1]=='U':" at line 760
since UserSourcesMetaTypes starts with 'U', but match is empty, therefore path is not 
initialized
and at the line 772 we have the NameError.
Putting the lines 772-774 inside the "if match is not None:" fixed the problem (I 
included a diff for this),
is it the right way to go, is it enough? I think so but I have a small knowledge of 
Zope internals so 
I'm not completely sure i.e. if we want to match only the env.variables starting with 
"URL" why not even change
the  "if key[:1]=='U':" into "if key[:3]=='URL':"?

Thanks
   Luca Mearelli

*** HTTPRequest.py  Mon Oct 23 15:32:09 2000
--- HTTPRequest.py.OLD  Mon Oct 23 14:55:51 2000
***
*** 769,777 
  path = [''] + path[:n]
  else:
  path = [other['SERVER_URL']] + path[:n]
!   other[key] = URL = join(path, '/')
!   self._urls = self._urls + (key,)
!   return URL
  
  if isCGI_NAME(key) or key[:5] == 'HTTP_':
  environ=self.environ
--- 769,777 
  path = [''] + path[:n]
  else:
  path = [other['SERVER_URL']] + path[:n]
! other[key] = URL = join(path, '/')
! self._urls = self._urls + (key,)
! return URL
  
  if isCGI_NAME(key) or key[:5] == 'HTTP_':
  environ=self.environ




Re: [Zope] Changing standard realm with SiteAccess2+Zope 2.2.1

2000-10-30 Thread Stefan H. Holek

On Sun, 29 Oct 2000, Alexander Verhaar wrote:

 I'm trying to change the standard realm with SiteAccess and a
 External Method. I still get the standard 'Zope' realm, while
 SiteAccess is pointing to the External Method. What am i doing
 wrong?
 
 Here below the external method i used:
 
 import ZPublisher.HTTPResponse
 
 def NewRealm(self):
 ZPublisher.HTTPResponse.HTTPResponse.realm=self.title

I was unable to make it work that way either. However this *did* work
for me:

edit your start script to include

Z_REALM=Intranet# or whatever it is you need
export Z_REALM

somewhere before the exec

HTH,
Stefan


___
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] Changing standard realm with SiteAccess2+Zope 2.2.1

2000-10-30 Thread Alexander Verhaar

--- In [EMAIL PROTECTED], "Stefan H. Holek" [EMAIL PROTECTED] wrote:
 On Sun, 29 Oct 2000, Alexander Verhaar wrote:

  I'm trying to change the standard realm with SiteAccess and a
  External Method. I still get the standard 'Zope' realm, while
  SiteAccess is pointing to the External Method. What am i doing
  wrong?
 
  Here below the external method i used:
 
  import ZPublisher.HTTPResponse
 
  def NewRealm(self):
  ZPublisher.HTTPResponse.HTTPResponse.realm=self.title

 I was unable to make it work that way either. However this *did* work
 for me:

 edit your start script to include

 Z_REALM=Intranet # or whatever it is you need
 export Z_REALM

 somewhere before the exec

 HTH,
 Stefan



Hmmm, this is the way i'm using it now. But if you hosts multiple sites,
they all get the same realm. Also after debugging our Zope site i discovered
that ZPublisher.Publish sets the realm before the ZPublisher.HTTPResponse.


___
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] Verify Watermark.

2000-10-30 Thread Brian Lloyd

 In Zope2.1.6 there was a function called 'verify watermark' in module 
 Accesscontrol.User. 
 
 This function seems to have gone in the 2.2.2 release.
 My question: Is there any direct replacement for this method ? 
 Or at least a  some kind of equivalent code ?

verify_watermark was an interim step in dealing with 
some security things that have since been superceded 
by the new SecurityPolicy architecture (see: 

http://www.zope.org/Members/michel/Projects/Interfaces/SecurityPolicies

You shouldn't need verify_watermark in post-2.1.6 code.

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] Website develoment with CVS Zope?

2000-10-30 Thread Jimmie Houchin



Chris Withers wrote:
 
 Jimmie Houchin wrote:
  I know because I will be developing and changing files in these
  directories but not via CVS that CVS will probably complain about the
  changes. Is this a problem?
 
 Depends, if you're changing Zope source files, then you may get some
 merge conflicts, but there shouldn't be any real problems. If you
 edit/add file which aren't stored in cvs.zope.org, CVS will just ignore
 them, it's good like that ;-)
 
  I will also be wanting to use the CVS of other Zope items like the PTK.
  Does this impact this in any way?
 
 Just checkout the PTK/whatever to the appropriate bit of the Zope tree.
 IIRC, the PTK CVS structure isnt' conducive to doing this, though, which
 could be a pain :-(
 
 HTH,
 
 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 )




Re: [Zope] Website develoment with CVS Zope?

2000-10-30 Thread Jimmie Houchin

Thanks for the reply.

Chris Withers wrote:
 
 Jimmie Houchin wrote:
  I know because I will be developing and changing files in these
  directories but not via CVS that CVS will probably complain about the
  changes. Is this a problem?
 
 Depends, if you're changing Zope source files, then you may get some
 merge conflicts, but there shouldn't be any real problems. If you
 edit/add file which aren't stored in cvs.zope.org, CVS will just ignore
 them, it's good like that ;-)

As far as I know the only files I'll be adding or editing will be my own
Python files, Products, and the ZODBs. If it'll just ignore them or
maybe complain and then ignore, I'll be fine. 

For an experiment once, I added a file and then did an update. It
complained about a file not be added thru CVS or something as such. I
just wanted to make sure when ZODB changes and such it wouldn't be a
problem.

  I will also be wanting to use the CVS of other Zope items like the PTK.
  Does this impact this in any way?
 
 Just checkout the PTK/whatever to the appropriate bit of the Zope tree.
 IIRC, the PTK CVS structure isnt' conducive to doing this, though, which
 could be a pain :-(

Are you saying checkout the PTK into the directory in which it should be
installed in the Zope installation rather than into the ZopePTK
directory that it defaults to?

I was thinking from reading some of the PTK list that this isn't
painless. Maybe this can be improved when it reaches release status.

 HTH,

Yes, and thanks.
 
 Chris

Jimmie Houchihn

___
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] PHP-Pages

2000-10-30 Thread Gregory Haley


hi vince,

with the exception of xml parsing (i think it's doable though
complicated), i don't think php offers anything that zope won't do. 
i've been writing dtml methods and documents that do everything i once
did with php.  

imho (only).

ciao!
greg.

 Hi Zope,
 
 I wondered, whether it's possible and sensible to have php-Pages
 in Zope sites ... any thoughts and comments on this matter?
 
 Cheers,
 
 Vince
 
  '''
  ô¿ô
   -
 
 ___
 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] Zope.org

2000-10-30 Thread brocken22

Hallo,
have I missed something or why are there no news on the website.The last
item was from the 18th of October.Also the mailing-list is not really
busy.Any reason?

-- 
Sent through GMX FreeMail - http://www.gmx.net


___
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] PHP-Pages

2000-10-30 Thread peter bengtsson

I have also been able to do almost everything I do in PHP in Zope, just like
yourself.
One of the major problems with Zope is its lack of developers, this is not
true for Perl or PHP.
Not to bothered but "larger" companies might be.

I haven't tested the available PHP How-Tos; is it possible to use it just
like a Python- or Perl Method object??
Would be really useful if true.


hi vince,

with the exception of xml parsing (i think it's doable though
complicated), i don't think php offers anything that zope won't do.
i've been writing dtml methods and documents that do everything i once
did with php.

imho (only).

ciao!
greg.

 Hi Zope,

 I wondered, whether it's possible and sensible to have php-Pages
 in Zope sites ... any thoughts and comments on this matter?

 Cheers,

 Vince

  '''
  ô¿ô
   -

 ___
 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] Re: ZSybaseDA 2.00b2

2000-10-30 Thread Chris McDonough

Hi,

Don't know. :-)

How won't Zope start?  What does it do?  Just return and not spit an error?
Let's take this to the Zope mail list if you don't mind (I've cc'ed it).

- Original Message -
From: Rudd-O DragonFear
To: DC Support List
Cc: [EMAIL PROTECTED]
Sent: Monday, October 30, 2000 10:21 AM
Subject: [Support] ZSybaseDA 2.00b2


Hey,
I've been having some kind of problems with this DA.  Compiling and loading
(importing) sy_occ in python works perfectly.  But zope won't start and
won't say anything in the console or in the logs.

what could it be?

thanks in advance,


 Manuel


___
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] siteaccess, hosting etc, sanity check

2000-10-30 Thread Michael Bernstein

Jonathan Cheyne wrote:

 my various settings ...
 
 NameVirtualHost 111.222.333.444
 
 VirtualHost 111.222.333.444
   ServerName www.red.com
   ProxyPass / http://www.blue.com:8080/red
   ProxyPassReverse / http://www.blue.com:8080/red
 /VirtualHost
 
 then in /red we have a siteroot with the following
 
 title:
 base: http://www.red.com
 path: /

Jonathan,

Do you have an Access Rule set up in your root Zope Folder?

Michael Bernstein.

___
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] ssl w/ modrewrite

2000-10-30 Thread Bill Welch

Please say what Port, Listen, and VirtualHost directives you have in
place. I think that's really where the trouble.

On Sun, 29 Oct 2000 [EMAIL PROTECTED] wrote:

 but it works as typed in the server withour CRs.) I added modssl, but
 when I go in on an https I get the original apache root page, and can
 only access zope at https://address/cgi-bin/Zope . Furthermore, since


___
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] Publish.py / publish hack

2000-10-30 Thread Pierre-Julien Grizel



Hi,


I'm using Zope 2.2.2 and for some personal reasons I need to patch the
publish function from Publish.py.
I used the usual __init__.py straegy to patch ZPublisher :


from MyModule import Mypublish
import ZPublisher.Publish
from ImageFile import ImageFile

# Patch the original publish function
ZPublisher.Publish.publish = Mypublish


But the fact is, publish is called several times at several places in
the source code, and especially from the publish_module function when an
exception is raised...
And, although my patch works most of the times, it doesn't work when an
exception is raised.

I may need to replace another 'publish' reference somewhere, but does
anyone know WHERE exactly ??


Many thanks,



P.-J.



-- 
If the only tool you have is a hammer, 
you tend to see every problem as a nail.
Si le seul outil dont vous disposez est un marteau, 
vous avez tendance à voir chaque problème comme un clou. 
   --Abraham Maslow

___
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 display PDF files

2000-10-30 Thread Alan Johnston

I installed Zope for purposes of evaluation last week.  I've been through
the tutorial so I have minimal knowledge.

One (apparently simple) thing I cannot find a way to do is link to a PDF
file.  I believe that everything ZServer serves up must come from the Zope
Object Database (right? wrong?).  At any rate, how do you get ZServer to
send a 'raw' PDF file to the browser so that the browser's Acrobat plug-in
can display it?  I tried creating 'File' and 'Image' objects.  That's
obviously not it.  Forgive me, for I fear this is a dumb question ... but I
just can't find the answer.

Thanks,

Alan


___
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 display PDF files

2000-10-30 Thread Christopher J. Kucera

Alan Johnston wrote:
 One (apparently simple) thing I cannot find a way to do is link to a PDF
 file.  I believe that everything ZServer serves up must come from the Zope
 Object Database (right? wrong?).  At any rate, how do you get ZServer to
 send a 'raw' PDF file to the browser so that the browser's Acrobat plug-in
 can display it?  I tried creating 'File' and 'Image' objects.  That's
 obviously not it.

Actually, "File" should be okay . . .  Just click on "Browse" and
select the PDF from your hard drive, and it will upload the PDF into
ZODB and spit it back out properly . . .

-CJ

___
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] Fw: PythonLabs Team Moves to Digital Creations

2000-10-30 Thread Andy McKay

Now I have to know, whats a "Jam Session"?

- Original Message -
From: "Chris McDonough" [EMAIL PROTECTED]
To: "Andy McKay" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, October 29, 2000 11:44 AM
Subject: Re: [Zope] Fw: PythonLabs Team Moves to Digital Creations


 This is way too cool.  :-)

 Guido was at DC in Fredericksburg on Friday.  The rest of the PythonLabs
 folks were unfortunately not in attendance.  Since it was a Friday, and
 since we normally have "Jam Sessions" on Friday afternoons, so we had
"Guido
 Jam": we all got a chance to poke at him with questions and such and vice
 versa.  (Probably the thing I got a kick out of most in that session was
Jim
 just sitting there grinning like a maniac - he's pretty pumped about
having
 the PythonLabs team here now.)

 We talked about class/type distinctions and the possibility of removing
them
 within Python, why acquisition is useful and some of its shortcomings,
 stackless Python, and other less esoteric things.  Hopefully the newer
 members of DC (like me) will soon get a chance to meet the rest of the
 PythonLabs team face-to-face.

 - C

 - Original Message -
 From: "Andy McKay" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Saturday, October 28, 2000 12:10 PM
 Subject: [Zope] Fw: PythonLabs Team Moves to Digital Creations


  This is great news for Zope...
 
  (well I think it is anyway)
 
    Original Message 
   Subject: PythonLabs Team Moves to Digital Creations
   Date: Fri, 27 Oct 2000 20:42:42 -0500
   From: Guido van Rossum [EMAIL PROTECTED]
   To: [EMAIL PROTECTED] (Python mailing
   list),[EMAIL PROTECTED], [EMAIL PROTECTED]
  
   To all Python users and developers:
  
   Less than half a year ago, I moved with my team to BeOpen.com, in the
   hope of finding a new permanent home for Python development.  At
   BeOpen, we've done several good things for Python, such as moving the
   Python and Jython development process to SourceForge, and the
   successful release of Python 2.0.
  
   Unfortunately, BeOpen.com's original plans for PythonLabs didn't work
   out as hoped, and we weren't able to reach mutual agreement on
   workable alternative plans -- despite trying for months.
  
   I am proud to have found a new home for my entire team: starting
   today, Tim Peters, Barry Warsaw, Jeremy Hylton, Fred Drake and myself
   are working for Digital Creations.  We will be spending part of our
   time on core Python development (including Jython and Mailman) and
   part of our time on Python infrastructure improvements that also
   benefit Zope.
  
   Python will remain Open Source; Digital Creations has no desire to
   monetize or brand the Python language or specific Python
   distributions.  All future work we do on Python as Digital Creations
   employees will be owned by a non-profit organization yet to be
   created.  We think of this new organization as the Python Software
   Foundation.  In the meantime (while the PSF is under construction) I
   will own such copyrights personally.
  
   We're excited to be working for Digital Creations: they are one of the
   oldest companies active in the Python community, one of the companies
   most committed to Python, and they have a great product!  Plus, we
   know they have deep financial backing.  We trust that Digital
   Creations will provide a stable home for Python for many years.
  
   Digital Creations has also offered to take over hosting of the
   python.org and starship sites.  On behalf of the Python community,
   we're grateful for this support of the two prime community sites for
   Python, and we expect to be implementing the transitions shortly.
  
   These are exciting times for the PythonLabs team -- and also for
   Python and its community.  Mainstream successes for Python are showing
   up everywhere, and we're proud to be a part of such a smart and
   friendly community.  A great year lies ahead!
  
   --Guido van Rossum (home page: http://www.python.org/~guido/)
  
   --
   http://www.python.org/mailman/listinfo/python-list
 
 
 
  ___
  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
 

Re: [Zope] Fw: PythonLabs Team Moves to Digital Creations

2000-10-30 Thread Jason Cunliffe

- Original Message -
From: Andy McKay [EMAIL PROTECTED]


 Now I have to know, whats a "Jam Session"?

I assume 'jam' session = creative improvisation based on experience and
talent,
as in Jazz.. Miles Davis, Thelonius Monk, John Coltrane, Louis Armstrong..

- Jason


___
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] Fw: PythonLabs Team Moves to Digital Creations

2000-10-30 Thread Chris McDonough

This is right, although here it's also an excuse to drink Guiness.

- Original Message -
From: "Jason Cunliffe" [EMAIL PROTECTED]
To: "Andy McKay" [EMAIL PROTECTED]; "Chris McDonough"
[EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, October 30, 2000 12:49 PM
Subject: Re: [Zope] Fw: PythonLabs Team Moves to Digital Creations


 - Original Message -
 From: Andy McKay [EMAIL PROTECTED]


  Now I have to know, whats a "Jam Session"?

 I assume 'jam' session = creative improvisation based on experience and
 talent,
 as in Jazz.. Miles Davis, Thelonius Monk, John Coltrane, Louis Armstrong..

 - Jason


 ___
 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] How to display PDF files

2000-10-30 Thread Michael Bernstein

Alan Johnston wrote:
 
 At any rate, how do you get ZServer to
 send a 'raw' PDF file to the browser so that the browser's Acrobat plug-in
 can display it?  I tried creating 'File' and 'Image' objects.  That's
 obviously not it.

'File' should work. Are you naming the 'File' object with a
.pdf suffix?

HTH,

Michael Bernstein.

___
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] Fw: PythonLabs Team Moves to Digital Creations

2000-10-30 Thread Andy McKay

Now theres an idea... ;-)

- Original Message -
From: "Chris McDonough" [EMAIL PROTECTED]
To: "Jason Cunliffe" [EMAIL PROTECTED]; "Andy McKay"
[EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, October 30, 2000 10:09 AM
Subject: Re: [Zope] Fw: PythonLabs Team Moves to Digital Creations


 This is right, although here it's also an excuse to drink Guiness.

 - Original Message -
 From: "Jason Cunliffe" [EMAIL PROTECTED]
 To: "Andy McKay" [EMAIL PROTECTED]; "Chris McDonough"
 [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Monday, October 30, 2000 12:49 PM
 Subject: Re: [Zope] Fw: PythonLabs Team Moves to Digital Creations


  - Original Message -
  From: Andy McKay [EMAIL PROTECTED]
 
 
   Now I have to know, whats a "Jam Session"?
 
  I assume 'jam' session = creative improvisation based on experience and
  talent,
  as in Jazz.. Miles Davis, Thelonius Monk, John Coltrane, Louis
Armstrong..
 
  - Jason
 
 
  ___
  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: ZSybaseDA 2.00b2

2000-10-30 Thread Bill Anderson

 - Original Message -
 From: Rudd-O DragonFear
 To: DC Support List
 Cc: [EMAIL PROTECTED]
 Sent: Monday, October 30, 2000 10:21 AM
 Subject: [Support] ZSybaseDA 2.00b2
 
 Hey,
 I've been having some kind of problems with this DA.  Compiling and loading
 (importing) sy_occ in python works perfectly.  But zope won't start and
 won't say anything in the console or in the logs.
 
 what could it be?
 
 thanks in advance,


Search the archives, from about this time last year.
Quick synopsis:
 Check to ensure the sybase path statements are present in the zope
start up script.

--
E PLURIBUS LINUX


___
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] PHP-Pages

2000-10-30 Thread andres

Check out my HOWTO: http://www.zope.org/Members/Mamey/PHP

On Mon, Oct 30, 2000 at 02:19:49AM +0100, Vincent - D. Ertner wrote:
 Hi Zope,
 
 I wondered, whether it's possible and sensible to have php-Pages
 in Zope sites ... any thoughts and comments on this matter?
 
 Cheers,
 
 Vince
 
  '''
  ô¿ô
   -

--
Andres Corrada-Emmanuel   Email: [EMAIL PROTECTED]
Internet Programming  .mamemy.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] Message exchange between distributed python code

2000-10-30 Thread Dieter Maurer

Alexander Limi writes:
  I am currently writing some software in python that is spread over several
  different computers. These small programs should be able to communicate
  with each other and send messages that contain instructions between
  themselves.
You might be interested in "pyro" (Python remote objects).
You will find it via "python.org" or with a search in
"comp.lang.python.announce".


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] dtml document bug

2000-10-30 Thread Dieter Maurer

Dmitry Slusarchuk writes:
  I'm new to Zope development but I have already encountered such a problem:
  dtml-var myimage from dtml document generates the following:
  Zope Error
  Zope has encountered an error while publishing this resource. 
  
  Error Type: AttributeError
  Error Value: __call__
  
  this problem disappears when I do smth like dtml-var myimage
  from dtml method. what should I do?
  
  In addition 
  I run Zope ver. 2.2.2 and Python 1.5.2 under Win98.
This looks like the "cDocumentTemplate/Acquisition" bug
(see the locator (URL:http://classic.zope.org:8080/Locator)
for a description).

The problem usually occurs in the context of a

dtml-with folder

You can work around it by using

dtml-with "PARENTS[0].folder"

instead.


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] again: install Zope under Solaris 8

2000-10-30 Thread Dieter Maurer

Jan-Thies Baehr writes:
   Has anyone else
  encountered problems installing Zope (in our case 2.2.2) under Solaris
  8?
  Python is unable to import the ExtensionClass
  

  ImportError: ld.so.1: /usr/local/bin/python: fatal: relocation error:
  file /mnt/disk2/homes/wklinik/Zope-2.2.2/lib/python/ExtensionClass.so:
  symbol PyImport_ImportModule: referenced symbol not found
I looks as though Python would not export its symbols to
dynamically loaded objects.

In earlier Solaris versions, this was the default behaviour.
Other systems require a special linker option to make the symbols
visible. Maybe, Solaris 8 does now require special actions, too.

On Linux, the option is called "-export-dynamic".
Maybe, you consult you linker manual.


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] Re: [Zope-dev] dtml-in with objects and an expression

2000-10-30 Thread Dieter Maurer

Guy Redwood writes:
  I have a stack of objects called shcgbRallyDetails (details about 
  husky races). I want to display the next 3 races that are about to 
  close their entry submissions. eg display the next three rally 
  details where the closingdate is greater_or_equal to ZopeTime()
  
  I've got this working to prove the expression and dtml-in - but I'm 
  now stuck :-(
  
  dtml-in 
  "working.rallydetails.objectValues(['shcgbRallyDetails'])" 
  sort=closingdate
  dtml-unless "closingdate =ZopeTime()"
  A HREF="dtml-var absolute_url"dtml-var shortname/aBRbr  
  Closing: dtml-var closingdate
  /dtml-unless
  /dtml-in
  
  All help would be appreciated
What does not work?

You may get more than 3 races?

In this case, you could use:

dtml-in  sort=closingdate reverse !-- this sorts with latest closingdate first 
--
  dtml-if "closingdate  ZopeTime() and _.getitem('sequence-number') = 3"
 your presentation code 
  /dtml-if
/dtml-in

This will give you the list sorted with decreasing closingdate.
If you want a list sorted with increasing closingdate, you could use:

dtml-in  sort=closingdate
  dtml-if "closingdate  ZopeTime()
and (_.getitem('sequence-length') - _.getitem('sequence-index')) =3"
  your presentation code 
  /dtml-if
/dtml-in


For more details, look at the variable list defined inside dtml-in.


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] Solaris,iPlanet,Oracle and Zope

2000-10-30 Thread Dieter Maurer

Hi Turhan,

Welcome to the Zope community!

Turhan Arun writes:
  Now my problem is as
  follows
  I have to use
  Zope Application Server on SUN
  iPlanet Web Server
  Oracle 8.1.6 Database server
  Would you help me about configuring these? I am having problems and you are
  my only source.

You have 2 subproblems: interfacing Zope with iPlanet and
interfacing Zope with Oracle 8.1.6.

1. Unfortunately, I do not know iPlanet.
   You may search "zope.org" for "iPlanet" (maybe, you
   find a HowTo). There is also a searchable archive
   of this mailing list at NIP (to be found via
   "zope.org - Resources - Mailing Lists").

   If you are unlucky, you must explore a bit yourself.
   "doc/WEBSERVERS.txt" (a file in the Zope distribution)
   is a good starting point.

   Although, it mainly speaks about Apache (and does not
   mention iPlanet), the "pcgi" connection will work with
   any webserver that supports CGI. It will work
   with "iPlanet".

   There might be some problems with the propagation
   of authentication information.
   You may decide to let iPlanet do all authentication 
   and let Zope unprotected or you might need to
   learn how to configure iPlanet to pass authentication
   information.


   You may want to screen the iPlanet documentation, whether
   it supports proxy mode. In this mode, iPlanet would
   relay (some) requests to another web server (Zope
   in your case). This would be more efficient than
   "pcgi".


2. We use Zope with Oracle 8.1.6.
   We use DC's DCOracle and ZOracleDA (latest version!
   it has a beta in its version number!).

   It works satisfactory with the exception of LOB support.
   DC is working on improvements but the project is not
   externally funded, progress seems to be slow.

   Some days ago, someone in the list has reported a package
   that can be used to work around the LOB restrictions
   (if you know the LOB type).
   Search the list archive to locate the article (search
   for "DCOracle and BLOB").


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] image attachments in dtml-sendmail and dtml-mime

2000-10-30 Thread Dieter Maurer

Matt writes:
  dtml-sendmail mailhost="MailHost"
  To: Feedback Recipient [EMAIL PROTECTED]
  From: Zope Feedback Form [EMAIL PROTECTED]
  Subject: Feedback from the web
  
   Feedback from : Matt
   Comments:
   dtml-var some_text
  
  dtml-mime type=image/jpeg encode=base64 name=paris.jpgdtml-var
  "paris.data"
/dtml-mime
  
   /dtml-sendmail
You are aware, that the generated message is not MIME conformant?

You should use dtml-mime immediately in the message header
and use dtml-boundary to generated the various message parts.


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

2000-10-30 Thread Dieter Maurer

Marcus Mendes writes:
  Why the ZopeTime puts the differents values in the code bellow?
  
  dtml-with ZopeTime
 dtml-var "'This is %s, %s/%s/%i , %s' % (Day(), dd(), mm(), year(),
  TimeMinutes())" capitalize
 dtml-var " '%s'  % strftime('%A')" capitalize
  /dtml-with
  
  The first dtml-var ...  give me todays date;
  the second dtml-var ... give me the tomorrow date!!
In earlier Zope versions, most methods of "DateTime" instances 
used local time, but "strftime" used GMT.

As I understand it, this has been changed in Zope 2.2.
At least, Brian asked in the list, whether it should be changed
and got some positive feedback.


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] DCOracle + LOB

2000-10-30 Thread Andreas Jung

On Wed, Oct 18, 2000 at 02:11:05PM +0200, Francisco José Esteban Risueño wrote:
 If you know what type of data are you storing in the lob column, you can
 use dmbs_lob package in order to insert and retrive data from the
 original format into de lob format. We are use this techique succesfully
 to insert/select text into/from a clob column.

LOB support for Oracle 8i is broken in DCOracle. As a workaround
we use stored procedures written in Java. They can be called
from DCOracle.

-- Andreas 

___
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] dtml-while

2000-10-30 Thread Dieter Maurer

Diego Rodrigo Neufert writes:
  Why there isnt a dtml-while function in Zope?
  How to implement it with dtml?
  how to do a simple while x != y in dtml?
Because the Zope developers feared infinite loops created by
dumb users or malicious hackers in "through the web" content.
For the same reason, "_.range" has been cripled and the module
"re" is not exposed.


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] Zope Apache/ProxyPass : environment variables

2000-10-30 Thread Aaron Straup Cope

Hi,

Does anyone know if it is even *possible* to pass environment variables
(specifically REMOTE_USER) to Zope when it is set up behind
Apache/ProxyPass.

I've looked around the list archives, and the Apache docs and tried a
bunch of different configs but nothing works. I'm starting to wonder if
it's all in vain.

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 )




[Zope] incorporating generated sub-websites within a Zope site

2000-10-30 Thread Fred Yankowski

I'm looking for suggestions about how to manage a Zope website that
hosts some subsites created by tools outside of Zope.  Here's the
situation. 

I'm working on a community website (batavians.org) for a small city
(Batavia, IL) where I want to allow various non-profit community
organizations to manage their own subsites.  But the very first test
case is proving to be a problem because the manager of the subsite is
using web page development tools that seem to make it hard to
integrate their subsite with the rest of the site.  They can FTP their
files up to the Zope server (which I configured to use port 21 for
FTP) and their work is accessible just fine given a small "glue"
index_html object that bridges to their internal main page.  But I got
blocked when I tried to add a standard page footer onto their pages.
Actually, I was able to add a dtml-var element to pull in a standard
footer via acquisition and that works, but the manager of the
sub-website has no way to pull that change back to her working version
of the subsite.  It seems that the lightweight "Web Studio 2.0" tool
she's using has no FTP-download function at all.  Not only that, it
has no way to view/edit HTML at all!  It's only possible to edit using
a WYSIWYG design view (AFAICT).  So she can't merge in the change even
if I tell her exactly the HTML code to add.

OK, this problem is largely the result of the crappy web-design tool
she's using, but I really have no control over that.  The subsite
manage/author doesn't know HTML and would be completely helpless with
Zope's "through the web" editing interface.  A better tool such as
Dreamweaver would at least allow her to download files and/or edit
HTML directly, but that's moot in this case.  Even with Dreamweaver I
think the DTML tags would be invisible and hard for a non-programmer
to deal with.  (Not only that, Dreamweaver refuses to open files that
don't have an extension, so it won't open index_html for example.)

So what alternatives do I have?  Is there some way that I can set up a
filter such that every page of her subsite goes through the filter
before being sent out to the browser, allowing me to tack on a page
footer on those pages?  I'm sure Zope has such a mechanism, but I
don't know where to look.  Even with such a filter I'm not keen about
having to parse her pages (which are/should-be each a complete HTML
document) in order to insert a footer line in the right place.  What
other schemes should I consider?

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




Re: [Zope] Displaying Folder Contents.

2000-10-30 Thread Dieter Maurer

Jason C. Leach writes:
  If I have a mail folder Projects, and in it Proj1, Proj2, ... I'd like to
  pass the folder to an external method, and have the method get a list of
  all the files inside (bla.jpg, bla_large.jpg).  Can somone help w/
  fetching a list of the folder contents?
Have a look at "ZopeFind" (-- ZQR (Zope quick reference) at
URL:http://zdp.zope.org)



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] How to display PDF files

2000-10-30 Thread Dieter Maurer

Alan Johnston writes:
  One (apparently simple) thing I cannot find a way to do is link to a PDF
  file.  I believe that everything ZServer serves up must come from the Zope
  Object Database (right? wrong?).
You may use the products "LocalFS" or "ExternalFile" to access
files inside the file system from Zope.

  At any rate, how do you get ZServer to
  send a 'raw' PDF file to the browser so that the browser's Acrobat plug-in
  can display it?  I tried creating 'File' and 'Image' objects.  That's
  obviously not it.
The "file" should be it.

Maybe, you must set the property "content_type" correctly
(when Zope guessed wrong based on the filename extension).



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] ExtensionClass peculiarity(was: [Zope-PTK] Multiple Inheritance and the Portal Base classes.) (was: [Zope-PTK] Multiple Inheritance and the Portal Base classes.)

2000-10-30 Thread Dieter Maurer

Steinar Rune Eriksen writes:
  In other Python programs, calling Parent.__init__(self) works fine, but when
  running through Zope in this context
  
  Error Type: TypeError
  Error Value: unbound method must be called with class instance 1st argument
Have a look at the "ExtensionClass" documentation (- zope.org).

ExtensionClass is not completely compatible with Python:

  if a class "C" inherits from an extension class "E" and from
  a normal Python class "P", then Python does not recognize
  "C" as a subclass from "P".

The mentioned documentation tells you, that there is
a method "InheritedAttribute" to work around this problem.



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] Fw: PythonLabs Team Moves to Digital Creations

2000-10-30 Thread Daryl Tester

Chris McDonough wrote:

 Since it was a Friday, and
 since we normally have "Jam Sessions" on Friday afternoons, so we had "Guido
 Jam": we all got a chance to poke at him with questions and such and vice
 versa.

But did you get to chant "We're not worthy!  We're not worthy!"?  :-)


-- 
Regards,
  Daryl Tester,  Software Wrangler and Bit Herder, IOCANE Pty. Ltd.

"MS Linux is released under the provisions of the Gates Private License, which
 means you can freely use this Software on a single machine without warranty
 after having paid the purchase price and annual renewal fees." -- mslinux.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 )




[Zope] New kinds of problems

2000-10-30 Thread MANUEL JOSE AMADOR BRIZ

Thanks, here are my two cents:

Mini quick howto to connect to a sybase ASA/ASE:

Get any 2.2 linux distro installed, except red hat 7 (compiler problems, it 
WILL fail).

GET from Sybase the RPMs called sybase-common and sybase-openclient, the latest 
versions.  Install them.  do a link from /opt/sybase to /opt/sybase-
{currentversion} which should exist now.
make sure you have $SYBASE set in your profile, to /opt/sybase.

Download zope-2.2.2.src.tgz

untar as root, then chown -R root.root /path/to/Zopefolder

make sure you have python and python-devel RPMs or DEBs.

cd to zope folder

run \\\'python w_pcgi.py\\\'

run \\\'python zpasswd.py access\\\', enter username, password, CLEARTEXT encoding 
and no domain

get ZSybaseDAv2 b2 and place the targz file into the zope folder

do a \\\'tar zxvmf ZSybaseDAv2.tar.gz0 in the zope folder

Once more do a chown -R root.root *

cd into lib/python/Products/ZSybaseDAv2/src

cp Setup.linux or Setup.solaris to Setup

make -f Makefile.pre.in boot

make

cd to the parent folder (cd ..)

cp src/sy_occ.so .

enter python and try to do \\\'import sy_occ\\\' if it works and doesn\\\'t spit 
errors, 
you\\\'re set.

exit python and go to the zope folder, then run ./start

if zope starts, you\\\'re all set

now there is an executable called /opt/sybase/bin/dsedit that you will have to 
use to create network transports.  Fill in the appropriate data.

Now for the problems.  I managed to connect to an ASA 7.0 database, and 
retrieved successfully a select * from systable, but can\\\'t execute stored 
procedures, it spits some kind of another operation on progress error or 
unknown data type returned error.  I assume ASA and dsclient are talking 
incompatible protocols here.

Can someone help me?  By the way, the data source created with dsedit for our 
ASE server works fine.  Everything runs OK.

Please reply and CC: me because I\\\'m kinda lagged behind with the mailing list 
and I need a reply soon.  Thanks.  I hope these instructions help people in 
connecting to Sybase, given the poor support they have in some countries (I\\\'m 
thinking mine).

   Manuel


--
   Universidad Federico Santa Maria - Campus Guayaquil
  Enviado por:  www.usm.edu.ec   

___
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] Get file contents.

2000-10-30 Thread Jonothan Farr

For a File object, you want "str(ob.data)", where 'ob' is your File object.
--jfarr

- Original Message -
From: "Jason C. Leach" [EMAIL PROTECTED]
To: "Steve Spicklemire" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, October 29, 2000 5:56 PM
Subject: Re: [Zope] Get file contents.


 hi,

 That's exactly what I'm hoping to do.  But for my method, it does not know
 what read() is, or read_raw(); I get:

   Zope Error

   Zope has encountered an error while publishing this resource.

   Error Type: AttributeError
   Error Value: read

 If I try you method I get:

   Zope Error

   Zope has encountered an error while publishing this resource.

   Error Type: AttributeError
   Error Value: manage_addTinyTable


 It would probably bail on the read also if it got that far.

 Perhaps I am caling it wrong, or not pasing the correct object.  I jest
 pass in a Zope File opject, which hapens to be a few lines of text.

 Thanks,
 j.


 ..
 . Jason C. Leach
 ... University College of the Cariboo.
 ..

 On Sun, 29 Oct 2000, Steve Spicklemire wrote:

 
  Hi Jason,
 
 Here's an external method that I've used to populate a TinyTable
  from a comma separated text file. You might at least get some ideas
  about how to extract stuff from the file using this
 
  -steve
 
  --
 
  #
  # ReadFile is an external method that reads data from a file uploaded from
  # the users computer and produces a TinyTable based on that data.
  #
 
  import string
 
  def ReadFile(self,
   infile, # input file.
   outTableName='defaultTable',# name of output table
   outTableTitle='',   # title of output table
   outTableColumns='', # columns for output table
   REQUEST=None,   # Pass in REQUEST
   RESPONSE=None): # and response...
 
  if not hasattr(self, outTableName):
  self.manage_addTinyTable(id=outTableName, title=outTableTitle,
columns=outTableColumns, REQUEST=REQUEST)
 
  newTT = getattr(self, outTableName)
  newTT.manage_edit(title = outTableTitle, columns = outTableColumns,
REQUEST=REQUEST)
  data = infile.read()
  data = string.replace(data,'\r','\n')
  data = string.replace(data,'\n\n','\n')
  lines = string.split(data,'\n')
  newLines = []
  for i in range(len(lines)):
  line = string.strip(lines[i])
  if line:
  sl = string.split(line,',')
  sl = map(lambda x:'"%s"' % x, sl)
  newLines.append(string.join(sl,','))
 
  data = string.join(newLines, '\n')
 
  return newTT.manage_editData( data, REQUEST )
 
 
  def main():
  class foo:
 
  def manage_addTinyTable(self, *args, **kwargs):
  pass
 
  def manage_edit(self, *args, **kwargs):
  pass
 
  def manage_editData(self, data, REQUEST):
  print "In manage_editDdata"
  print data
 
  import StringIO
 
  f = StringIO.StringIO()
  f.write('a,b,c,d\n')
  f.write('d,e,f,g\n')
  f.seek(0)
 
  print f.read()
  f.seek(0)
 
  rf = foo()
  rf.defaultTable = foo()
 
  ReadFile(rf, f)
 
  if __name__=='__main__':
 
  main()
 
   "Jason" == Jason C Leach [EMAIL PROTECTED] writes:
 
  Jason hi,
 
  Jason I pass a zope file object (just plane text) to an external
  Jason method.  The file consists of a list of lines of text.  I'd
  Jason like to extract those lines from the file and put 'em in a
  Jason list. Can anyone help with the extraction method?
 
  Jason Thanks, j.
 
  Jason ..  . Jason C. Leach ... University
  Jason College of the Cariboo.  ..
 
 
  Jason ___ Zope
  Jason maillist - [EMAIL PROTECTED]
  Jason http://lists.zope.org/mailman/listinfo/zope ** No cross
  Jason posts or HTML encoding!  ** (Related lists -
  Jason http://lists.zope.org/mailman/listinfo/zope-announce
  Jason 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] My Items will not show themself in manage_main (objectItems)

2000-10-30 Thread Max M

I have made a product that inherits:
"OFS.ObjectManager.ObjectManager"
and so should be able to contain other object.

I have given the product a manage option:
{'label':'Contents', 'action':'manage_main'}
This is inherited from ObjectManager, To make it possible to
add content to my product.

But when I add ie. a dtml method to my folderish object, it does it
allright, and the document gets added. I know because I can see it directly
when going to it's url. And if I try to add another document with the same
name I get an error saying that the id is allready used.

But the Item doesn't show up in Itemlist on the "manage_main" page. So I
cannot edit the items that I have added.

I only get the:
"There are currently no items in XXX"

Why is this? is there any special methods or something that I need to create
for the Items to show up in "objectItems".


Max M. W. Rasmussen,Denmark.   New Media Director
private: [EMAIL PROTECTED] work: [EMAIL PROTECTED]
-
Specialization is for insects.  -  Robert A. Heinlein


___
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] Fw: PythonLabs Team Moves to Digital Creations

2000-10-30 Thread Chris McDonough

Yes.  Well... I did, anyway.  :-)

- Original Message -
From: "Daryl Tester" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, October 30, 2000 4:23 PM
Subject: Re: [Zope] Fw: PythonLabs Team Moves to Digital Creations


 Chris McDonough wrote:

  Since it was a Friday, and
  since we normally have "Jam Sessions" on Friday afternoons, so we had
"Guido
  Jam": we all got a chance to poke at him with questions and such and
vice
  versa.

 But did you get to chant "We're not worthy!  We're not worthy!"?  :-)


 --
 Regards,
   Daryl Tester,  Software Wrangler and Bit Herder, IOCANE Pty. Ltd.

 "MS Linux is released under the provisions of the Gates Private License,
which
  means you can freely use this Software on a single machine without
warranty
  after having paid the purchase price and annual renewal fees." --
mslinux.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 )




___
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] My Items will not show themself in manage_main (objectItems)

2000-10-30 Thread Andy McKay

 Why is this? is there any special methods or something that I need to
create
 for the Items to show up in "objectItems".

Not from what I can remember. I would have to see your constructor for more
info.

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] trapping login errors/exceptions

2000-10-30 Thread Henny van der Linde

Hi,

- Original Message -
From: "Chris Withers" [EMAIL PROTECTED]
To: "Henny van der Linde" [EMAIL PROTECTED]
Cc: "Zope mailing list" [EMAIL PROTECTED]
Sent: Monday, October 30, 2000 11:50 AM
Subject: Re: [Zope] trapping login errors/exceptions


 Henny van der Linde wrote:
  Thanks. I already thought about using Loginmanager but we still use Zope
  2.1.6.

 Why? ;-)


Just careful. Not every Zope release is realy that stable at first. Products
are not always upward compatible. The sudden change in the security model
with Zope 2.2.0 scared us a bit.   Maybe these are minor things but we realy
can't afford to experiment a lot in the organization where I (and my co
Zopistas) work.

BTW

I can't get Login Manager installed in a very fresh Zope 2.2.2 installation.
See my earlier posting. Any ideas?

greetz,

Henny van der Linde




___
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] My Items will not show themself in manage_main (objectItems)

2000-10-30 Thread Ender

Max M wrote:
 
 I have made a product that inherits:
 "OFS.ObjectManager.ObjectManager"
 and so should be able to contain other object.

In python any object can be a container, the use of the ObjectManager
assists in creating an api and ui for the container's management of
objects.

 I have given the product a manage option:
 {'label':'Contents', 'action':'manage_main'}
 This is inherited from ObjectManager, To make it possible to
 add content to my product.
 
 But when I add ie. a dtml method to my folderish object, it does it
 allright, and the document gets added. I know because I can see it directly
 when going to it's url. And if I try to add another document with the same
 name I get an error saying that the id is allready used.
 
 But the Item doesn't show up in Itemlist on the "manage_main" page. So I
 cannot edit the items that I have added.
 
 I only get the:
 "There are currently no items in XXX"

some more information on what you changed in the container would be
useful.

 Why is this? is there any special methods or something that I need to create
 for the Items to show up in "objectItems".

this pseudo code should give you the result you want?, it works for me
to display objects in the manage_main. 


def manage_addMyContainer:
foo = MyContainer()
bar = MyObject()

foo._setObject(bar, 'bar')

self._setObject(foo, 'foo')

caveat, register your permissions properly on the manage_add, and note
that adding bar in this way will mean it won't have access to
acquisition properties from further up the tree at creation (including
manage_afterAdd).

also for registering manage options this syntax is a little more
inclusive.

manage_options=(
OFS.ObjectManager.ObjectManager.manage_options+
(
{'label':'YourTabHere', 'action':'YourMethodHere'},
)+
AccessControl.Role.RoleManager.manage_options+
OFS.SimpleItem.SimpleItem.manage_options
)

hth

kapil

___
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 Apache/ProxyPass : environment variables

2000-10-30 Thread TFE WSD JARVIS JOHN

Yes, but you have to do in it a round about way.
(Actually, I've seen mention of a patch to Apache that 
does this, but I don't think it's neccessary)

Here's the setup I'm using:
RewriteEngine On
RewriteRule ^/Zope(.*)   http://localhost:8080/$1?client_ip=%{REMOTE_ADDR}
[QSA,L,P]
RewriteRule ^/p_/(.*)http://localhost:8080/p_/$1 [L,P]
RewriteRule ^/misc_/(.*) http://localhost:8080/misc_/$1 [L,P]

In this case, REMOTE_ADDR will be available in the 
REQUEST namespace under "client_ip"

HTH

 -Original Message-
 From: Aaron Straup Cope [SMTP:[EMAIL PROTECTED]]
 Sent: Tuesday, October 31, 2000 5:47 AM
 To:   [EMAIL PROTECTED]
 Subject:  [Zope] Zope  Apache/ProxyPass : environment variables
 
 Hi,
 
 Does anyone know if it is even *possible* to pass environment variables
 (specifically REMOTE_USER) to Zope when it is set up behind
 Apache/ProxyPass.
 
 I've looked around the list archives, and the Apache docs and tried a
 bunch of different configs but nothing works. I'm starting to wonder if
 it's all in vain.
 
 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 )

___
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 Book Beta

2000-10-30 Thread Michel Pelletier


Amos and I are gibbering like madmen with excitement to announce the
Zope Book Beta.  This is the complete, technical draft of the book with
all screenshots (but minus illustrations, those are on there way!). 
Some other things like a colophon and information about the authors is
missing. The beta includes all completed chapters, the API reference,
and the DTML reference.  We've received over a hundred comments,
corrections, and ideas from you the community and it has made a much
better book.  This is the one to print out and give to your friends as
christmas gifts, folks, so get crackin and start reading at
http://www.zope.org/Members/michel/ZB/.

Enjoy,

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




Re: [Zope] New kinds of problems

2000-10-30 Thread Bill Anderson

MANUEL JOSE AMADOR BRIZ wrote:
 
 Thanks, here are my two cents:
 
 Mini quick howto to connect to a sybase ASA/ASE:
 
 Get any 2.2 linux distro installed, except red hat 7 (compiler problems, it
 WILL fail).

Only if you didn't read the RELEASE-NOTES.
Use kgcc, it is the same compiler as RH 6.2 has.

---
root@darwin in /root 
$ cat /etc/redhat-release 
Red Hat Linux release 6.2 (Zoot)
root@darwin in /root 
$ gcc --version
egcs-2.91.66
root@darwin in /root 
---
ucntcme@locutus in /home/ucntcme 
$ cat /etc/redhat-release 
Red Hat Linux release 7.0 (Guinness)
ucntcme@locutus in /home/ucntcme 
$ kgcc --version
egcs-2.91.66
---

...
 exit python and go to the zope folder, then run ./start
 
 if zope starts, you\\\'re all set

not quite. You should stop zope, open a new terminal, and start zope
from there. More often than not, you will need to set up the $SYBASE
variables in the zope start up script. Running Zope in a 'clean'
terminal will test the environment.


--
E PLURIBUS LINUX


___
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] pluggable brains

2000-10-30 Thread Philipp Auersperg



For ZSQL Methods it is possible to bind a ZClass to the records.

These can be selected from te combo box labeled 'ZClass' in the 
'advanced' tab of the SQLMethod's management screen,
but there is always listed just one ZClass.

My question:
Why is there just one ZClass selectable, even if there are many ZClasses 
defined?
Is that a bug or a feature?

thanks

phil



Re: [Zope] pluggable brains

2000-10-30 Thread Philipp Auersperg



I already found the answer myself:

one can only use ZClasses as pluggable brains that are NOT 
persistent!!

phil*** REPLY SEPARATOR 
***On 31.10.2000 at 05:05 Philipp Auersperg wrote:

  For ZSQL Methods it is possible to bind a ZClass to the records.
  
  These can be selected from te combo box labeled 'ZClass' in the 
  'advanced' tab of the SQLMethod's management screen,
  but there is always listed just one ZClass.
  
  My question:
  Why is there just one ZClass selectable, even if there are many ZClasses 
  defined?
  Is that a bug or a feature?
  
  thanks
  
  phil



[Zope] meta type?

2000-10-30 Thread Jason C. Leach

hi,

What is ment by a meta type?

Is that like 'Image' in the case of images, and Folder in the case of
folders?

j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 


___
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] meta type?

2000-10-30 Thread Erik Enge

On Mon, 30 Oct 2000, Jason C. Leach wrote:

 Is that like 'Image' in the case of images, and Folder in the case of
 folders?

Yupp.


___
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] Almost Done.

2000-10-30 Thread Jason C. Leach

hi,

So I'm almost done my first zope project. Pretty small. I must say, I have
done in 4 lines of DTML what would have taken pages in ASP.

How do I get a TinyTable to display it's contents?

All I find in the docs is !--in# tablename-- and that does not
seem to work for me, unles I am lacking a tag?

j.

..
. Jason C. Leach
... University College of the Cariboo.
.. 


___
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] Almost Done.

2000-10-30 Thread Erik Enge

On Mon, 30 Oct 2000, Jason C. Leach wrote:

 hi,

Hi.
 
 How do I get a TinyTable to display it's contents?
 
 All I find in the docs is !--in# tablename-- and that does not
 seem to work for me, unles I am lacking a tag?

Try this:

dtml-in tablename 

(and next time, post the error message, Zope version and OS you are
running :-)


___
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] Almost Done.

2000-10-30 Thread Jason C. Leach

hi,

Gave that a shot, no luck.  I just dones nothing where as if I misspel the
object ID it screams (so it's finding it).  I can edit and View the object
fine, just not call it.

I'm running Zope/Zope 2.2.2 (source release,
python 1.5.2, linux2) ZServer/1.1b1 on FreeBSD A


j.
..
. Jason C. Leach
... University College of the Cariboo.
.. 

On Tue, 31 Oct 2000, Erik Enge wrote:

 On Mon, 30 Oct 2000, Jason C. Leach wrote:
 
  hi,
 
 Hi.
  
  How do I get a TinyTable to display it's contents?
  
  All I find in the docs is !--in# tablename-- and that does not
  seem to work for me, unles I am lacking a tag?
 
 Try this:
 
   dtml-in tablename 
 
 (and next time, post the error message, Zope version and OS you are
 running :-)
 
 


___
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] Strange KeyError upon calling absolute_url

2000-10-30 Thread Morten W. Petersen

I've got a strange error here; whenever absolute_url is called, it is raised
a KeyError exception, stating that SERVER_URL is missing..

(The traceback..)

Traceback (innermost last):
  File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 222, in publish_module
  File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 187, in publish
  File /usr/local/Zope/lib/python/Zope/__init__.py, line 221, in 
zpublisher_exception_hook
  File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 171, in publish
  File /usr/local/Zope/lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: manage_addTransform)
  File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 112, in call_object
(Object: manage_addTransform)
  File /usr/local/Zope/lib/python/Products/Transform/transform.py, line 54, in 
manage_addTransform
  File /usr/local/Zope/lib/python/Products/Transform/transform.py, line 154, in 
__init__
(Object: CatalogAware)
  File /usr/local/Zope/lib/python/OFS/ObjectManager.py, line 278, in _setObject
(Object: CatalogAware)
  File /usr/local/Zope/lib/python/OFS/ObjectManager.py, line 286, in manage_afterAdd
(Object: Traversable)
  File /usr/local/Zope/lib/python/OFS/ObjectManager.py, line 286, in manage_afterAdd
(Object: Traversable)
  File /usr/local/Zope/lib/python/Products/ZCatalog/CatalogAwareness.py, line 114, in 
manage_afterAdd
(Object: CatalogAware)
  File /usr/local/Zope/lib/python/Products/ZCatalog/CatalogAwareness.py, line 184, in 
index_object
(Object: CatalogAware)
  File /usr/local/Zope/lib/python/Products/ZCatalog/CatalogAwareness.py, line 157, in 
url
(Object: CatalogAware)
  File /usr/local/Zope/lib/python/OFS/Traversable.py, line 119, in absolute_url
(Object: CatalogAware)
KeyError: (see above)

The line(s) causing the error were a rather long list of _setObject
commands:

"""
[...]
self._setObject('M', agencysort.AgencySort('M'))
self._setObject('N', agencysort.AgencySort('N'))
[...]
"""

Any ideas?

Thanks in advance.

-Morten

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