Re: [Zope] UserFolder Alternate Login

2001-01-05 Thread Bill Anderson

[EMAIL PROTECTED] wrote:

> Zopatistas,
> 
> I need functionality that none of the UserManagers seem to address. I 
> need to allow a user to elect to log in (and set 
> AUTHENTICATED_USER) as opposed to have them access a restricted 
> resource to trigger cookie authentication. 

*Ahem* Actually, Membership *does* provide login/logout forms that do 
not require accessing a private section of a site.

> I am essentially limited to GUF because it's the only thing I can install 
> on my provider's system (I can't compile the LoginManager). Is there 
> a way to allow the user to login at will, and still get 
> AUTHENTICATED_USER set?

Ok, that's different.

Dead Simple way(tm):
Make page that *does* have a need for login. Put a link to it, call the 
link "login".
When they access the page, they wil not have permission to see it, and 
will thus be given a request for authentication, the logging them in part.

If you put this method in the root of your site, say calling it 'login' 
for an id, then you could put a link in your menuing system that calls 
it with an href of "login".

Then, in your 'login' method/page, you set it up to redirect back to the 
page they were on when they clicked the login link. There are several 
examples of this part around; search the Mailing List(s) archives.

Until such time as they do log in, the user will be 'Anonymous'. As 
such, you would make the appearance of the login link dependant on the 
AUTHENTICAT_USER having the Role 'Anonymous'.

Without using a cookie login system, you _must_ access a restricted 
resource, even if it just a redirect. That is how basic Authentication 
works. If you are using cookie login, there are HowTos on that around as 
well. You just show the user the login page.



Bill Anderson



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Z2 Log question

2001-01-05 Thread Dieter Maurer

Stuart Foster writes:
 > I was looking at my Z2 log and notice an entry that repeats itself over 
 > and over and was wondering if anyone could tell me how to trace it down.
 > 
 > The message is
 > 
 >  [20/Nov/2000:13:00:11 -0700] "HEAD /opnix/portal HTTP/1.0" 401 1906 "" 
 > "" 
 >  [20/Nov/2000:13:00:17 -0700] "HEAD /opnix/portal HTTP/1.0" 401 1906 "" 
 > "" 
 > 
 > and as you can see it happens about every 5-6 seconds and there are many 
 > entries for it. 
 > 
 > Where would I start to back track this. 
 > We are running Zope behind Apache using proxy pass.
Someone repeats the HEAD HTTP request.

Look at the Apache log. You should see there similar requests.
The first component in each log line is the the hostname or
its internet address from where the request came (may be a proxy).
Maybe, this information gives you a hint about the
requests origin.


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] newbie q -- 2.3.0a1, file object & precondition

2001-01-05 Thread John Gerard Malecki

hi,

i'm very new to zope and am trying to get familiar with the variety of
mechanisms i can use.  zope is indeed a very nice package!

i am starting with version 2.3.0a1 (because it matches the book).
i've not yet had success getting preconditions to work with file
objects.  i hope i'm not doing anything too bone-headed.

here is what i have: in a folder i have file objects T and U.  T has
the precondition 'preco(1)' and U has the precondition 'preco(0)'.  in
the same folder (or above, it doesn't matter) i have the python script
preco with the contents

if r == 0:
raise "preco"
else:
return r

when i the manager or type in the URL directly i can view/download
both T and U.  i was hoping only T would be "visible".  

i'm not sure how to debug something like this.  if you can tell me how
i can debug this on my own that would be best.

-cheers


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] manage_editProperties Question

2001-01-05 Thread Dieter Maurer

Ronald L. Roeber writes:
 >  self.manage_editProperties(REQUEST=None,contact=newcontact)
 >  ...
 > 
 > Error Type: TypeError
 > Error Value: unexpected keyword argument: contact

"manage_editProperties" has the following signature:

def manage_editProperties(self, REQUEST)

As you see, there is indeed no parameter named "contact".

You can do instead:

  self.manage_editProperties({'contact' : newcontact})

This means, you build a dictionary with the new property
values and pass it as REQUEST.


Be WARNED:

   "manage_editProperties" changes *ALL* properties
   of your object, even those not mentioned in the
   dictionary!

What you may want to use instead is "manage_changeProperties".
It will change just the mentioned properties, 'contact'
in your example.


I think, you find this information in the Zope integrated
help system (API Reference, Property Manager).
If not, then look at the source: OFS.PropertyManager.PropertyManager.
It contains good source documentation.


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] Calling a DTML method in a subfolder that uses PARENTS[0]

2001-01-05 Thread Dieter Maurer

Soren Roug writes:
 > Hello,
 > 
 > I'm trying to call a method inside a folder that uses this common way of
 > listing its content:
 > 
 > 
 > 
 > 
 > 
 > Let's call this folder FileLibrary. (It's actually a Z Class subclassed
 > from ObjectManager)
 > 
 > My problem is when I call the method from the folder above, then PARENTS
 > is unchanged and the script will try to enumerate the files in the
 > folder I'm calling from. I've tried several things, e.g.
 > 
 > ...
 > 
 > ...

   

would do it, but would be *VERY* hacky code.

