[Zope-dev] redirect and POST

2000-11-17 Thread Robin Becker

I seem to get different behaviour when I use method=POST in my forms and
then attempt to use RESPONSE.redirect later on in the handling method.

It seems as though the method that was used to call the form handler is
passed on. Then my index_html hangs waiting for the POST data. Is there
a way to change the http request back to GET.
-- 
Robin Becker

___
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] What is the local object in zope?

2000-11-17 Thread Espen Sorbye Frederiksen

I am maybe blind, but cannot find a name for the local object in zope
(like "this" in JAVA ).
The command call expr="subdirectory.manage_addDTMLDocument()" works if
subdirectory is a folder in the current folder. However the call
expr="self.manage_addDTMLDocument(...)" does not work.

Could anyone tell me what I am doing wrong? 

Cheers,

Espen



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] What is the local object in zope?

2000-11-17 Thread Phil Harris

Try

expr="this().manage_addDTMLDocument(...)"

although you shouldn't need to do that:

expr="manage_addDTMLDocument(...)"

should work as well.

hth

Phil


- Original Message -
From: "Espen Sorbye Frederiksen" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, November 17, 2000 3:35 PM
Subject: [Zope-dev] What is the local object in zope?


 I am maybe blind, but cannot find a name for the local object in zope
 (like "this" in JAVA ).
 The command call expr="subdirectory.manage_addDTMLDocument()" works if
 subdirectory is a folder in the current folder. However the call
 expr="self.manage_addDTMLDocument(...)" does not work.

 Could anyone tell me what I am doing wrong?

 Cheers,

 Espen



 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )


___
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] Help! Can't unsubscribe!

2000-11-17 Thread T.J. Mannos

Help!

I'm trying to unsubscribe from this list because it's filling up my mailbox
too fast.  However, when I try to use the web interface or the e-mail
interface to unsubscribe, it gives me an odd error message.  It says
something to the effect of, "There's something wrong with your account.
Please contact the postmaster."  Yet I keep getting zope-dev messages.
Could somebody tell me how to get off this list?

Thanks,
T.J.


___
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] Help! Can't unsubscribe!

2000-11-17 Thread Ken Manheimer

On Fri, 17 Nov 2000, T.J. Mannos wrote:

 I'm trying to unsubscribe from this list because it's filling up my mailbox
 too fast.  However, when I try to use the web interface or the e-mail
 interface to unsubscribe, it gives me an odd error message.  It says
 something to the effect of, "There's something wrong with your account.
 Please contact the postmaster."  Yet I keep getting zope-dev messages.
 Could somebody tell me how to get off this list?

I've cancelled your zope-dev subscription.  (We're running an old version
of the maillist system, which occasionally has this problem - fortunately,
we now have some people with the time and leverage to shepherd, fix, etc
an upgrade to a newer version - will be happening soon.  In the
meanwhile, sorry about the capture!)

Ken Manheimer
[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] Simulate DTML-Method Proxy-Roles for python-product-methods ?

2000-11-17 Thread Dieter Maurer

Martin =?iso-8859-1?Q?Gr=F6nemeyer?= writes:
  I've started to implement a small Product in Python.
You mean a true Product implemented in Python (subpackage in
"lib/python/Products")?

  One method should be
  able to access an object in a folder which isn't accessible by anonymous
  but only by a special role. Is it possible to give a proxy-role to the
  python-method to access this object ?
Such products are not restricted by the security system.
Thus, you can simply do what you like.


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 )




[Zope] Reasons for Apache?? SSL?? (was Running Mailman CGI under Zope ZServer)

2000-11-17 Thread Dario Lopez-Kästen

 From: "Fred Wilson Horch" [EMAIL PROTECTED]
 Sent: Friday, November 17, 2000 2:22 AM
 Subject: [Zope] Running Mailman CGI under Zope ZServer

...snip...

 First, am I really the first person to try running CGI scripts from
 ZServer?  I have found some hints here and there of people doing
 somewhat similar things, but I haven't yet found a product for easily
 adding legacy CGI scripts to a Zope site.  It seems most people run Zope
 behind Apache.  Is ZServer really slow or buggy or something?

...other good stuff snipped...

I have a similar question. I am planning and building  a site in which about
50% of the content needs to be accessed using SSL only (it's personal
information and we are using 128-bit SSL).

Since I am only the databaseweb-guy and not a sysadmin-guy (yet :), I had
one of my colleagues configure Apache and Zope using the "Apache  ZServer"
how to. This works well and Apache serves Zope pretty well and we can even
use SSL (there are some issues to be resolved that I suspect are due to
misconfiguration on our server). However, I can always access Zope directly
using port 8080 (or whatever port where ZServer is listening to) without
SSL.

This is aboviously not the intended behaviour. Is there a way to prevent
this? I know there is ZServerSSL but isn't the whole point of using Apache
that it is a better and more robust web-server than Zserver? (apart from the
fact that we need to serve a lot of static content as well).

What are the main resons for serving Zope behind Apache?