Instead:
   Give your method a parameter, say "sourcefolder".
   In your method:

  
   
   (You may want to factor the "(_.has_keyPARENT[0])" out.)

   Then, when your method should use a special folder, use:

 
   
 


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] Acquisition: DTML Methods vs Documents

2001-01-05 Thread Dieter Maurer

Oleg Broytmann writes:
 >Can anyone here explain clearly what is the difference between DTML
 > Methods and DTML Documents regarding acquisition?
I think, I gave a good answer to a similar question
in zope-dev recently --> searchable list archive.



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] External Methods

2001-01-05 Thread Dieter Maurer

Marcus Mendes writes:
 > I've got the follow content : Key Error SERVER_NAME, that is, 
 > 
 > form= REQUEST.form 
 > 
 > server = form['SERVER_NAME']
The error report is unambiguous.

Your "REQUEST.form" does not contain "SERVER_NAME".
You may try "REQUEST['SERVER_NAME']".

Remember:
   "REQUEST.form" contains just the form variable or
   parameter definitions in the URL's query string.

   "REQUEST" contains other information in
   "REQUEST.cookies", "REQUEST.other" and
   "REQUEST.environ", all of which are
   accessible through "REQUEST[...]".

   "SERVER_NAME" is a CGI variable, defined in
   "REQUEST.environ".


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] emacs and zope

2001-01-05 Thread Mehmet Yousouf

Hi,
I am trying to get xemacs to use dtml tags (zope), I downloaded .dtd,
.ent, .el files and can get it to go into "dtml-mode", but I can't get any
of the tags to appear in the menus. I put the files in ~/Emacs/ (this is
referenced in my .emacs file) it seems to find my public file, and the .el
file as I do get into "dtml-mode". I tried putting the .dtd and .ent files
in /usr/lib/xemacs/xemacs-packages/etc/psgml but still no luck.
What am I doing wrong?

Regards, Mehmet

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




Re: [Zope] SELECT COUNT(*) ZSQL method -> displaying results?

2001-01-05 Thread Alex Reid

Lee,

Have you tried SELECT COUNT(*) AS myCountField

and then using 

May work.

Alex
[EMAIL PROTECTED]

- Original Message - 
From: Lee <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 05, 2001 10:12 PM
Subject: [Zope] SELECT COUNT(*) ZSQL method -> displaying results?


> Hi,
> 
> I am having difficulty displaying the results from an SQL query:
> 
> SELECT COUNT(*)
> FROM REGISTRY
> WHERE 
> 
> When I call the ZSQL method from my DTML method and try and display the
> result (using ) I get a rather horid, "This resource may
> be trying to reference a nonexistent object or variable count" error.
> 
> My only thought is that because 'count' isn't actually a proper variable
> (i.e. a column name) it is handled differently.
> 
> Can anyone see my error / offer advice?
> 
> Thanks very much in advance.
> 
> - Best regards,
> Lee
> 
> --
> Lee Reilly
> mailto:[EMAIL PROTECTED]
> http://www.footkick.co.uk/lee
> 
> 
> 
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] PoPy Problems

2001-01-05 Thread J. Atwood

Linux 6.2, Zope 2.2.4, PostgreSQL 7.0.3, PoPy 1.4.1, ZPoPyDA 0.7.0

I installed the PoPy module and at the Python command line can 
"import PoPy' with no problems. I then untarred the ZPoPyDA and 
restarted Zope at which point I get (in the Zope management screen).

ZPoPyDA Import Traceback

Traceback (innermost last):
   File "/usr/local/zope/lib/python/OFS/Application.py", line 397, in 
import_products
 product=__import__(pname, global_dict, global_dict, silly)
   File "/usr/local/zope/lib/python/Products/ZPoPyDA/__init__.py", line 32, in ?
 import sys, os, Globals, DA
   File "/usr/local/zope/lib/python/Products/ZPoPyDA/DA.py", line 35, in ?
 from PoPy_db import DB
   File "/usr/local/zope/lib/python/Products/ZPoPyDA/PoPy_db.py", line 35, in ?
 raise "The PoPy module is not installed"
The PoPy module is not installed

There is really no more instructions on the site, in the INSTALL or README.

If have installed and worked with ZPygreSQL before but was under the 
impression that it did not work with the newer versions of Zope and 
Postgresql.

Thanks,
J

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




Re: [Zope] zope on Win95

2001-01-05 Thread Jason Cunliffe

Nando

This should be what you are looking for:

http://www.zope.org/Products/Zope/2.2.4/Zope-2.2.4-win32-x86.exe/view

I have been running Zope on Win95 and Win98 on laptops for learning,
development and off-line site demsontration very happily for a long time.

You don't 'execute dtml files' ... Zope uses them for many purposes as
server-side scripts which are rendered and returned as ordinary HTML in the
client web browser. DTML files can combine Zope-specific syntax, Python
sytnax, Javascript stuff, CSS etc.

Learning how to design for Zope, factoring the application, when and where
to use the many tools and techniques - it takes time and practice to do
well. But it is possible to get simple but impressive results very fast.