Thanks for any input,

Sincerley,

/dario

- 
Dario Lopez-Kästen Systems Developer  Chalmers Univ. of Technology
[EMAIL PROTECTED]  ICQ will yield no hitsIT Systems  Services


___
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] Running Mailman CGI under Zope ZServer

2000-11-17 Thread Stephan Richter


Second, is Mailman going to be integrated with Zope?  It seems like a
natural fit.  It would be nice to move away from the pipermail archiving
and use the Zope object database for archiving messages instead.

I wrote once my own Python Product for Zope that simply imported the 
important methods and wrote my own little scripts on top. It is really 
easy. The only difficulty is to keep the Mailman database permissions 
straight, since they adjust to the executing user after every access. So 
the best is to run Zope and Mailman from the same account.

Regards,
Stephan

--
Stephan Richter
CBU - Physics and Chemistry Student
Web2k - Web Design/Development  Technical Project Management


___
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] security problems

2000-11-17 Thread Aleksander Salwa

On Fri, 17 Nov 2000, Bowyer, Alex wrote:
 I have one method index_html which should be viewable by anonymous.
 All other methods should only be viewable when a username/password is
 entered for someone with the role I have called UAAdmin
[...]
 I can only seem to get full access to all pages (if I grant a proxy on
 index_html) or password access required on all items (by specifying
 permissions for the class instance) neither of which are the correct
 solution.

You can define different security settings for every method in your ZClass
using 'Define Permissions' management tab. These permissions are unique
for every method. There you can define, which permission is needed to view
your method.

[EMAIL PROTECTED]

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


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] unsubscribe

2000-11-17 Thread Marco Gianfreda

At 08.54 14/11/00 +0100, you wrote:
On Mon, Nov 13, 2000 at 06:13:46PM -, Claudio Biasiolo wrote:
  Ciao a tutti
 
  C'e' qualcuno che e' riuscito ad  interfacciarsi con un database esterno
  attraverso i DAdaptor, io non ci sono ancora riuscito.
  Ho provato con Interbase poi sono passato a mysql ma non ho un file mysql.h
  qualcuno sa spiegarmi perche' e dove posso trovarlo?
 
  Ciao a tutti
 
Che distribuzione usi?
Se usi RedHat devi installare prima il pacchetto
(che contiene mysql.h)
MySQL-devel-3.22.X

poi le librerie di python per MySQL
MySQL-python-0.2.1

poi installi il pacchetto zope ZMySQLDA

  P.S. In caso qualcuno si sentisse in grado di fare una 
 consulenza(pagata) su
  questi argomenti puo' rispondere a questa mail anche se possibile con una
  certa urgenza!!
 
  Claudio Biasiolo
  Web Developer
  [EMAIL PROTECTED]
  VenicePlaza S.p.A.
  Padova, Italy
 
 
  ___
  Zope-it maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope-it
 

--
Tomaso Scarsi
+39 0498024648 tel, +39 0498036484 fax
[EMAIL PROTECTED]

___
Zope-it maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-it


Marco Gianfreda - Sviluppo PHP/MySQL e Ricerca
Enter SpA - Nettamente avanti
Voice: +39(02)247910.1 Fax: +39(02)26260970
Via Carducci 125 Pal.A Email: [EMAIL PROTECTED]
20099 Sesto San Giovanni (MI) Web: http://www.enter.it



___
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] Reasons for Apache?? SSL?? (was Running Mailman CGIunder Zope ZServer)

2000-11-17 Thread Aleksander Salwa

On Fri, 17 Nov 2000, Dario Lopez-Ksten wrote:
 one of my colleagues configure Apache and Zope using the "Apache  ZServer"
 how to. This works well and Apache serves Zope pretty well and we can even
 use SSL (there are some issues to be resolved that I suspect are due to
 misconfiguration on our server). However, I can always access Zope directly
 using port 8080 (or whatever port where ZServer is listening to) without
 SSL.
 
 This is aboviously not the intended behaviour. Is there a way to prevent
 this? I know there is ZServerSSL but isn't the whole point of using Apache

Look at z2.py options to set IP to listen on. If Zope and Apache are on
the same machine, you can set 127.0.0.1, so Zope won't be accesible from
other hosts. If they are on separate machines, then probably they are
in the same LAN - so you can use some other address not accessible from
outside your LAN.

[EMAIL PROTECTED]

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


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Re: [Zope-Annce] November 16th Zope Weekly News

2000-11-17 Thread Alastair Burt

emf [EMAIL PROTECTED] writes:

 I put in a robots.txt to block spidering and reduced the
 cache "recommendation" to 700.  

Does this mean that Zope pages will not be indexed by Google?  That would
be a shame.

--- Alastair


___
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] Transparent Folders can unable SQL Methods...

2000-11-17 Thread Ghuo

Hi all,


I am using both transparent folders (created by Shane)  and sql methods.
SQL Methods are using "SQLConnectionIDs" method which return the list of
all the connections founded in the content of the current folder. I put
all my connections in a transparent folder and the "SQLConnectionIDs"
method returned always an empty list. I was not able any more to create
new sql methods... Here is a patch of this method located in the python
file "lib/python/Products/ZSQLMethods/SQL.py" which makes all work
well...


Frederic Quin
Profile For You SARL, France


PATCH
--

def TF_SQLConnectionIDs(self,ids):
have_id=ids.has_key
StringType=type('')

if hasattr(self, 'objectValues'):
   for o in self.objectValues():
  if (hasattr(o,'_isAnSQLConnection') and o._isAnSQLConnection
and hasattr(o,'id')):
 id=o.id
 if type(id) is not StringType: id=id()
 if not have_id(id):
if hasattr(o,'title_and_id'): o=o.title_and_id()
else: o=id
ids[id]=id

  if (hasattr(o,'meta_type') and (o.meta_type == 'Transparent
Folder')):
 ids = TF_SQLConnectionIDs(o,ids)

return ids



def SQLConnectionIDs(self):
"""Find SQL database connections in the current folder and above

This function return a list of ids.
"""
ids={}
have_id=ids.has_key
StringType=type('')

while self is not None:
if hasattr(self, 'objectValues'):
for o in self.objectValues():
if (hasattr(o,'_isAnSQLConnection') and
o._isAnSQLConnection
and hasattr(o,'id')):
id=o.id
if type(id) is not StringType: id=id()
if not have_id(id):
if hasattr(o,'title_and_id'): o=o.title_and_id()

else: o=id
ids[id]=id

if (o.meta_type == 'Transparent Folder'):
   ids = TF_SQLConnectionIDs(o,ids)

if hasattr(self, 'aq_parent'): self=self.aq_parent
else: self=None

ids=map(lambda item: (item[1], item[0]), ids.items())
ids.sort()
return ids

/ PATCH
-


___
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] Zcatalog search

2000-11-17 Thread Brown Fox

Hello,
i've indexed some dtml-documents with some metadata,
for example a CPU field.
I can search for a CPU or any other metadata, but
how i can have the list of all the objects with a CPU
property?

Thanks,

   Bruno



__
Do You Yahoo!?
Il tuo indirizzo gratis e per sempre @yahoo.it su http://mail.yahoo.it

___
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 crash on NT! Replace tab patch

2000-11-17 Thread peter bengtson

I downloaded and installed:
Replace tab patch (http://www.zope.org/Members/cguardia/replace)

This crashed my Zope when I restarted it on NT Zope 2.2.2

Here is the Traceback for start.bat
Traceback (innermost last):
  File "C:\Program Files\Zopesite\z2.py", line 554, in ?
exec "import "+MODULE in {}
  File "string", line 1, in ?
  File "C:\PROGRA~1\Zopesite\lib\python\Zope\__init__.py", line 95, in ?
import Globals, OFS.Application, sys
  File "C:\PROGRA~1\Zopesite\lib\python\OFS\Application.py", line 91, in ?
import Globals,Folder,os,sys,App.Product, App.ProductRegistry, misc_
  File "C:\PROGRA~1\Zopesite\lib\python\OFS\Folder.py", line 100, in ?
from ReplaceSupport import ReplaceSupport
  File "C:\PROGRA~1\Zopesite\lib\python\OFS\ReplaceSupport.py", line 93, in
?
from DocumentTemplate.DT_Util import InstanceDict, TemplateDict,
cDocument
ImportError: cannot import name cDocument


I modified Folder.py so that there now is nothing about Replace or
ReplaceSupport. And that made it working again.
You scared me.


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Problem with escaped double quotes

2000-11-17 Thread Aitor Grajal Crespo



Hello,

My problem is this :

dtml-let foo=" ' blaublau: " fdsaf " df ' 
"
/dtml-let

It doesn't work 'cause I can't escape the doble quotes inside 
the string I'm trying to eval.

Any solution???

Thanks



[Zope] problem creating properties via python methods

2000-11-17 Thread belitski

Hi!
In the following code stored in a DTML Method I create DTMLDocument
called hello and then I want to add it some properties. The error is
that those properties get created in the parent folder object and not in
my "hello" DTMLDocument although I try to reference the self parameter
to "hello" using the with tag. 
I would appreciate any hints to solve it. Thank you in advance. :-)
Andrei
dtml-call "manage_addDTMLDocument('hello', REQUEST['new_name'])"

 dtml-commentREQUEST wichtig sonst properties von parent
object/dtml-comment

dtml-with Test
 dtml-with hello
   dtml-call "manage_addProperty( id='company_name',
value=REQUEST['new_name'], type='text', REQUEST=REQUEST)"
   dtml-call "manage_addProperty( id='message',
value=REQUEST['new_message'], type='text', REQUEST=REQUEST)"
   dtml-call "manage_addProperty( id='contact_phone',
value=REQUEST['new_phone'], type='text', REQUEST=REQUEST)"
 /dtml-with