DTML can be called within other DTML, Python or directly in a URL from a web
browser.
For example: http://www.myzopesite.com/invent
'invent' might be one of many things including:
- a DTML Document or Method
- some other script or method typically programmed in Python and accessible
to Zope
- a Zope other object in the ZODB [Zope Object Data Base]
- a Zope 'folder' which appears as a hierarchical file system tree of
containers for Zope applications, projects and data


1. See the online version of the new Zope Book
http://www.zope.org/Members/michel/ZB/
This will be published very soon by O'Reilly

2. Run through the tutuorials which are included when you download Zope.

3. See many more guides, how-to's etc are linked from
http://www.zope.org/Documentation

Good luck!

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

- Original Message -
From: nando n <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, January 05, 2001 2:16 PM
Subject: [Zope] zope on Win95


>
> where can i download (exact url) binary version
> of zope to install it on my win95 system?
> for now i've only been able to download python
> source code version of zope.
> how do i execute dtml files?
>
> i just want to know that. 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] SELECT COUNT(*) ZSQL method -> displaying results?

2001-01-05 Thread Lee

Hi,

I am having difficulty displaying the results from an SQL query:

SELECT COUNT(*)
FROM REGISTRY
WHERE 

When I call the ZSQL method from my DTML method and try and display the
result (using ) I get a rather horid, "This resource may
be trying to reference a nonexistent object or variable count" error.

My only thought is that because 'count' isn't actually a proper variable
(i.e. a column name) it is handled differently.

Can anyone see my error / offer advice?

Thanks very much in advance.

- Best regards,
Lee

--
Lee Reilly
mailto:[EMAIL PROTECTED]
http://www.footkick.co.uk/lee




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




Re: [Zope] UserFolder Alternate Login

2001-01-05 Thread Oliver Bleutgen

> Zopatistas,

> I need functionality that none of the UserManagers seem to address. I
> need to allow a user to elect to log in (and set
> AUTHENTICATED_USER) as opposed to have them access a restricted
> resource to trigger cookie authentication.


You mean you want to use AUTHENTICATED_USER like a cookie, i.e.
loggin in and every password authenticates?
Using basic auth it might be a nice way to get cookie functionality
without using cookies.
You could write a custum method which triggers authentication and
rewrite the method of GUF to always return 1. If someone wants
to "log in", he could click on a link to this method. 
Maybe



Logout!!


You are now logged out!

could be a starting  point. If it is contained in standard_html_header it
would force everyone to choose a user name, and in conjuction with
the GUF-hack mentioned above he would always be logged in - 
well unless he decides to call himself "Anonymous User" (luck that
this isn't coward ;).

If you want to use cookies anyways, take a look at session manager or
code it yourself and don't use hasrole.

cheers,
oliver





___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] UserFolder Alternate Login

2001-01-05 Thread dlee

Zopatistas,

I need functionality that none of the UserManagers seem to address. I 
need to allow a user to elect to log in (and set 
AUTHENTICATED_USER) as opposed to have them access a restricted 
resource to trigger cookie authentication. 

I am essentially limited to GUF because it's the only thing I can install 
on my provider's system (I can't compile the LoginManager). Is there 
a way to allow the user to login at will, and still get 
AUTHENTICATED_USER set?

There are no "restricted" parts of the site I am building (except for the 
management interface) however, I would like to generate dynamic 
menus (using hasrole) which allow users in specific groups (authors, 
members, etc) to have additional menu options.

I'm hoping there is a way to do this...

Thanks in advance,
Darin Lee



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




Re: [Zope] Zope redirecting manage_workspace?!

2001-01-05 Thread Dieter Maurer

Edmund Goppelt writes:
 > ... manage_workspace redirects ...
It does this, if the current permissions does not allow
the use of any of the available tabs.

Are you sure, you set the permission mappings correctly?


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] External Methods

2001-01-05 Thread Marcus Mendes

"Ryan M. Dolensek" wrote:
> 
> Try...
> 
> for k,v in form.items():
>   k should contain the key name
>   v should contain the value
> 
> Otherwise...
> 
> value = form['Name_Of_Variable_OF_my_form']
> 
> Hope that helps.
> 
> Ryan
> 
> > Hello,
> >
> > Ok Sirs, I'm very late in my checking my mailbox ;-)
> >
> > I've a question in this code above : How can I get the values of a
> > dictionary form?
> > In my Method, I used form.values(), form.Name_Of_Variable_OF_my_form,
> > but it is not working.
> >
> > Thanks
> >
> > Marcus Mendes
> >


Hello again,

I've got the follow content : Key Error SERVER_NAME, that is, 
Look at my code, please:



def log_info(REQUEST):
if REQUEST is None:
   REQUEST=self.REQUEST 
form= REQUEST.form 

try: log=open('/home/mvmendes/testes_zope/log.txt', 'a')
except IOError:
  log=open('/home/mvmendes/testes_zope/log.txt', 'w')
server = form['SERVER_NAME']
connection = form['CONNECTION_TYPE']
line='Server: %s, Connection type : %s\n' % ( server, connection )
log.write(line)
log.close()
return


I calling my external method using : 
I also tried with "for" command but isn't working.

Can you help me?

Thanks in advance.

Marcus Mendes

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] manage_editProperties Question

2001-01-05 Thread Ronald L. Roeber