/dtml-with
 dtml-call "RESPONSE.redirect('manage_main?update_menu=1')"

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] How do I form an XML-RPC query to a remote server?

2000-11-17 Thread Tony McDonald

On 15/11/00 5:58 pm, "Michel Pelletier" [EMAIL PROTECTED] wrote:

 Tony McDonald wrote:
 
 Hi all,
 I'm experimenting with collating data from a remote database that uses
 XML-RPC.
 
 I can send it messages like;
 import xmlrpclib
 medweb = xmlrpclib.Server("http://bogus.server.com")
 medweb.getImages('scar')
 '?xml version="1.0" encoding="ISO-8859-1"
 ?\015\012\011data\015\012\011\011titleMedwebb Images/title \0
 
 (lots of stuff snipped)
 
 But I just can't figure out how to send the XML version of the same query,
 ie
 ?XML VERSION="1.0"?
 methodCall
 methodNamegetimages/methodName
 params
 param
 valuestringscar/string/value
 /param
 /params
 /methodCall
 
 to the server.
 
 How does it fail?  Did you set the right content type (text/xml I
 think?)?
 
Thanks for the reply Michel,
Yes the content type is text/xml, but I guess I'm doing something else
wrong.

 Why do you want to send a hand built query to the server?  That's what
 xmlrpclib is for.

Oh definitely, but I'm trying to do it this way as I think the queries may
get more complex...


 
 -Michel
 
 I've got a nasty feeling that when I get told how to do this, I'm going to
 slap my forehead bloody hard
 
 Do what I do, where a helmet to work.
 

I like that! :)
--
Dr Tony McDonald,  Assistant Director, FMCC, http://www.fmcc.org.uk/
The Medical School, Newcastle University Tel: +44 191 222 5116
A Zope list for UK HE/FE  http://www.fmcc.org.uk/mailman/listinfo/zope


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] MySQL Connection String

2000-11-17 Thread Aitor Grajal Crespo



I have installed ZMySQLDA 1.1.4, 
anybody knows the format of the database connection string???

I have put database user passw , and doesn't work

Thanks



Re: [Zope] How do I form an XML-RPC query to a remote server?

2000-11-17 Thread Tony McDonald

On 16/11/00 7:10 am, "Edward Muller" [EMAIL PROTECTED] wrote:

 On Wed, 15 Nov 2000, Tony McDonald wrote:
 
 Hi all,
 I'm experimenting with collating data from a remote database that uses
 XML-RPC.
 
 I can send it messages like;
 import xmlrpclib
 medweb = xmlrpclib.Server("http://bogus.server.com")
 medweb.getImages('scar')
 
 That looks right...
 

Yup, that bit works! :)

 '?xml version="1.0" encoding="ISO-8859-1"
 ?\015\012\011data\015\012\011\011titleMedwebb Images/title \0
 
 (lots of stuff snipped)
 
 
 That doesn't ... I don't think they have a well formed XML-RPC document, so
 xmlrpclib can't parse it...

I think that is ok XML. The \015\012 are just LF-CRs and are ignored.

 
 But I just can't figure out how to send the XML version of the same query,
 ie
 
 xmlrpclib handles the marshaling/un-marshaling to xml/from python for you...

Absolutely, and it works fine when I do it from a Python prompt.

 
 ?XML VERSION="1.0"?
 methodCall
 methodNamegetimages/methodName
 params
 param
 valuestringscar/string/value
 /param
 /params
 /methodCall
 
 to the server.
 

I'm really just trying to get a Zope equivalent of the Userland 'debugger'
at http://frontier.userland.com/stories/storyReader$1077 as I think these
queries may get more complex.

 
 xmlrpc lib is already constructing this...or it should be,,,
 
 I've got a nasty feeling that when I get told how to do this, I'm going to
 slap my forehead bloody hard
 
 See above :-)
 

I'll take Michels advice and wear a helmet to work! :)
Cheers,
Tone.
--
Dr Tony McDonald,  Assistant Director, FMCC, http://www.fmcc.org.uk/
The Medical School, Newcastle University Tel: +44 191 222 5116
A Zope list for UK HE/FE  http://www.fmcc.org.uk/mailman/listinfo/zope


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] overriding manage_beforeDelete in a CatalogAware Product

2000-11-17 Thread Andy McKay

 But I'm confused about how to get rid of the index entry upon delete. I
 think I need to set the catalog name and then call the inherited
 manage_beforeDelete routine. So I tried this:

  def manage_beforeDelete(self, item, container):
  "Be sure we unindex ourselves from our special catalog"
  self.manage_editCataloger('CommentCatalog')
  self.CatalogAware.manage_beforeDelete(item, container)

 Not too surprisingly, the code throws an "AttributeError: CatalogAware"
 into the Stupid Log File and doesn't remove the object from
CommentCatalog.
 Of course I don't understand what the correct incantation is, so I'm
 appealing for guidance.

You should just be able to do "self.manage_beforeDelete(..)" since you have
inherited all CatalogAware's methods. Make sure you have CatalogAware as
your first (left most) item in your classes inheritance.