I have looked through the Zope book and other documentation, but still
am unable to properly allow others to change properties in a product
with a custom built form.

Case in point, a product with a Property called

contact
which is a string

The product changing method  I am trying to make work contains the
following

def editProductInfo(self, newcontact):
 ...
 self.manage_editProperties(REQUEST=None,contact=newcontact)
 ...

Which is not correct obiously since it generates the following error:

Error Type: TypeError
Error Value: unexpected keyword argument: contact

--

TIA for helping someone so slow as myself...

Ron Roeber
University of Nebraska



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] SQL "editing"

2001-01-05 Thread Stuart Foster

We use the Znolk wizard. It's good for creating the initial entry, edit, 
list forms as well as the queries to add, edit and delete.

>> Original Message <<

On 1/5/01, 10:47:14 AM, Alex Burton <[EMAIL PROTECTED]> wrote regarding 
[Zope] SQL "editing":


>   Hello All,

>   I'm quite happy, got MySQL + the necessary adapters running in no
> time. Imported tab-delimited text and enjoying Zsearches... Zope
> kicks ass!

>   Now, i'm wondering if there's anyone who've done some work as to
> permit easy editing of records in SQL tables? What i have in kind is
> something like:

>   - do a search -> a list of matches come up;
>   - select a match -> a form comes up filled with the data, and a
> "submit" button
>   - press submit -> SQL gets altered

>   A bit like the "edit this page" philosophy, but for SQL records...

>   Thanks!

>   Alex.


> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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 on Win95

2001-01-05 Thread nando n


where can i download (exact url) binary version
of zope to install it on my win95 system?
for now i've only been able to download python
source code version of zope.
how do i execute dtml files?

i just want to know that. thanks


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


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




RE: [Zope] SQL "editing"

2001-01-05 Thread Mohan Baro

You can use the ZNolk SQL wizard also available from zope.org

Mohan


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Alex
Burton
Sent: Friday, January 05, 2001 12:47 PM
To: [EMAIL PROTECTED]
Subject: [Zope] SQL "editing"



  Hello All,

  I'm quite happy, got MySQL + the necessary adapters running in no 
time. Imported tab-delimited text and enjoying Zsearches... Zope 
kicks ass!

  Now, i'm wondering if there's anyone who've done some work as to 
permit easy editing of records in SQL tables? What i have in kind is 
something like:

  - do a search -> a list of matches come up;
  - select a match -> a form comes up filled with the data, and a 
"submit" button
  - press submit -> SQL gets altered

  A bit like the "edit this page" philosophy, but for SQL records...

  Thanks!

Alex.
 

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] SQL "editing"

2001-01-05 Thread Alex Burton


  Hello All,

  I'm quite happy, got MySQL + the necessary adapters running in no 
time. Imported tab-delimited text and enjoying Zsearches... Zope 
kicks ass!

  Now, i'm wondering if there's anyone who've done some work as to 
permit easy editing of records in SQL tables? What i have in kind is 
something like:

  - do a search -> a list of matches come up;
  - select a match -> a form comes up filled with the data, and a 
"submit" button
  - press submit -> SQL gets altered

  A bit like the "edit this page" philosophy, but for SQL records...

  Thanks!

Alex.
 

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Pb. of Inheritance lost between packages. (after too manyexport/imports ?)export/imports ?)

2001-01-05 Thread Thierry Nabeth

Hello,

Here is this problem again that has reappeared  
I already posted about this problem some months ago,
but did not manage to make it work, and I had to rewrite
all the class from scratch.
(of course, I did a lot of cut and past, but you
have to do a lot of manual work recreating the
Properties, and you loose all the instance you had created).

Here is my problem: 

I have 3 Products PA PB PC
and I have the 3 classes A, B and C defined in each of the
different Products.

PA has class A
PB has class B
PC has class C.

Besides, the inheritence tree is the following:

A <-- B  <-- C.
(A inherits from B, etc.)

The problem is that after some time (after many export and re-import of
Products),
the inheritance does not work anymore between the package.

For instance if I define a new method in class A,
it is invisible from class B.
Or if I redefine a method in a Class A, the class B still 
see the old method of class B.

Note that at the beginning, when you create those three packages
and classes, everything seems to work fine.
(I have done the test).

Did someone already encountered a similar problems ?
Do someone has an idea what could be wrong, and has some idea about
how to fix the problem ? 
(my guess is that something wrong happens after too many
export and imports which confuses python).

Thierry Nabeth
Research Fellow,
INSEAD CALT (The Centre for Advanced Learning Technologies)
http://www.insead.edu/CALT/
[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] Z2 Log question

2001-01-05 Thread Stuart Foster

I was looking at my Z2 log and notice an entry that repeats itself over 
and over and was wondering if anyone could tell me how to trace it down.

The message is

 [20/Nov/2000:13:00:11 -0700] "HEAD /opnix/portal HTTP/1.0" 401 1906 "" 
"" 
 [20/Nov/2000:13:00:17 -0700] "HEAD /opnix/portal HTTP/1.0" 401 1906 "" 
"" 

and as you can see it happens about every 5-6 seconds and there are many 
entries for it. 

Where would I start to back track this. 
We are running Zope behind Apache using proxy pass.

Any thoughts.

TIA Stuart 

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] images bi XML-RPC

2001-01-05 Thread Nuno Goncalves

Hi there !
I'm trying to add imagens with a perl XML-RPC script
Does anyone knows how to do that ??
I'm tring something like this
but Zope adds a conten-type like text/x-unknown-content-type
and i wanted a image content-type !

here's the code :
-
#!/usr/bin/perl

use Frontier::Client;

$c = new
Frontier::Client(url=>"http://localhost:/name/Template/images");

$arr_teste[0]='primeiro';
$arr_teste[1]='segundo';

$arr = $c->call('manage_addImage',('id-img_pl','banner_bck.gif'));



thanks !!
Nuno


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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 split a string in a python method?

2001-01-05 Thread Jim Washington

Yes. Just use it. string is already in the Python Methods namespace.

EXAMPLE:

Python Method 

Parameter list: self

Python function body:

testsentence = 'I want this sentence to be converted into a list of its
component words.'
thelist = string.split(testsentence)
for aword in thelist:
  print aword
return printed

-- Jim Washington

Juan Carlos Coruña wrote:
> 
> Is there any way to split a string in a PythonMethod without passing the
> object _.string as an argument?
> 
> I have tried to "import string" but Zope generates an ImportError:
> 
> ImportError: __import__ not found
> 
> I'm using PythonMethod 0.1.7

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Acquisition: DTML Methods vs Documents

2001-01-05 Thread Rik Hoekstra

> On Fri, 5 Jan 2001, Stephane Bortzmeyer wrote:
> > http://www.zope.org/Members/michel/HowTos/DTMLMethodsandDocsHowTo
> > saved my life.
>
>Thanks. I'be read it yesterday. It does not help much because it does
> not answer my question:
>
>If I call http://machine:port/top/middle/AFolder/ADocument (in terms of
> this HOWTO), and ADocument calls , what is acquisition
> path for AMethod?

Oleg,

what might come handy in your case is the howto "Shane's Aquisition
Understander" at

 http://www.zope.org/Members/chrisw/showaq

it'll help you visualize the acquisition path from your document.

You may also want to look at my howto Changing Contexts in Zope
http://www.zope.org/Members/Hoekstra/ChangingZopeContexts

Or Jim's acquisition algebra from a Python point of view of these matters:

http://www.zope.org/Members/jim/Info/IPC8/AcquisitionAlgebra/index.html


hth

Rik


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




[Zope] How to split a string in a python method?

2001-01-05 Thread Juan Carlos Coruña

Is there any way to split a string in a PythonMethod without passing the
object _.string as an argument?

I have tried to "import string" but Zope generates an ImportError:

ImportError: __import__ not found

I'm using PythonMethod 0.1.7


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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: translator / zbabel

2001-01-05 Thread Federico Di Gregorio

Scavenging the mail folder uncovered Olaf Zanger's letter:
> hi there,
> 
> i'm searching for a i18n product,
> 
> on translator i seam to miss "xmlio".

use attached xmlio.py (put it in $ZOPE_HOME/lib/python/Shared)
you don't have to use the makefile. just untar the tarball into
$ZOPE_HOME. (i use the makefile when i develop to automatically
copy files and to produce the distribution tarball.)

ciao,
federico

-- 
Federico Di Gregorio
MIXAD LIVE Chief of Research & Technology  [EMAIL PROTECTED]
Debian GNU/Linux Developer & Italian Press Contact[EMAIL PROTECTED]
 A short story: I want you. I love you. I'll miss you. -- 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 )




Re: [Zope] Acquisition: DTML Methods vs Documents

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

Hello!

I think hade a similar problem. It seems that you can only use methods for
acquisition, not documents.

I had an index_html DOC where I specified the structure of my site. In
index_html I used  that and in some_doc I once .

The idea was that in my subfolers I only needed to have the objects some_doc
and other_doc, and that I would use the structure from the index_html higher
up. This way I could provide "modules" to managers of subfolders, so they
need not to concern themselvs with the proper way of setting up their
index_html.

It didn't work unitl I changed index_html and all other objects from
dtml-docs to dtml-methods. Otherwise I would always end up with the parent
(in my case the root level) documents. I wanted to have DTML-documents in
the firts place, because I noticed that in dtml-methods the  call has no effect; it does not use the methods title_or_id, it
uses the toplevel (or the calling documents) title_or_id.

Is this a similar situation to yours?

/dario

- Original Message -
From: "Oleg Broytmann" <[EMAIL PROTECTED]>

>
>There are many Documents on my site, not only index_html. Should I make
> them all Methods? Why after this I need Documents at all?
>
> Oleg.



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Acquisition: DTML Methods vs Documents

2001-01-05 Thread Stephane Bortzmeyer

On Friday 5 January 2001, at 17 h 58, the keyboard of Oleg Broytmann 
<[EMAIL PROTECTED]> wrote:

>There are many Documents on my site, not only index_html. Should I make
> them all Methods? Why after this I need Documents at all?

Because not all documents are acquired (from an above folder). For index_html, for 
instance, it is common to have a different index_html (and in that case a document) in 
each folder. 




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