Do you really need to set the catalog again? Isnt that already set in your
class?

--
  Andy McKay, Developer.
  ActiveState.


___
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] ANNOUNCE: Zope 2.2.3 released...

2000-11-17 Thread Brian Lloyd

Hello all - 

  Zope 2.2.3 has been released - you can download it from
  Zope.org:

  http://www.zope.org/Products/Zope/2.2.3/

  This bug-fix release contains the fixes for all released 
  Hotfixes to date, as well as fixes for a memory leak in 
  the Acquisition module, various ZCatalog fixes and a fix 
  for the infamous "__call__" bug (and there was much 
  rejoicing!).

  For more information on what is new in this release, see the 
  CHANGES.txt and HISTORY.txt files for the release:

 http://www.zope.org/Products/Zope/2.2.3/CHANGES.txt

 http://www.zope.org/Products/Zope/2.2.3/HISTORY.txt

  Note that we have also posted "diff" updates as .tgz files 
  that will let you easily upgrade an existing 2.2.x site. 
  These updates are available for those currently using the 
  2.2.x source release or the 2.2.x binary releases.

  To apply a differential update to your site:

  - download the appropriate .tgz file from zope.org

  - shutdown your Zope process

  - copy the .tgz to your Zope directory and extract it

  - run w_pcgi or wo_pcgi *if you are not using a binary release*

  - restart your process


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] SiteAcess (Debian Fix)

2000-11-17 Thread The Doctor What

The bug (number 76658) is listed on Debian's site:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=76658repeatmerged=yes

The fix (I had forgotten what it was) is stupidly simple:
mkdir /usr/lib/zope/lib/python/Products/SiteAccess/help

A better fix is to fix ProductContext.py is lib/Python/App.  I have
an attached patch, but it doesn't seem like it's the right way to
fix it.

BTW: While you're making empty directories, you should probably
make:
/usr/lib/zope/lib/python/Products/PlugIns/help

Because in the Debian package, it has the same problem.

Ciao!

-- 
"Duct tape is like the force.  It has a light side, and a dark side, and it holds the 
universe together ..."
-- Carl Zwanzig

The Doctor What: Un-Humble   http://docwhat.gerf.org/
[EMAIL PROTECTED]   KF6VNC