Re: [Zope] External Methods

2001-01-05 Thread Ryan M. Dolensek

Try...

for k,v in form.items():
  k should contain the key name
  v should contain the value

Otherwise...

value = form['Name_Of_Variable_OF_my_form']

Hope that helps.

Ryan



> Hello,
>
> Ok Sirs, I'm very late in my checking my mailbox ;-)
>
> I've a question in this code above : How can I get the values of a
> dictionary form?
> In my Method, I used form.values(), form.Name_Of_Variable_OF_my_form,
> but it is not working.
>
> Thanks
>
> Marcus Mendes
>


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] translator / zbabel

2001-01-05 Thread Olaf Zanger

hi there,

i'm searching for a i18n product,

on translator i seam to miss "xmlio".

since there is no install.txt provided i wonder how i have to use the
makefile?

i got zbabel now working with mysql, but it seams to put any babel-taged
area each view-time again in the database 

the construct is a my1dtmldocument with a tag 
and translations both documents.

what do i do wrong?

i appreciate any help

thanks

olaf

-- 
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] Acquisition: DTML Methods vs Documents

2001-01-05 Thread Stephane Bortzmeyer

On Friday 5 January 2001, at 12 h 26, the keyboard of Oleg Broytmann 
<[EMAIL PROTECTED]> wrote:

>When I call standard_html_header directly through the web, it acquires
> foobar using dynamic acquisition path:

Actually, if I understand it myself :-) it acquires foobar because a method 
has no poperties, so it looks first in the innermost container, the folder 
TEST or TEST/2.

> But then I call standard_html_header from DTML Document index_html:

In that case, you start the acquisition with the document index_html (reread 
the HOWTO : 
the acquisition can start from a document or a folder, not from a method).

> http://phd.russ.ru/pcgi/TEST/index_html
>show foobar from root (/TEST); exactly as I expected, no problem
> http://phd.russ.ru/pcgi/TEST/2/index_html
>WOW! It show foobar again from root, not from /TEST/2!
> standard_html_header acquires using static path provided by index_html!

You started acquisition from index_html. Since it has no foobar, it looked 
into its own container, /TEST, then in root.

>Is it normal and intended behaviour? If it is, how can I "solve" my
> problem? (I want to acquire different properties in standard_html_header,
> but call standard_html_header from different DTML Documents).

You can but the "problem" in your case, comes from the acquisition of an index_html 
document in a different folder. I suggest to add index_html documents in every folder 
*or* make index_html a method (this is what I use).



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




Re: [Zope] Acquisition: DTML Methods vs Documents

2001-01-05 Thread Oleg Broytmann

On Fri, 5 Jan 2001, Stephane Bortzmeyer wrote:
> > http://phd.russ.ru/pcgi/TEST/2/index_html
> >WOW! It show foobar again from root, not from /TEST/2!
> > standard_html_header acquires using static path provided by index_html!
>
> You started acquisition from index_html. Since it has no foobar, it looked
> into its own container, /TEST, then in root.

   Exactly as I wrote - in this situation standard_html_header acquires
using static path provided by index_html :(

> You can but the "problem" in your case, comes from the acquisition of an
> index_html document in a different folder. I suggest to add index_html
> documents in every folder *or* make index_html a method (this is what I
> use).

   There are many Documents on my site, not only index_html. Should I make
them all Methods? Why after this I need Documents at all?

Oleg.

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


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




[Zope] (no subject)

2001-01-05 Thread Gross, Chedva

I have an array created using javascript on one web page.  I want to access
that same array (or piece of it) on another page.  How can I go  about doing
this without using forms?

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Acquisition: DTML Methods vs Documents

2001-01-05 Thread Oleg Broytmann

On Fri, 5 Jan 2001, Stephane Bortzmeyer wrote:
> http://www.zope.org/Members/michel/HowTos/DTMLMethodsandDocsHowTo
> saved my life.

   Thanks. I'be read it yesterday. It does not help much because it does
not answer my question:

   If I call http://machine:port/top/middle/AFolder/ADocument (in terms of
this HOWTO), and ADocument calls , what is acquisition
path for AMethod?

   I showed an example, where AMethod do acquisition using static path, and
I think it is a bug. Or, may be, just my misunderstanding...

Oleg.

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


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




Re: [Zope] Acquisition: DTML Methods vs Documents

2001-01-05 Thread Stephane Bortzmeyer

On Friday 5 January 2001, at 12 h 26, the keyboard of Oleg Broytmann 
<[EMAIL PROTECTED]> wrote:

>Can anyone here explain clearly what is the difference between DTML
> Methods and DTML Documents regarding acquisition?

Not me but this HOWTO:

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

saved my life.



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




Re: [Zope] External Methods

2001-01-05 Thread Marcus Mendes

Phil Harris wrote:
> 
> Wouldn't it be better to pass in self?
> 
> As in:
> 
> def my_method(self,REQUEST=None):
>   '''my_method interpreting *REQUEST*.form.'''
>   if REQUEST is None:
> REQUEST=self.REQUEST # safety_valve in case you forget to pass in
> REQUEST
>   form= REQUEST.form # this is a dictionary containing form
>  # variables and associated values
> 


Hello,

Ok Sirs, I'm very late in my checking my mailbox ;-) 

I've a question in this code above : How can I get the values of a
dictionary form?
In my Method, I used form.values(), form.Name_Of_Variable_OF_my_form,
but it is not working.

Thanks

Marcus Mendes

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] installing zope on win95

2001-01-05 Thread Diny van der Donk

At 13:46 5-1-01 +0100, nando n wrote:
>where can i download (exact url) binary version
>of zope to install it on my win95 system?

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

Release  VersionDate
Zope-2.2.4-win32-x86.exe 2.2.4 (Stable) 2000/11/27

>how do i execute dtml files?

After installing Zope on your win95 system you can start exploring Zope by
making the Zope tutorial which is included.

Regards,

Diny

DIVA, Faculty of Veterinary Medicine
Utrecht University,  The Netherlands
http://www.vet.uu.nl 

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Hookable PUT Creation

2001-01-05 Thread Tres Seaver

On Fri, 5 Jan 2001, Chris Withers wrote:

> Tres Seaver wrote:
> > 
> >   http://dev.zope.org/Wikis/Proposals/HookablePUTCreation
> 
> That gives me a NotFound :-S

Hmm, sure enough.  I wonder why the "DevSite" has to be there
even inside dev.zope.org?  At any rate, the "correct" URL is:

  http://dev.zope.org/Wikis/DevSite/Proposals/HookablePUTCreation

Tres.
-- 
===
Tres Seaver[EMAIL PROTECTED]
Digital Creations "Zope Dealers"   http://www.zope.org


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




[Zope] Calling a DTML method in a subfolder that uses PARENTS[0]

2001-01-05 Thread Soren Roug

Hello,

I'm trying to call a method inside a folder that uses this common way of
listing its content:





Let's call this folder FileLibrary. (It's actually a Z Class subclassed
from ObjectManager)

My problem is when I call the method from the folder above, then PARENTS
is unchanged and the script will try to enumerate the files in the
folder I'm calling from. I've tried several things, e.g.

...
...


...

Nothing works.

How do I get it to work?

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Creating a Database connection.

2001-01-05 Thread Darren Carney

Dear Zope,

I am very new to the Zope idea. I like what Zope is trying to do.
But I am trying to set up an external SQL database connection.

I have read the information thats on the Zope website.
It has not made it any clearer about setting up a DA and making the 
connection.

Thanks in advance for any help that you would be able to supply.

King regards

Darren

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] installing zope on win95

2001-01-05 Thread nando n

where can i download (exact url) binary version
of zope to install it on my win95 system?
for now i've only been able to download python
source code version of zope.
how do i execute dtml files?
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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




Re: [Zope] Hookable PUT Creation

2001-01-05 Thread Hannu Krosing

Chris Withers wrote:
> 
> Tres Seaver wrote:
> >
> >   http://dev.zope.org/Wikis/Proposals/HookablePUTCreation
> That gives me a NotFound :-S

http://www.zope.org//Wikis/DevSite/Proposals/HookablePUTCreation


I got it via Search for HookablePUTCreation


Hannu

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




Re: [Zope] How to call ancestral method in ZClass method?

2001-01-05 Thread Steve Spicklemire


Hi Dirksen,

   In python you would normally do:

  super_class_object.manage_delete(self)

   but it might be easier/better in the case of a DataSkin 
to use a SkinScript 'WHEN OBJECT DELETED xxx  '.

-steve

> "Dirksen" == Dirksen  <[EMAIL PROTECTED]> writes:

Dirksen> I have a ZClass 'stuff' which is a subclass of
Dirksen> DataSkin. 'stuff' overrides 'manage_delete' method, so as
Dirksen> to do some extra clean-up jobs. After that, it will call
Dirksen> its ancestor's 'manage_delete' method to wipe itself
Dirksen> off. In java, you can do this by calling
Dirksen> 'super.manage_delete()', but how to do it in zope?

Dirksen> Dirksen

Dirksen> __ Do You
Dirksen> Yahoo!?  Yahoo! Photos - Share your holiday photos
Dirksen> online!  http://photos.yahoo.com/

Dirksen> ___ Zope
Dirksen> maillist - [EMAIL PROTECTED]
Dirksen> http://lists.zope.org/mailman/listinfo/zope ** No cross
Dirksen> posts or HTML encoding!  ** (Related lists -
Dirksen> http://lists.zope.org/mailman/listinfo/zope-announce
Dirksen> 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] Is it possible to install the Bug Collector Product in my Zope ???

2001-01-05 Thread Chris Withers

Frederic Quin wrote:
> 
> Hi all,
> 
> I can't find the bug collector product to install it in my zope. Maybe it's not 
>possible... If it is, please tell me where to download it.

http://www.zope.org/Members/klm/TrackerWiki/

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] Hookable PUT Creation

2001-01-05 Thread Chris Withers

Tres Seaver wrote:
> 
>   http://dev.zope.org/Wikis/Proposals/HookablePUTCreation

That gives me a NotFound :-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 )




[Zope] Acquisition: DTML Methods vs Documents

2001-01-05 Thread Oleg Broytmann

Hello!

   Can anyone here explain clearly what is the difference between DTML