--- ProductContext.py.orig  Fri Nov 17 11:05:00 2000
+++ ProductContext.py   Fri Nov 17 11:05:06 2000
@@ -309,38 +309,33 @@
 """
 help=self.getProductHelp()
 path=os.path.join(Globals.package_home(self.__pack.__dict__), directory)
-try:
-   
-# test to see if nothing has changed since last registration
-if help.lastRegistered is not None and \
-   help.lastRegistered = DateTime(os.stat(path)[stat.ST_MTIME]):
-return
-help.lastRegistered=DateTime()
 
-if clear:
-for id in help.objectIds('Help Topic'):
-help._delObject(id)
-
-for file in os.listdir(path):
-ext=os.path.splitext(file)[1]
-ext=string.lower(ext)
-if ext in ('.dtml',):
-ht=HelpTopic.DTMLTopic(file, '', os.path.join(path,file))
-self.registerHelpTopic(file, ht)
-elif ext in ('.html', '.htm'):
-ht=HelpTopic.TextTopic(file, '', os.path.join(path,file))
-self.registerHelpTopic(file, ht)
-elif ext in ('.stx', '.txt'):
-title=string.split(open(os.path.join(path,file),'rb').readline(), 
':')[0]
-ht=HelpTopic.STXTopic(file, title, os.path.join(path, file))
-self.registerHelpTopic(file, ht)
-elif ext in ('.jpg', '.gif', '.png'):
-ht=HelpTopic.ImageTopic(file, '', os.path.join(path, file))
-self.registerHelpTopic(file, ht)
-elif ext in ('.py',):
-ht=APIHelpTopic.APIHelpTopic(file, '', os.path.join(path, file))
-self.registerHelpTopic(file, ht)
-except OSError, (errno, text):
-from zLOG import LOG, WARNING
-LOG("Zope", WARNING, text + ": " + path)
-
+# test to see if nothing has changed since last registration
+if help.lastRegistered is not None and \
+help.lastRegistered = DateTime(os.stat(path)[stat.ST_MTIME]):
+return
+help.lastRegistered=DateTime()
+
+if clear:
+for id in help.objectIds('Help Topic'):
+help._delObject(id)
+   
+for file in os.listdir(path):
+ext=os.path.splitext(file)[1]
+ext=string.lower(ext)
+if ext in ('.dtml',):
+ht=HelpTopic.DTMLTopic(file, '', os.path.join(path,file))
+self.registerHelpTopic(file, ht)
+elif ext in ('.html', '.htm'):
+ht=HelpTopic.TextTopic(file, '', os.path.join(path,file))
+self.registerHelpTopic(file, ht)
+elif ext in ('.stx', '.txt'):
+title=string.split(open(os.path.join(path,file),'rb').readline(), 
+':')[0]
+ht=HelpTopic.STXTopic(file, title, os.path.join(path, file))
+self.registerHelpTopic(file, ht)
+elif ext in ('.jpg', '.gif', '.png'):
+ht=HelpTopic.ImageTopic(file, '', os.path.join(path, file))
+self.registerHelpTopic(file, ht)
+elif ext in ('.py',):
+ht=APIHelpTopic.APIHelpTopic(file, '', os.path.join(path, file))
+self.registerHelpTopic(file, ht)



Re: [Zope] MySQL Connection String

2000-11-17 Thread Tony McDonald

On 17/11/00 4:36 pm, "Aitor Grajal Crespo" [EMAIL PROTECTED]
wrote:

 I have installed ZMySQLDA 1.1.4,
 anybody knows the format of the database connection string???
 
 I have put database user passw , and doesn't work
 
 Thanks
 
 

database@host user passwd

'host' can be 'localhost' for database servers on the same machine as
Zope...
hth
Tone
--
Dr Tony McDonald,  Assistant Director, FMCC, http://www.fmcc.org.uk/
The Medical School, Newcastle University Tel: +44 191 222 5116
A Zope list for UK HE/FE  http://www.fmcc.org.uk/mailman/listinfo/zope


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] SiteAcess (Debian Fix)

2000-11-17 Thread The Doctor What

I have submitted this bug to the Zope Bug system.

Ciao!

-- 
"Duct tape is like the force.  It has a light side, and a dark side, and it holds the 
universe together ..."
-- Carl Zwanzig

The Doctor What: fill in the blank http://docwhat.gerf.org/
[EMAIL PROTECTED]   KF6VNC

___
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] overriding manage_beforeDelete in a CatalogAware Product

2000-11-17 Thread Dennis Nichols

At 11/17/00 09:04 AM, Andy McKay wrote:
  But I'm confused about how to get rid of the index entry upon delete...

You should just be able to do "self.manage_beforeDelete(..)" since you have
inherited all CatalogAware's methods. Make sure you have CatalogAware as
your first (left most) item in your classes inheritance.

This might be right, but I didn't try it because next Andy said:

Do you really need to set the catalog again? Isnt that already set in your
class?

I think I get a big "Well, duh!" here. Of course, if I do a 
"self.manage_editCataloger(...)" in my product's __init__ routine, that 
sets the catalog for the rest of the object's existence, not just the 
__init__ routine. And so I don't have to set it again in any edit routine, 
nor do I have to worry about the object's deletion.

Tested and working. Many thanks.

--
Dennis Nichols
[EMAIL PROTECTED]


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Inserting LONGs with DCOracle

2000-11-17 Thread Dorothea Kuehn

Hi,
If I try to insert an ca.5000 char string with DCOracle(1.3.2) into a LONG
column in Oracle (8i) I keep getting ORA-1704 'string literal too
long'-Errors. 

Ok, I read here
http://osi.oracle.com/~tkyte/Misc/LargeStrings.html
that it will work (a) with bind variables or (b) that I have to use
ODBC,OCI or alike.

Questions: (a) Can I use bind variables with DCOracle? How?
(b) I thought DCOracle is using OCI, so why the heck this isn't working?
Any workarounds?

thanks for help,
dekay

___
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] MySQL Connection String

2000-11-17 Thread Eric Walstad

I use the following format:

users@frankenstein privileged_user ThePassWord
- or in general terms -
TableName[@HostNameOfMachineMySQLIsRunningOn] MySQLUserName ThePassWord

I guess the "@HostNameOfMachineMySQLIsRunningOn" part is optional, but I
needed to put it in there for my setup.
The "privileged_user" is one that you've done a MySQL GRANT for. I.e.
something like:
GRANT SELECT,INSERT,UPDATE ON DatabaseName.TableName TO MySQLUserName
IDENTIFIED BY 'ThePassWord';

FYI, I found this info in ALANPOG's HowTo:
http://www.zope.org/Members/alanpog/zmysqlda_steps

hth, Eric.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Aitor
Grajal Crespo
Sent: Friday, November 17, 2000 8:37 AM
To: [EMAIL PROTECTED]
Subject: [Zope] MySQL Connection String


  I have installed ZMySQLDA 1.1.4,
anybody knows the format of the database connection string???

I have put database user passw , and doesn't work

Thanks


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Running Mailman CGI under Zope ZServer

2000-11-17 Thread Stephan Richter

At 09:55 AM 11/17/00 -0500, you wrote:
 Any chance I could take a look at your code?

1. Make a soft link from HOME/OF/MAILMAN/Mailman to HOME/OF/PYTHON/LIBS 
(usually /usr/lib/python1.5).
2. Now you are able to use all the Mailman Python modules in all of you 
Python programs including Zope.
3. The methods (External Methods) I used:

from Mailman import MailList

def addMember(email, passwd):
 mlist = MailList.MailList('members')
 mlist.ApprovedAddMember(email, passwd, 0)
 mlist.Unlock()

def delMember(email):
 mlist = MailList.MailList('members')
 mlist.DeleteMember(email)
 mlist.Unlock()

Note: If you go and read the Mailman source code, you can figure out many 
more functions, that are just the 2 I used to add/delete members.

4. As I mention before, you should run Mailman and Zope as the same user to 
not conflict with the DB permissions. I never fully tested that though.

Regards,
Stephan


--
Stephan Richter
CBU - Physics and Chemistry Student
Web2k - Web Design/Development  Technical Project Management


___
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] PTK good for MyNetscape-style read-only personalised portals?

2000-11-17 Thread Hamish Lawson

I'm looking to put together a portal site where members can choose from
various content sources and personalise the layout but wouldn't be
authoring content, similar to sites like MyNetscape and MyYahoo. Is the
PTK good for this?

Hamish Lawson



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

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] RE: ANNOUNCE Zope 2.2.3 release...

2000-11-17 Thread Brian Lloyd

FYI - someone has noticed a problem with the posted 
2.2.3 release that needs looking into, so I've unlisted 
it for the time being. I'll send out a note and re-list 
it after we dig into this a bit...


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] ZClasse default in the product

2000-11-17 Thread Dieter Maurer

Jean Rodrigo Ferri writes:
   preventing (local) ZClasses to be shown in the global
   "Available Objects" list 
You may define the local ZClasses inside the global one.
Then they will only be seen inside that global ZClass.

I think, you will find something about this in the
Zope book.


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] Visualization of inherited attributes

2000-11-17 Thread Dieter Maurer

Jean Rodrigo Ferri writes:
    access to properties in ZClass property sheets 
You may be able to access them by simply using their name:

dtml-var property

If you want more control, you may look at the
"PropertySheetManager" and "PropertySheet" API's
in your Zope online help.


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] Reasons for Apache?? SSL?? (was Running Mailman CGI under Zope ZServer)

2000-11-17 Thread Joachim Werner

 how to. This works well and Apache serves Zope pretty well and we can even
 use SSL (there are some issues to be resolved that I suspect are due to
 misconfiguration on our server). However, I can always access Zope
directly
 using port 8080 (or whatever port where ZServer is listening to) without
 SSL.

 This is aboviously not the intended behaviour. Is there a way to prevent
 this? I know there is ZServerSSL but isn't the whole point of using Apache
 that it is a better and more robust web-server than Zserver? (apart from
the
 fact that we need to serve a lot of static content as well).

 What are the main resons for serving Zope behind Apache?

A lot of Zope sites (including www.zope.org itself) actually use Apache only
as a proxy server, i.e. Apache doesn't SERVE the content, but just relays
requests to ZServer (you'd need the SiteAccess product on the Zope part for
this configuration option). So you can have different Zope servers serve
parts of the same web site, use Apache to set up virtual servers, or easily
set up SSL for parts of your site. Apache can then also be used to serve
static parts of your web site, like large documents or images. Also, Apache
can be used to cache Zope requests. ZServer (with or without Apache as a
proxy) is definitely faster than any other option (FastCGI, ...).

Regarding your problem: Set up a simple packet filter firewall (most Linux
distros have scripts for that, e.g. SuSE has "firewals") and don't allow
access to port 8080.

Cheers

Joachim.


___
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: ANNOUNCE Zope 2.2.3 release...

2000-11-17 Thread Joachim Werner

 FYI - someone has noticed a problem with the posted
 2.2.3 release that needs looking into, so I've unlisted
 it for the time being. I'll send out a note and re-list
 it after we dig into this a bit...


Oh no, not this one again ...

How good that I learned my lesson from the infamous 2.1.x series, when you
always replaced or withdrew the latest bugfix release due to "some errors"
right after we had updated all our servers ...

What about having a "beta" phase for every release, even the x.x.x ones?

Cheers,

Joachim.





___
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 get around non-propogating proxy roles, also security problem with zsql traversal?

2000-11-17 Thread Dieter Maurer

Brad Clements writes:
  1. Why is it that proxy roles don't propogate and accumulate when 
  methods are called?
I do not know exactly but suppose it is to reduce the danger
of trojan horses.

It was changed with the new Zope 2.2 security policy.

  2. I'm actually using simple ZSQL traversal, like this:
  
  mysite.com/MyFolder/MyZSQL/138348343/PublicInfo
  
  PublicInfo is the DTML Doc with proxy role = PUBLIC.
  
  MyZSQL is an SQL Method that doesn't appear to be viewable by 
  anonymous. However when called using simple traversal shown above, 
  the SQL method IS executed.
  
  Is this a security bug? It seems that anonyous users can "call" an sql 
  method using traversal even if security disallows anonymous View.
It is not the view permission that is relevant for Z SQL method
use, but "Use database methods".

Nevertheless, I can imagine that it will nevertheless be possible
to use the method, even if the permission is not granted.
This is due to the way, the permission checking is implemented.
The ZPublisher first locates the object to be accessed
by URL traversal without any security checks (as it does not yet have any
user information). 
After the object is located, it determines its protection
and then walks back along the objects visited to find the object
in order to find a user folder able to authenticate a user
with sufficient privileges.
Security restriction of these intermediate objects are only
relevant if they were inherited by the final object.

Thus, indeed, you may have found a security whole.
Put it into the collector.



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] expiring dtml documents

2000-11-17 Thread wade naveja

i maintain a zope server that collects several hundred dtml documents per
day.  there is a need to have dtml documents removed 2 weeks after they
are created.  any suggestions on how to go about doing this?


___
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: ANNOUNCE Zope 2.2.3 release...

2000-11-17 Thread Brian Lloyd

 Oh no, not this one again ...
 
 How good that I learned my lesson from the infamous 2.1.x 
 series, when you always replaced or withdrew the latest 
 bugfix release due to "some errors" right after we had 
 updated all our servers ...

I think "always" is a bit strong...

 
 What about having a "beta" phase for every release, even 
 the x.x.x ones?

I think that is reasonable - in practice I have found that 
many people tend not to upgrade until something is declared 
"final", but your point is taken and a little feedback is 
better than none. I'll make Monday's release 2.2.4 b1.


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




___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] off toic, but... ange-ftp only works as unix root

2000-11-17 Thread Bill Welch

even though I can ftp into zope from unix root and non-root. As unix
non-root, ange-ftp asks for password and then hangs emacs. Does respond to
C-g. Same zope user in all cases. The obvious problem is some file or port
permission, but I'm hoping someone can show me the way instead of me going
for another bushwhack. Debian woody, emacs 20.7.2. Any ideas?

Bill.


___
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] Need some help with installing ZPatterns

2000-11-17 Thread Steve Waterbury

I'm a newbie.  Have successfully installed the precompiled Zope 
2.2.2 on Solaris 2.6, running with apache 1.3.14 via fastcgi.  
Now trying to install ZPatterns-0-4-3b2.  Untarred it into the 
zope dirs, so now its source is in zope/lib/python/Products/ZPatterns 

Following the instructions in README.txt, I looked for a 
Makefile.pre.in ... it wasn't included, so I looked around in 
the zope distribution and found one in /lib/python/Shared/DC/xml/pyexpat 
-- it claims to be "Universal Unix Makefile for Python extensions", 
and it says it works with Python 1.5 or newer:

# Build *and install* the basic Python 1.5 distribution.  See the
# Python README for instructions.  (This version of Makefile.pre.in
# only withs with Python 1.5, alpha 3 or newer.)
   ^ (sic -- is that a Python idiom?  :^)

... so I figured it might work, but when I try 
"make -f Makefile.pre.in boot", I get the following:

rm -f *.o *~
rm -f *.a tags TAGS config.c Makefile.pre python sedscript
rm -f *.so *.sl so_locations
VERSION=`python -c "import sys; print sys.version[:3]"`; \
installdir=`python -c "import sys; print sys.prefix"`; \
exec_installdir=`python -c "import sys; print sys.exec_prefix"`; \
make -f ./Makefile.pre.in VPATH=. srcdir=. \
VERSION=$VERSION \
installdir=$installdir \
exec_installdir=$exec_installdir \
Makefile
make: Fatal error: Don't know how to make target 
`/vol01/software/zope/lib/python1.5/config/Makefile'
Current working directory /vol01/software/zope/lib/python/Products/ZPatterns
*** Error code 1
make: Fatal error: Command failed for target `boot'

**

What blockheaded thing am I doing?  

TIA!
-- Steve.

   oo _\o
\/\ \
  /
 oo _
"Sometimes you're the windshield; sometimes you're the bug."
- Knopfler

Stephen C. Waterbury   Component Technologies
Code 562, NASA/GSFC  and Radiation Effects Branch
Greenbelt, MD 20771   Engineering Web/Database Specialist
Tel: 301-286-7557  FAX:  301-286-1695
WWW:  http://misspiggy.gsfc.nasa.gov/people/waterbug.html
_

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Problem with escaped double quotes

2000-11-17 Thread Spicklemire, Jerry

Aitor asked:

 My problem is this :
 
 dtml-let foo=3D" ' blaublau : " fdsaf " df ' "
 /dtml-let
 
 It doesn't work 'cause I can't escape the doble quotes inside the string=
  I'm trying to eval.
 
 Any solution???

If I recall correctly, the work around I've used is to store the text,
including the double quotes, as a property of a parent folder, so that it
can be found by acquisition.

for example, create a String Property named "fdsaf_alias" with a
value of :

" fdsaf "

and then change your DTML to :

dtml-let foo=3D" ' blaublau : " + fdsaf_alias + " df ' "

Other than that, reconsider whether there might be a way to do this with
single quotes. HTML will usually accept either single or double quotes, but
nesting quotes is of course the common reason to use both types in an
expression. Since I have no idea what the item actually represents, it's not
a call I can make from this end.

Good Luck!
Jery S.

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