Methods and DTML Documents regarding acquisition?

   Well, in simple cases I think I understand it. When I call a Method
through the web, it use dynamic (based on current URL) acquisition path. A
Document uses static (based on its position in ZODB) path.

   But what if I want to look a bit deeper? What are acquision paths for a
Method called from a Document, not directly from the web? I beleive when a
Document called from a Method it always uses static acquisition path. But
what about a Method called from a Document? It seems my Methods stopped
using dynamic paths and use static paths, provided by its callee. Right?

   Let's see a running demo. The site http://phd.russ.ru/pcgi/TEST/
constructed as follows:

/TEST - folder
   index_html - standard DTML Document with default content
   standard_html_header - DTML Method
   standard_html_footer - DTML Method
   2 - folder, empty

Both folders /TEST and /TEST/2 have a property "foobar". In /TEST its value
is "First test!", in /TEST/2 - "This is SECOND test." standard_html_header
show the property with .

   When I call standard_html_header directly through the web, it acquires
foobar using dynamic acquisition path:

http://phd.russ.ru/pcgi/TEST/standard_html_header
   show foobar from root (/TEST)
http://phd.russ.ru/pcgi/TEST/2/standard_html_header
   show foobar from /TEST/2

But then I call standard_html_header from DTML Document index_html:

http://phd.russ.ru/pcgi/TEST/index_html
   show foobar from root (/TEST); exactly as I expected, no problem
http://phd.russ.ru/pcgi/TEST/2/index_html
   WOW! It show foobar again from root, not from /TEST/2!
standard_html_header acquires using static path provided by index_html!

   Is it normal and intended behaviour? If it is, how can I "solve" my
problem? (I want to acquire different properties in standard_html_header,
but call standard_html_header from different DTML Documents).

Oleg.

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


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




Re: [ZOPE] ZBabel translation to Postgres

2001-01-05 Thread Andrew Kenneth Milton

+---[ Olaf Zanger ]--
| hi Andrew and others,
| 
| > I get errors:
| > when i first want to view a page with the 
| > test
| > 
| > pg.error
| > error value: error: attribute 'phrases_phrase_id_seq' not found
| 
| i changed the column name of the id from "phrase_id" to "id" and get
| still the same error message as above. 
| so i figured that my bug is not in my changes but somewhere in the
| python code. 

you need to make sure you create a table with a SERIAL type, which
automatically create phrases_phrase_id_seq table (which is why it should
be called phrase_id in your case).

These are normally created for you, but, if you drop the table, it
doesn't automatically drop the sequence table. You might have to drop
the table and the sequence and re-create your table so you get the
correct table setup. Postgres can be a complete pain at times.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [ZOPE] ZBabel translation to Postgres

2001-01-05 Thread Olaf Zanger

hi Andrew and others,

> I get errors:
> when i first want to view a page with the 
> test
> 
> pg.error
> error value: error: attribute 'phrases_phrase_id_seq' not found

i changed the column name of the id from "phrase_id" to "id" and get
still the same error message as above. 
so i figured that my bug is not in my changes but somewhere in the
python code. 

do you have any help?

thanks
olaf

> you need in postgresql (this is tested only from zope with zsql method,
> since some other things don't work in the ZBabel Produkt with
> postgresql):
> 
> sqlGetPhrasesToUpdate:
> 
> select distinct Phrases.*
> 
> WHERE md5Hash not in
> (
>  select c.md5Hash
>  from Phrases as c, Phrases as d
>  where c.md5Hash = d.md5Hash and c.lang <> d.lang and c.lang=' srcLang>'
> )
> and lang <>''
> 
> sqlNewPhrase:
> 
> insert into Phrases (phrase_id,lang,md5Hash,renderPath,renderText)
> values (
> nextval('phrases_phrase_id_seq'),
> ,
> ,
> ,
> 
> )
> 
> all other sqlFunctions seam to work (out of zope ZSQL method)
> 
> i attache the ZBabel.sql for postgres.
> the examples are handgenerated so the hashes are fake.
> 
> TAKE CARE
> until now this just fakes the ability of ZBabel on Postgres on a ZSQL
> Method level for testing purposes.
> 
> I get errors:
> when i first want to view a page with the 
> test
> 
> pg.error
> error value: error: attribute 'phrases_phrase_id_seq' not found
> 
> probably that helps anybody
> 
> olaf
> 
> > | What does the whole thing do anyway?
> >
> > Finds all the phrases that don't have a translation for the language
> > selected. It's hard to find things that don't exist in databases
without
> > nested selects which MySQL did not have at the time.
> >
> > MySQL was chosen precisely because it is restricted, and is basically
the
> > lowest common denominator when it comes to SQL.
> >
> > I do recall however, that postgres only implements INNER and OUTER
joins
> > although I don't know the status of the JOIN stuff in postgres at this
time.
> >
> > | Has anybody ported ZBabel already?
> >
> > Someone was going to send me patches for postgres, but, I never
received
> > them.
> >
> > I'll happily integrate patches, although, automatically selecting the
> > right query based on database type will be required so that several
releases
> > aren't required. I don't think that that's a hard thing to achieve.
> 

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

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