[Zope-dev] Interfaces Wiki Security Stuff

2001-01-30 Thread Chris Withers

Hi,

How active/relevant is the interfaces wiki at:
http://www.zope.org/Members/michel/Projects/Interfaces

I'm trying to figure out how RoleManagers, local roles, etc work and where the
work of Zope Security is actually done.
I've found ZopeSecurityPolicy.py and bits of stuff in Roles.py, and a few lines
in BaseRequest.py, but the picture is still kinda flakey :-S

It looks like there was quite a lot of discussion on the Wiki about all this,
but I'm not sure how old it is and whether anything happened from it :-(

Also, the new Wiki History thing doesn't seem very meaningful/helpful to me.
Apart from the occasional 'No Data Returned' and Zope error page, the list
returned doesn't seem to have any changes in it. What am I doign wrong?

So, where should I be looking to find out how RoleManager, Local Roles  Proxy
Role work from a Python product developers point of view (in Zope 2.3) and what
changes are in the pipeline?

cheers,

Chris

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




Re: [Zope-dev] Interfaces Wiki Security Stuff

2001-01-30 Thread Chris McDonough

This might be helpful:

http://www.zope.org/Members/mcdonc/PDG/6-1-Security.stx

- Original Message -
From: "Chris Withers" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 30, 2001 8:58 AM
Subject: [Zope-dev] Interfaces Wiki  Security Stuff


 Hi,

 How active/relevant is the interfaces wiki at:
 http://www.zope.org/Members/michel/Projects/Interfaces

 I'm trying to figure out how RoleManagers, local roles, etc work and where
the
 work of Zope Security is actually done.
 I've found ZopeSecurityPolicy.py and bits of stuff in Roles.py, and a few
lines
 in BaseRequest.py, but the picture is still kinda flakey :-S

 It looks like there was quite a lot of discussion on the Wiki about all
this,
 but I'm not sure how old it is and whether anything happened from it :-(

 Also, the new Wiki History thing doesn't seem very meaningful/helpful to
me.
 Apart from the occasional 'No Data Returned' and Zope error page, the list
 returned doesn't seem to have any changes in it. What am I doign wrong?

 So, where should I be looking to find out how RoleManager, Local Roles 
Proxy
 Role work from a Python product developers point of view (in Zope 2.3) and
what
 changes are in the pipeline?

 cheers,

 Chris

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




___
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] Interfaces Wiki Security Stuff

2001-01-30 Thread Chris Withers

Chris McDonough wrote:
 
 This might be helpful:
 
 http://www.zope.org/Members/mcdonc/PDG/6-1-Security.stx

Cool... I'll take a look. BTW, what's the PDG? I hadn't heard of it before...

cheers,

Chris

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




[Zope-dev] Security hole in CookieCrumbler

2001-01-30 Thread Shane Hathaway

Hi folks,

It turns out that the released versions of the CookieCrumbler product have
a terrible security hole.  I recommend you uninstall it immediately.

I'm not going to be able to deal with the problem fully today, but if
you're interested in getting a solution right away you can grab today's
PTK from CVS which contains a version of CookieCrumbler without the hole.

Thanks to Phil Harris for finding the problem.

Shane


___
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] Interfaces Wiki Security Stuff

2001-01-30 Thread Chris McDonough

It's an abortive effort to write up developer docs for Zope.  I hope to
revive it.  There's an outline at
http://www.zope.org//Wikis/Docs/ProductDevelopersGuide that I hoped to
accomplish.  It's not quite there yet.  ;-)


- Original Message -
From: "Chris Withers" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, January 30, 2001 9:49 AM
Subject: Re: [Zope-dev] Interfaces Wiki  Security Stuff


 Chris McDonough wrote:
 
  This might be helpful:
 
  http://www.zope.org/Members/mcdonc/PDG/6-1-Security.stx

 Cool... I'll take a look. BTW, what's the PDG? I hadn't heard of it
before...

 cheers,

 Chris

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




___
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] 2.30 help system authentication problem?

2001-01-30 Thread Ross Lazarus

I never allow anonymous to have any permissions in my zope root and I
have just noticed that I have to grant the view right to anonymous or
the help button gives me an authentication error - even when I'm logged
in as manager/owner.

Is it just me? New 2.30 source install on solaris 2.6 using an old
Data.fs (which has been through many upgrades...)

I'll put this in the collector if anyone can confirm it please.

___
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] 2.30 help system authentication problem?

2001-01-30 Thread Chris McDonough

Ross,

Can you file this in the collector?  I believe you.  :-)
- Original Message - 
From: "Ross Lazarus" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 30, 2001 11:14 AM
Subject: [Zope-dev] 2.30 help system authentication problem?


 I never allow anonymous to have any permissions in my zope root and I
 have just noticed that I have to grant the view right to anonymous or
 the help button gives me an authentication error - even when I'm logged
 in as manager/owner.
 
 Is it just me? New 2.30 source install on solaris 2.6 using an old
 Data.fs (which has been through many upgrades...)
 
 I'll put this in the collector if anyone can confirm it please.
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )
 
 


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




Re: [Zope-dev] Interfaces Wiki Security Stuff

2001-01-30 Thread Michel Pelletier


On Tue, 30 Jan 2001, Chris Withers wrote:

 Hi,

 How active/relevant is the interfaces wiki at:
 http://www.zope.org/Members/michel/Projects/Interfaces

Not active, mostly relevant.

 I'm trying to figure out how RoleManagers, local roles, etc work and where the
 work of Zope Security is actually done.
 I've found ZopeSecurityPolicy.py and bits of stuff in Roles.py, and a few lines
 in BaseRequest.py, but the picture is still kinda flakey :-S

 It looks like there was quite a lot of discussion on the Wiki about all this,
 but I'm not sure how old it is and whether anything happened from it :-(

It's old.  The Interfaces Wiki was a first attempt at grasping the API of
Zope, not an easy task.  Most of the effort in that wiki went into the
online help system for "through the web" objects.

As a second goal, the wiki was also used to collaborativly develop new
interface in Zope, mostly in the areas of traversal and security.  That
wiki and lessons learned from it were used by us to create the Interface
package that now comes with Zope.

The next phase of the project is to actually document the interfaces of
Zope in Zope itself using the new interface framework.  This will be the
first step (and the hardest) toward a more component-oriented framework.
These issues have been one of my tasks for the past few weeks, and in the
next major version of Zope, you will probably see a good bit of internal
interface documentation for high level and low level Zope interfaces.

-Michel

 So, where should I be looking to find out how RoleManager, Local Roles  Proxy
 Role work from a Python product developers point of view (in Zope 2.3) and what
 changes are in the pipeline?

Security changes are usualy not driven through a pileline, think more like
a gun to your head. ;)

-Michel


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




[Zope-dev] Zope Service Won't Start

2001-01-30 Thread Nai A. Tzeo

Hello,

I've encountered a slight problem.  My company is running Zope as an NT
service and it's been running great for a few months but it stopped working
today.  I was installing ZmxODBCDA by copying the files from the zip to
Zope.  After copying the files over, I restarted Zope via NT Service.  Keeps
throwing start service due to logon failure.  I don't know what to do.
Rebooted and deleted all the files I was installing and still can't get the
server started.  Anyone has any suggestion?  I'm a total newbie and am at
lost.  There are going to be a lot of piss off people tomorrow if I don't
get this working tonight.

TIA,
Nai

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




Re: [Zope-dev] Zope Service Won't Start

2001-01-30 Thread Andy McKay

Will start from MS-Dos? Starting it using the start.bat file will produce an
output of errors encoutered.
--
  Andy McKay.


- Original Message -
From: "Nai A. Tzeo" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 30, 2001 5:31 PM
Subject: [Zope-dev] Zope Service Won't Start


 Hello,

 I've encountered a slight problem.  My company is running Zope as an NT
 service and it's been running great for a few months but it stopped
working
 today.  I was installing ZmxODBCDA by copying the files from the zip to
 Zope.  After copying the files over, I restarted Zope via NT Service.
Keeps
 throwing start service due to logon failure.  I don't know what to do.
 Rebooted and deleted all the files I was installing and still can't get
the
 server started.  Anyone has any suggestion?  I'm a total newbie and am at
 lost.  There are going to be a lot of piss off people tomorrow if I don't
 get this working tonight.

 TIA,
 Nai

 ___
 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] python methods zope - security hole ?

2001-01-30 Thread Joseph Wayne Norton

Evan -

I believe I have found a situation while using python methods that
exposes a security hole.  A user that can create python methods can
grant the Manager role to himself by simply writing and then calling
the manage_users method.  This issue might also apply to other
scenarios.

I created a simple test case to check the behavior ...

  - create a user without any roles in a acl_users folder (see below)

  - create a python method such as the one below that grants root
access to the user (see below)

  - create a dtml method that calls the python method  this method
should have view and access content information granted (see
below) to the user created in the first step.  In my case, I'm
simply using the anonymous role ... but it could be another role
setup for developers, content editors, etc.

  - execute the dtml method (see below)

I also created a similiar test case for dtml methods and the dtml
method behaved as I expected  preventing the user from obtaining
the manage_users role because they do not have the role in the first
place.

I just want to confirm if this is a known issue or a new issue (or
feature or mistake in my zope setup).  I'm currently running with zope
2.2.5 and python methods 0-1-7. If this is indeed an issue, it might
be worthwhile to simply document this issue on the PythonMethods
product page.

thanks,

- joe n.

###
# Here is the output of this behavior ...
UserName: dummy_non_manager
Roles: ()
Has 'View' ?: 0
Has 'Manage users' ?: 0
user 'dummy_non_manager' roles '['Manager']' 
user 'dummy_manager' roles '['Manager']' 
UserName: dummy_non_manager
Roles: ('Manager',)
Has 'View' ?: 1
Has 'Manage users' ?: 1

###
# Here is the python method
args: self,REQUEST

body:
ret = ''
users = {'dummy_manager' : ['Manager'],'dummy_non_manager' : ['Manager']}
for u in users.keys():
roles = users.get(u)
REQUEST.set('name', u)
REQUEST.set('roles', roles)
self.acl_users.manage_users('Change',REQUEST)
ret = ret + ('user \'%s\' roles \'%s\' br\n' % (u, roles))
return ret

###
# Here is the dtml method:
dtml-var standard_html_header

UserName: dtml-var
"REQUEST['AUTHENTICATED_USER'].getUserName()"br
Roles:dtml-var
"REQUEST['AUTHENTICATED_USER'].getRoles()"br
Has 'View' ?: dtml-var
"REQUEST['AUTHENTICATED_USER'].has_permission('View',REQUEST['AUTHENTICATED_USER'])"br
Has 'Manage users' ?: dtml-var
"REQUEST['AUTHENTICATED_USER'].has_permission('Manage
users',REQUEST['AUTHENTICATED_USER'])"br

dtml-var "acl_users_roles_python_method(REQUEST)"

UserName: dtml-var
"REQUEST['AUTHENTICATED_USER'].getUserName()"br
Roles:dtml-var
"REQUEST['AUTHENTICATED_USER'].getRoles()"br
Has 'View' ?: dtml-var
"REQUEST['AUTHENTICATED_USER'].has_permission('View',REQUEST['AUTHENTICATED_USER'])"br
Has 'Manage users' ?: dtml-var
"REQUEST['AUTHENTICATED_USER'].has_permission('Manage
users',REQUEST['AUTHENTICATED_USER'])"br

dtml-var standard_html_footer

-- 

--
Joseph Norton

[EMAIL PROTECTED]
+81-3-3822-6936
2-10-7 Tabata, Kita-ku, Tokyo 114-0014, Japan ($B")(B114-0014  
$BEl5~ETKL6hEDC<#2CzL\(B10-7)

___
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] [OT] Disagreement (was Re: Ithy trigger....)

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

Bill Andersson wrote:

 Be that as it may, it still does not constitute a flame-war.

True. We are not having a flamewar. Yet. However, as I am sure you yourself
have experienced, licensing issues/discussions in Open Source contexts
require no more than a few heated mails to degenerate into a Flame War.
Surely you have been around long enough to see this happen (in fact you were
around this list's latest big hoopla about the GPL in September of last
year. 44 mails about "Zope and the GPL poison pill" in 3 days, 11 various
follow ups). Allready this thread has generated 16 mails so far, not
including this one.

  Imagine the consequences of having the spooky ghost of the License Horse
  roaming about... *B*

 Or worse, the fear of saying something in disagreement, for fear of being
 labelled a flame war starter.

Well, I disagree ;^), the issue here is not really whether it is allowed or
not to disagree. Of course it is allowed to disagree (which is exactly what
I am doing now), and disagreement is good: it makes you think about your
opinions one time more.

License issues (or wars) are just not on the topic of this list. And neither
is this post, so I'll stop right now :-)

/dario

btw: humour was intended in my last post, even if not obvious. sorry about
that.


___
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 Cut and Paste

2001-01-30 Thread Jerome Alet

Hi,

First I'm sorry if this message was already received in this list, 
but I'm sure I've not received it to confirm, so I send it again, sorry
for the inconvenience.

I'm trying to modify OFS/dtml/main.dtml and OFS/CopySupport.py
in order to create a shortcut button to cut an object and paste it
in the parent object in one click, because I think this may
save lots of boring clicks, at least for me.

When I call the following method from the management interface
(OFS/dtml/main.dtml) then I receive this error:

"The data in the clipboard could not be read, possibly due to
cookie data being truncated by your web browser.
Try copying fewer objects."


But when I call if from a PythonScript it works fine.

My method, bound to a MoveUp button of my own:

--CUT---
def manage_moveupObjects(self, ids=None, REQUEST=None):
"""Moves the selected objects to the parent objets (e.g. Folder)"""
if ids is None and REQUEST is not None:
return eNoItemsSpecified
elif ids is None:
raise ValueError, 'ids must be specified'
if type(ids) is type(''):
   ids=[ids]
if hasattr(self, 'aq_parent') and hasattr(self.aq_parent, 'manage_pasteObjects') :
   cb_copy_data = self.manage_cutObjects(ids, REQUEST)
   return self.aq_parent.manage_pasteObjects(cb_copy_data, REQUEST)
---CUT---

If I call self.aq_parent.manage_pasteObjects with None as the
first parameter then it works fine from the management
interface but not from a PythonScript: I receive a
"No clipboard data found" error.

Please could someone explain me what the problem is ?
(I want it to work both from the management interface and from Python)

Thanks in advance.

Jerome Alet

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

2001-01-30 Thread Chris Withers

Bill Anderson wrote:
 
 Yeah, that typo really caught me a good laugh too. I should thank Chris
 for it. :)

Just stick it on the Zope Quotes board, can't remember the URL though :-S

Jeez, what have I done, I wholeheartedly apologise for even mentioning licenses.
Any heard of the web app server called Zope? I hear it's quite good :-)

cheers,

Chris

PS: GPL sux :P (stir stir)

PPS: Bill: Your [EMAIL PROTECTED] address is broken :-(

___
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] [OT perhaps] ZMySQLDA

2001-01-30 Thread Markus Kemmerling

AFAIK in MySQL table names are case-sensitive.
So, what happens if you say 'select * from STUDENTS'?

Markus Kemmerling

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Lee
 Reilly CS1997
 Sent: Tuesday, January 30, 2001 10:27 AM
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: [Zope] [OT perhaps] ZMySQLDA
 
 
 Hi,
 
 I wonder if someone could comment on what they think my problem with the
 following may be.
 
 I have the ZMySQL DA installed, which works fine (I think).
 
 Testing my database in UNIX I created a table and populated it with some
 values. From the 'Test' page of the database connection in Zope I
 queried this table and it returned the correct values. So the connection
 string's fine.
 
 Now, here is where I ran into problems. Entering the following into the
 'Test' page executes no problem.
 
   CREATE TABLE STUDENTS 
   ( 
matric float (7), 
fname varchar(20), 
lname varchar (30), 
uname varchar (8) 
   )
 
 when i try and query it from Zope or Unix (select * from students) I get
 "OperationalError: (1146, "Table 'lreilly.students' doesn't exist")" and
 (table lreilly.students does not exist" respectively.
 
 I've even tried changing the tablename to lreilly.students but still no
 luck.
 
 Can anyone see what my problem is?
 
 Thank you very much in advance.
 
 - Best regards,
 
 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] Catalogaware ZClass

2001-01-30 Thread Sven Hohage

Hello,
usually I'm more patient but this time it's a very
important feature(I have to build an archive).
That's my question from yesterday:
---
I try to delete a Catalogware ZClass with subobjects that are
also ZClasses.
That's my method to delete a Class:
  dtml-in "objectValues('ZClassPage')"
dtml-let x=sequence-item
dtml- if "in_work"
   dtml-call "manage_delObjects([x.id])"
/dtml-if
/dtml-let
   /dtml-in

But Zope answers:
   An exception occurred in a DTML method or document. 

 Error type: BadRequest
 Error value: 980785769 does not exist 
But '980785769' EXISTS in the management-interface !!  :-((
---
It would be very nice if someone could give me a hint.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] [OT perhaps] ZMySQLDA

2001-01-30 Thread Oleg Broytmann

On Tue, 30 Jan 2001, Lee Reilly CS1997 wrote:
   CREATE TABLE STUDENTS
 when i try and query it from Zope or Unix (select * from students) I get

   SELECT * FROM STUDENTS;

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] CacheManagers are cool :)

2001-01-30 Thread Seb Bacon

 anybody tried expiring an object,? say after 300 secs, the cached object
 expires, get invalidated and a new cached object is created when somebody
 requested the page.
 is there any simple way to expire a RAM Cache?

haven't tried this yet.

 also, for those who tried caching.  what do you guys do?  cache
 the methods
 that make up the bigger method?  or just cache the bigger method?

 e.g dtml method a is made from method b, c, d,...n
 do you cache a, or selectively cache b and/or c, d, ...

it depends on what's in each element.  the design of the caching system is
such that you can have as fained-grained a control as you wish.  the
decision is entirely up to you.  my fairly amateurish tests suggest that the
benefits of caching only really manifest themselves at high levels of
concurrency.  if the method (a) contains a little logic, items (b),(c) and
(d) are images, and the whole page is very frequently accessed, you'd
probably benefit from caching (a) in RAM, and using the HTTP Cache manager
for the other elements.  OTOH, you could expect proxies and browser caches
to handle elements such as images fairly well, so I imagine most of the
benefit would come from caching only the element of the page which contains
the logic.  If the page is accessed only a hundred times a day, you will see
little benefit from caching it, at the cost of some memory on your server.

in a scenario where (b), (c) and (d) each contain their own snippets of
logic, you would be wise to cache them all.  Otherwise you would lose the
benefits of caching (a), because to build the page, Zope is still making
hits to disk each time.

well, that's how I assume it works, anyway.  time for more tests, i think...

seb


___
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] RESPONSE.redirect

2001-01-30 Thread Ragnar Beer

It's a html meta-tag that does the trick, not http. Look at 
http://www.geocities.com/siliconvalley/campus/1924/metacom.html.

HTH

Ragnar

Hi all,

I'd like to show a page and after a few seconds I'd like to redirect to
another page. If I simply add !--#call "RESPONSE.redirect"-- it is
done immediately. How can I achieve a delay of a couple of seconds?

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] Little bug in lib/python/App/dtml/editPermission.dtml (v.2.3.0)

2001-01-30 Thread Roberto Lupi

[Zope v.2.3.0 final]

In the editPermission form what should be the 'name' input field has an 
incorrectly set HTML attribute (name="title"), it reads:

   input type="text" name="title"size="40" value="dtml-var
name html_quote" /

but, it should be:

   input type="text" name="name"size="40" value="dtml-var
name html_quote" /

-- 
Roberto Lupi


___
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] Picture of the day product

2001-01-30 Thread Jim Washington

Hi, Tim

context.ZopeTime()

or 

container.ZopeTime()

ZopeTime is not in the PythonScript's namespace.  It is available in
most (all?) containers, however.  

-- Jim Washington


Timothy Wilson wrote:
 
 On Mon, 29 Jan 2001, Tres Seaver wrote:
 
   I'd like to grab all instances with a display_date = today's
   date. I can't figure out exactly how to do that in DTML or a
   Python Script. Once I have that list of instances, I'll simply
   pull off the latest one as you suggested.
 
  I don't know where it would be in the book it would be, but
  I do this something like::
 
dtml-in expr="theCatalog( meta_type='Photo'
 , display_date=ZopeTime()
 , display_date_usage='range:max'
 , sort_on='display_date'
 , sort_order='reverse'
 )"
 
  The expression would be basically the same in a PythonScript::
 
return context.theCatalog( meta_type='Photo'
 , display_date=ZopeTime()
 , display_date_usage='range:max'
 , sort_on='display_date'
 , sort_order='reverse'
 )
 
 Great! The first DTML example works perfectly. The second, however, throws
 up an error. In fact, I have yet to figure out how to use ZopeTime() in a
 PythonScript. Do I have to pass anything in?
 
 I get:
 
 Error Type: NameError
 Error Value: ZopeTime
 
 when I try it.
 
 -Tim

___
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] The new stylesheet used in the management interface

2001-01-30 Thread Dominique . Dutoit

I'm wondering if there's a document describing the use of the elements from
'manage_page_style.css' for unifying the management interface.

Maybe it will be a good thing to release two DTML methods/documents to
simulate the 'manage_page_header' and 'manage_page_footer' for backward
compatibility with previous builds of Zope while moving to the new layout.

___
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] ANN: Core Session Tracking 0.7

2001-01-30 Thread Chris McDonough

A new release of the "CoreSessionTracking" product is out.  The product
allows you to associate state with anonymous visitors between requests.

The latest version (0.7) fixes a fairly serious kid-clicking-related bug
found by Randall Kern that effects RAM-based ("internal") session data
containers.

If you need to upgrade from 0.6, all that is required is to untar/ungzip
this release on top of the 0.6 release files.  Then you must restart.

You can find the product at
http://www.zope.org/Members/mcdonc/Products/CoreSessionTracking/index_html

- C






___
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 upgrade to 2.3 (no differential install?)

2001-01-30 Thread dale . w . lance

just checked man of tar  - no "z" was listed.
what exactly is definition of "z"?
I assume it might be "ignore top level directory"?

Dale

--   SNIP

two steps too many ;)
Just tar -xvzf the original file,no need to copy and then delete the 
copy.
/me ducks


___
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 upgrade to 2.3 (no differential install?)

2001-01-30 Thread Chris McDonough

It means decompress a compressed archive... not all tars support this...

- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, January 30, 2001 9:14 AM
Subject: RE: [Zope] How to upgrade to 2.3 (no differential install?)


 just checked man of tar  - no "z" was listed.
 what exactly is definition of "z"?
 I assume it might be "ignore top level directory"?
 
 Dale
 
 --   SNIP
 
 two steps too many ;)
 Just tar -xvzf the original file,no need to copy and then delete the 
 copy.
 /me ducks
 
 
 ___
 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] Z SQL Method

2001-01-30 Thread Martin Jundt

Hi there,

I have got a litte problem with a Z SQL Method "sql_example":

select count(*) as result from example_DB

I want to put the returned result in a variable:

 dtml-in sql_example
 dtml-call "REQUEST.set('my_var', result)"
/dtml-in

This works fine.But should something like 

dtml-call "REQUEST.set('my_var', ['sql_example'])"

work, too?

Thanks
Martin

___
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: Xron for Zope: Asking for Help

2001-01-30 Thread Loren Stafford

I don't have much experience with this either. You should direct your
question to the Zope mailing list where others can share their expertise
with you (not to mention replying promptly).

-- Loren

- Original Message -
From: "R. Herold" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, January 07, 2001 7:31 AM
Subject: Xron for Zope: Asking for Help


 Dear Loren Stafford,

 thank You for providing the Xron product, which I would like to regularly
 update ZCatalogs of parts of our site. However, I can't figure out
 what I have to put into the Xron DTML Method. The site catalog should be
 updated every 2 hours and cleared and renewed every 12 hours. I just don't
 know how to translate the management interfaces URL for the catalog
 (e.g. site_catalog/?manage_catalogReindex%3Amethod=+Update+Catalog)
 into a Xron dtml-call - Coud You help me, please?

 I am using Xron 0.0.9 with Zope 2.2.4 (under Linux and Windows).
 Thanks for any tip,
 Greetings, Ralf Herold


 -- Dr. med. Ralf Herold
 | Koordinationszentrale Kompetenznetz Pdiatrische Onkologie und
Hmatologie
 | Charit Campus Virchow-Klinikum Medizinische Fakultt
Humboldt-Universitt
 | D-13353 Berlin, Augustenburger Platz 1, Raum 4.3412 4. Etage Mittelallee
8
 | Tel. +49(30)450-66834 Fax -66906 Sprach-/Faxbox +49(180)505254-873936
 | mailto:[EMAIL PROTECTED]  http://www.knm-poh.charite.de/




___
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: How to make a zclass as default Xron methods?

2001-01-30 Thread Loren Stafford

Best to address questions to the Zope mailing list. You'll get more prompt
answers coupled with the collective experience of hundreds of users.

I'm not sure exactly what you are asking, but I'll try to clarify, anyway...

self.executeAt is the property that holds the next scheduled execution time.
This property is set by manage_addXronDTMLMethod to hold the first scheduled
execution time, and changed periodically by 'reschedule'.

Could change addXronDTMLMethod.dtml to expose only executeAt but not
periodDays or you could do the same by changing manage_addXronDTMLMethod
(which is invoked by addXronDTMLMethod.dtml).

-- Hope that helps
-- Loren

- Original Message -
From: "Dirksen Lau" [EMAIL PROTECTED]
To: "Loren Stafford" [EMAIL PROTECTED]
Sent: Monday, January 01, 2001 7:51 PM
Subject: How to make a zclass as default Xron methods?


 Hi Loren,

 I want to subclass Xron method, and provide default action and reschedule
 interval, leaving the initial time for customization. Which method to
 override so as to preset the Scheduled Method?

 cheers
 Dirksen





___
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] parsing dtml from sql-method

2001-01-30 Thread Ralf Kraemer

Hello

i would like to put some dtml code into my database
and let it be parsed by zope by a  query.

it works fine with html, but with dtml it fails 

actual i have some

dtml-in get_item(item_id)
dtml-var item
/dtml-in

can anybody help me ???

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] Little bug in lib/python/App/dtml/editPermission.dtml (v.2.3.0)

2001-01-30 Thread Brian Lloyd

 In the editPermission form what should be the 'name' input field has an 
 incorrectly set HTML attribute (name="title"), it reads:
 
input type="text" name="title"size="40" value="dtml-var
 name html_quote" /
 
 but, it should be:
 
input type="text" name="name"size="40" value="dtml-var
 name html_quote" /

This is fixed in CVS (Collector #1916).

Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909
Digital Creations  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] How to display image returned from Catalog query

2001-01-30 Thread Timothy Wilson

Hey everyone,

I've got a PythonScript that returns a list of 'Photo' instances. I'm using

dtml-in returnPOTD size="1" orphan="0"

to grab the first instance off the list.

What I can't figure out is how to display that image. I can use

a href="dtml-absolute_url;"dtml-var title/a

to make a link to the image, but I want this method to display the image
directly.

dtml-var sequence-item returns the instance itself and doesn't display
anything. I'm sure there's something simple I'm missing here. Any
suggestions?

-Tim

--
Tim Wilson  | Visit Sibley online: | Check out:
Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/
W. St. Paul, MN |  | http://slashdot.org/
[EMAIL PROTECTED] |   dtml-var pithy_quote | http://linux.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] Problem with Cut and Paste

2001-01-30 Thread Brian Lloyd

 First I'm sorry if this message was already received in this list, 
 but I'm sure I've not received it to confirm, so I send it again, sorry
 for the inconvenience.
 
 I'm trying to modify OFS/dtml/main.dtml and OFS/CopySupport.py
 in order to create a shortcut button to cut an object and paste it
 in the parent object in one click, because I think this may
 save lots of boring clicks, at least for me.
 
 When I call the following method from the management interface
 (OFS/dtml/main.dtml) then I receive this error:
 
 "The data in the clipboard could not be read, possibly due to
 cookie data being truncated by your web browser.
 Try copying fewer objects."]

Jerome - most Web browsers have a maximum limit to the amount
of cookie data that they will preserve from a given site 
(usually around 4k as I recall, though this may vary from 
browser to browser). If you have a lot of cookies from this 
site already, your browser may be silently truncating the 
cookie data sent. You could check this by looking at the 
length of the data you get from manage_cutObjects as 
cb_copy_data.

Hope this helps!

Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909
Digital Creations  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] ANN: Core Session Tracking 0.7

2001-01-30 Thread Gerald Gutierrez


From: "Chris McDonough" [EMAIL PROTECTED]
A new release of the "CoreSessionTracking" product is out.  The product
allows you to associate state with anonymous visitors between requests.

I've been wondering about this for a long time. It allows you to associate 
state with anonymous users. Does this imply that you can't associate state 
with authenticated users, or that there's another mechanism to do it with 
authenticated users?

In the servlet paradigm, there's a distinction between the HTTP session and 
authentication. You set up a session with an HTTP request, and thereafter 
if the session ID is returned to you it's the same session. In that 
session, the user can choose to login or not.

Is this the same thing or is it different?



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




Re: [Zope] Problem with Cut and Paste

2001-01-30 Thread Jerome Alet

On Tue, Jan 30, 2001 at 11:13:52AM -0500, Brian Lloyd wrote:

  I'm trying to modify OFS/dtml/main.dtml and OFS/CopySupport.py
  in order to create a shortcut button to cut an object and paste it
  in the parent object in one click, because I think this may
  save lots of boring clicks, at least for me.
  
  When I call the following method from the management interface
  (OFS/dtml/main.dtml) then I receive this error:
  
  "The data in the clipboard could not be read, possibly due to
  cookie data being truncated by your web browser.
  Try copying fewer objects."]
 
 Jerome - most Web browsers have a maximum limit to the amount
 of cookie data that they will preserve from a given site 
 (usually around 4k as I recall, though this may vary from 
 browser to browser). If you have a lot of cookies from this 
 site already, your browser may be silently truncating the 
 cookie data sent. You could check this by looking at the 
 length of the data you get from manage_cutObjects as 
 cb_copy_data.

I've done this modification on a fresh 2.3.0-final installation
with no other products installed, on localhost, and no special 
content other than a folder and an index_html document 
to test my modifications. 

However I've tested what you suggested, after deleting my 
Netscape 4.75 cookies file
under Linux (2.2.18 kernel), the problem remains.

If I check the cb_copy_data length then it returns: 

16765 under Netscape and 14xxx under Lynx

With Lynx I've got the time to see a message saying 
"500: Internal Server Error" but then it disappears and 
the message about the cookie length appears.

Please could you test my method and see if it works
for you because I sincerely don't know why it doesn't work here ?

Thanks in advance for your time.

Jerome Alet


___
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] ZDatabaseTool password

2001-01-30 Thread Andrew Kenneth Milton

+---[ Andreas Heckel ]--
| Thank you all for your interest in my new Zope Product.
| In the past 36h there were avg 750 visits (26000 hits) on my page :-)
| Some of you asked me for username/password. So here it is ...
| 
| To create new ZDatabaseWizard objects at http://www.easyleading.org/demo
| first go to the folder named "Free".
| 
| username: demo
| password: demo
| 
| Hope the online demo makes more sense to you with this info ;-)

This just keeps giving me the same Title of New Query form...

-- 
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] How to display image returned from Catalog query

2001-01-30 Thread Timothy Wilson

On Tue, 30 Jan 2001, Oleg Broytmann wrote:

 On Tue, 30 Jan 2001, Timothy Wilson wrote:
  What I can't figure out is how to display that image. I can use
 
  a href="dtml-absolute_url;"dtml-var title/a
 
  to make a link to the image, but I want this method to display the image
  directly.
 
img src="dtml-absolute_url;" ?

Doh! I was trying to do too much with DTML. Thanks for the tip!

-Tim

--
Tim Wilson  | Visit Sibley online: | Check out:
Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/
W. St. Paul, MN |  | http://slashdot.org/
[EMAIL PROTECTED] |   dtml-var pithy_quote | http://linux.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] How to display image returned from Catalog query

2001-01-30 Thread Oleg Broytmann

On Tue, 30 Jan 2001, Timothy Wilson wrote:
 What I can't figure out is how to display that image. I can use

 a href="dtml-absolute_url;"dtml-var title/a

 to make a link to the image, but I want this method to display the image
 directly.

   img src="dtml-absolute_url;" ?

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] ZDatabaseTool password

2001-01-30 Thread Andrew Kenneth Milton

+---[ Andreas Heckel ]--
| Andrew Kenneth Milton wrote:
|  
|  +---[ Andreas Heckel ]--
|  | Thank you all for your interest in my new Zope Product.
|  | In the past 36h there were avg 750 visits (26000 hits) on my page :-)
|  | Some of you asked me for username/password. So here it is ...
|  |
|  | To create new ZDatabaseWizard objects at http://www.easyleading.org/demo
|  | first go to the folder named "Free".
|  |
|  | username: demo
|  | password: demo
|  |
|  | Hope the online demo makes more sense to you with this info ;-)
|  
|  This just keeps giving me the same Title of New Query form...
| 
| First click on "Free".
| On the lower left you can see that now "Free" is your current folder.
| Then type in a name for your new query and hit "next".
| Then you will asked for username and password ...

Oh haha.. I was expecting username and password first...

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




[Zope] Problem of performance

2001-01-30 Thread Tom Deprez

Hi,

It's strange, I thought I was rid of it, but it seems to pop-up now and
then. I'm talking of a slow performance of Zope2.2.x

Here is the problem:

When I'm working in Zope, the following happens sometimes :

eg. I copy an object and then try to paste it. The pasting can take minutes,
or the interface just keeps trying to load the page. Now, when I stop the
loading of the page (when it seems to be hanging) and reload the page, I see
the copied object.

So, it looks like Zope has problems to display the page.

I've Zope installed on Mandrake and the problem occures on Netscape (Linux)
as IE5.0 windows.

Somebody an idea what may be the cause of this? Did something changed in the
code related to this?

Thanks in advance,

Tom.


___
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] ZDatabaseTool password

2001-01-30 Thread Andreas Heckel

Andrew Kenneth Milton wrote:
 
 +---[ Andreas Heckel ]--
 | Thank you all for your interest in my new Zope Product.
 | In the past 36h there were avg 750 visits (26000 hits) on my page :-)
 | Some of you asked me for username/password. So here it is ...
 |
 | To create new ZDatabaseWizard objects at http://www.easyleading.org/demo
 | first go to the folder named "Free".
 |
 | username: demo
 | password: demo
 |
 | Hope the online demo makes more sense to you with this info ;-)
 
 This just keeps giving me the same Title of New Query form...

First click on "Free".
On the lower left you can see that now "Free" is your current folder.
Then type in a name for your new query and hit "next".
Then you will asked for username and password ...

Andreas Heckel

___
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 presentations at Paris LinuxExpo

2001-01-30 Thread Debian User

Hi everyone,
 
We will be doing Zope presentations (in english and in french)
during the Paris LinuxExpo (31, 1 and february) convention.
The slides will be available shortly on Adequat's website
(http://adequat.c2a.fr/).

Adequat's stand is at the D3 booth.

The presentation is an short introduction to zope (ZODB,
Products, aquisition etc.)

see you there,
Noa

___
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] Extended characters in Zope

2001-01-30 Thread sean . upton

Hmmm, as far as the ZCatalog part; I know that at some point it was only
working iwth 7 bit ascii characters, then someone put a patch in so that it
supported Latin-1 (ISO-8859-1) in the vocabularies...  I don't know when (or
if) that was ever integrated into the zope core, but I'm sure that if you
search Zope.org for Latin-1 you should find it...

Sean

-Original Message-
From: Ausum [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 29, 2001 7:05 PM
To: [EMAIL PROTECTED]
Subject: [Zope] Extended characters in Zope


I have to deal with documents and its attributes wich have a lot of extended
characters in them, like the "" or the hyphened ""..."" vocals in
spanish.

The ones who download the pages in Windows don't have any trouble. The ones
who
use Mac  will see strange characters, as it might be expected. Updating a
page
or propertie from a Mac will cause the same problem for Windows users,
because
Zope doesn't convert the extended characters to the web-friendly format when
properties are added.

I'd also like to search in Zcatalog using these extended characters, ie.
"Effects of El Nio", from any platform. Is there a workaround for this
situation?


Ausum



p.d  I'm sure that european Zopists have already faced  this problem and
probably found a solution. Unfortunately I couldn't find it at the archives.




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

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




Re: [Zope] ANN: Core Session Tracking 0.7

2001-01-30 Thread Chris McDonough

 A new release of the "CoreSessionTracking" product is out.  The product
 allows you to associate state with anonymous visitors between requests.

 I've been wondering about this for a long time. It allows you to associate
 state with anonymous users. Does this imply that you can't associate state
 with authenticated users, or that there's another mechanism to do it with
 authenticated users?

There's nothing inherent in the product which prevents you from associating
state with authenticated users.  It's just not as useful because once
they're authenticated you'd probably be better off associating the state
with their user object.

I've seen a couple of examples of session usage, however, that mix user
state and session state... for example, in the ASP world (and I think in the
servlet world too), when a session starts and ends, you can associate an
event with it.  So this allows you to use the session space as sort of a
scratchpad for use when a user comes in.  At start time, you copy over some
user state to the session object (based on authentication information).  The
user does some stuff, changing the contents of the session state.  Then when
the session expires, the session end event is called, the state is copied
back to the user object.  This is something that core session tracking
doesn't do because session ids don't expire.

There are also a couple of undocumented methods in core session tracking
that allow you to associate a session data object with a user's database
path.  The reason that they're undocumented is because I'm not sure how far
I want the tendrils of session tracking to go.  This is an area we need help
in, but it's probable that this information should probably be associated
with the user in another way.

 In the servlet paradigm, there's a distinction between the HTTP session
and
 authentication. You set up a session with an HTTP request, and thereafter
 if the session ID is returned to you it's the same session. In that
 session, the user can choose to login or not.

 Is this the same thing or is it different?

Core session tracking is the same.




___
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] Z SQL Method

2001-01-30 Thread Diego Rodrigo Neufert

maybe dtml-call "REQUEST.set('my_var', _['sql_example'])" works


On Tuesday 30 January 2001 12:22 pm, Martin Jundt wrote:
 Hi there,

 I have got a litte problem with a Z SQL Method "sql_example":

   select count(*) as result from example_DB

 I want to put the returned result in a variable:

  dtml-in sql_example
  dtml-call "REQUEST.set('my_var', result)"
 /dtml-in

 This works fine.But should something like

   dtml-call "REQUEST.set('my_var', ['sql_example'])"

 work, too?

 Thanks
 Martin

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

-- 
Diego Rodrigo Neufert
Webmaster / Web Developer - Magic Web Design
---
[EMAIL PROTECTED]
www.magicwebdesign.com.br
Curitiba - PR - Brasil

___
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] ANN: Core Session Tracking 0.7

2001-01-30 Thread Chris McDonough

 servlet world too), when a session starts and ends, you can associate an
 event with it.  So this allows you to use the session space as sort of a
 scratchpad for use when a user comes in.  At start time, you copy over
some
 user state to the session object (based on authentication information).
The
 user does some stuff, changing the contents of the session state.  Then
when
 the session expires, the session end event is called, the state is copied
 back to the user object.  This is something that core session tracking
 doesn't do because session ids don't expire.

Actually, the more I think about this, the more convinced I become that I
should offer something this tied to the expiration of the session data
object.



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




RE: [Zope] Problem with Cut and Paste

2001-01-30 Thread Brian Lloyd

 I've done this modification on a fresh 2.3.0-final installation
 with no other products installed, on localhost, and no special 
 content other than a folder and an index_html document 
 to test my modifications. 
 
 However I've tested what you suggested, after deleting my 
 Netscape 4.75 cookies file
 under Linux (2.2.18 kernel), the problem remains.
 
 If I check the cb_copy_data length then it returns: 
 
 16765 under Netscape and 14xxx under Lynx

This is your problem - Netscape allows a maximum of 4k of 
cookie data for a given site (and silently truncates the 
rest). 


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] DTML namespace puzzle

2001-01-30 Thread Dieter Maurer

Ron Bickers writes:
  
  I realized the DTML method
  call from the Python Script included 'container' as the first parameter (as
  shown below)
  I don't understand how Python Scripts can/should call DTML methods.  That
  is, are there magical parameters?...
About a week ago, I posted a short description on how parameters
are passed to DTML objects to this list.

Take a look at the 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] ZPyGresQL Connection Add Error

2001-01-30 Thread Robert Prosenc

On Mon, 22 Jan 2001, Craig wrote:
 Error Type: IOError
 Error Value: [Errno 2] No such file or directory:
 '/usr/lib/zope/lib/python/Shared/DC/ZRDB/connectionAdd.dtml'

I checked and this connectionAdd.dtml file is actually located
here:
/usr/lib/zope/lib/python/Shared/DC/ZRDB/dtml/connectionAdd.dtml

try to move the dtml-file one directory upwards, it doesn't seem to be
expected to be inside the 'dtml'-directory.

just a guess.

greetings, rob.

-- 
 __ 
  `
  Robert Prosencweb: http://www.matrixware.at/  
mail:[EMAIL PROTECTED]
Matrixware  phone:   +43(  1)   713 43 06 - 2   
postal:  Geusaugasse 39 
 (Ecke Kundmanngasse)   
 A-1030 Vienna, AUSTRIA 
 -- 
  while !asleep() sheep++
`--


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




RE: [Zope] DTML namespace puzzle

2001-01-30 Thread Ron Bickers

It was posted to zope-dev, which I should probably subscribe to.

http://lists.zope.org/pipermail/zope-dev/2001-January/009018.html

Thank you!  Exactly what I needed.
___

Ron Bickers
Logic Etc, Inc.
[EMAIL PROTECTED]

 -Original Message-
 From: Dieter Maurer [mailto:[EMAIL PROTECTED]]

 About a week ago, I posted a short description on how parameters
 are passed to DTML objects to this list.
 
 Take a look at the archive.


___
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] LoginManager dlpierson example

2001-01-30 Thread W. Robert Kellock




Hi,

I'm new to Zope and I've been examining the LoginManager 
example given by dlpierson (http://www.zope.org/Members/dlpierson/sqlLogin). 
Although I am nowhere near understanding what it is doing, I'm very close to 
getting it to work - I think! It looks to me like I'm falling down in the 
PythonMethods (PythonScripts) in the Member ZClass. Are PythonScript 
arguments typeless? I keep getting an error

Error Type: AttributeErrorError 
Value: 'string' object has no attribute 'password'

from the authenticate method which I'm passing 
self,password.

Strangely following this error, I can hit the back button on 
my browser and reach the protected HTML page anyway! Here is the 
traceback.Your help would be appreciated.

!--
Traceback (innermost last):
File D:\PROGRA~1\WEBSITE\lib\python\ZPublisher\Publish.py, line 
222, in publish_module
File D:\PROGRA~1\WEBSITE\lib\python\ZPublisher\Publish.py, line 
187, in publish
File D:\PROGRA~1\WEBSITE\lib\python\Zope\__init__.py, line 221, 
in zpublisher_exception_hook
(Object: Traversable)
File D:\PROGRA~1\WEBSITE\lib\python\ZPublisher\Publish.py, line 
162, in publish
File D:\PROGRA~1\WEBSITE\lib\python\ZPublisher\BaseRequest.py, 
line 444, in traverse
File 
D:\PROGRA~1\WEBSITE\lib\python\Products\LoginManager\LoginManager.py, line 237, 
in validate
(Object: ProviderContainer)
File 
D:\PROGRA~1\WEBSITE\lib\python\Products\LoginManager\LoginMethods.py, line 246, 
in findLogin
(Object: PlugInBase)
File 
D:\PROGRA~1\WEBSITE\lib\python\Shared\DC\Scripts\Bindings.py, line 324, in 
__call__
(Object: authenticate)
File 
D:\PROGRA~1\WEBSITE\lib\python\Shared\DC\Scripts\Bindings.py, line 353, in 
_bindAndExec
(Object: authenticate)
File 
D:\PROGRA~1\WEBSITE\lib\python\Products\PythonScripts\PythonScript.py, line 330, 
in _exec
(Object: authenticate)
(Info: ({'script': lt;PythonScript instance at 
01596818gt;, 'context': SMKELLOCK, 'container': SMKELLOCK, 
'traverse_subpath': []}, ('colenso9', 
lt;h3gt;formlt;/h3gt;lt;tablegt;lt;tr 
valign=quot;topquot; 
align=quot;leftquot;gt;lt;thgt;__ac_passwordlt;/thgt;lt;tdgt;'colenso9'lt;/tdgt;lt;/trgt;lt;tr 
valign=quot;topquot; 
align=quot;leftquot;gt;lt;thgt; Log In 
lt;/thgt;lt;tdgt;' Log In 
'lt;/tdgt;lt;/trgt;lt;tr valign=quot;topquot; 
align=quot;leftquot;gt;lt;thgt;__ac_namelt;/thgt;lt;tdgt;'SMKELLOCK'lt;/tdgt;lt;/trgt;lt;/tablegt;lt;h3gt;cookieslt;/h3gt;lt;tablegt;lt;tr 
valign=quot;topquot; 
align=quot;leftquot;gt;lt;thgt;sql_pref__colslt;/thgt;lt;tdgt;'50'lt;/tdgt;lt;/trgt;lt;tr 
valign=quot;topquot; 
align=quot;leftquot;gt;lt;thgt;dtpref_colslt;/thgt;lt;tdgt;'85'lt;/tdgt;lt;/trgt;lt;tr 
valign=quot;topquot; 
align=quot;leftquot;gt;lt;thgt;sql_pref__rowslt;/thgt;lt;tdgt;'15'lt;/tdgt;lt;/trgt;lt;tr 
valign=quot;topquot; 
align=quot;leftquot;gt;lt;thgt;dtpref_rowslt;/thgt;lt;tdgt;'15'lt;/tdgt;lt;/trgt;lt;tr 
valign=quot;topquot; 
align=quot;leftquot;gt;lt;thgt;tutorialExamplesURLlt;/thgt;lt;tdgt;'http://sharonk:8080/ZopeTutorial/examples/lesson3'lt;/tdgt;lt;/trgt;lt;/tablegt;lt;h3gt;otherlt;/h3gt;lt;tablegt;lt;tr 
valign=quot;topquot; 
align=quot;leftquot;gt;lt;thgt;dtpref_rowslt;/thgt;lt;tdgt;'15'lt;/tdgt;lt;/trgt;lt;tr 
valign=quot;topquot; 
align=quot;leftquot;gt;lt;thgt;__ac_passwordlt;/thgt;lt;tdgt;'colenso9'lt;/tdgt;lt;/trgt;lt;tr 
valign=quot;topquot; 
align=quot;leftquot;gt;lt;thgt;__ac_namelt;/thgt;lt;tdgt;'SMKELLOCK'lt;/tdgt;lt;/trgt;lt;tr 
valign=quot;topquot; 
align=quot;leftquot;gt;lt;thgt;dtpref_colslt;/thgt;lt;tdgt;'85'lt;/tdgt;lt;/trgt;lt;tr 
valign=quot;topquot; 
align=quot;leftquot;gt;lt;thgt;BASE3lt;/thgt;lt;tdgt;'http://sharonk:8080/FinanceNow/index_html'lt;/tdgt;lt;/trgt;lt;tr 
valign=quot;topquot; 
align=quot;leftquot;gt;lt;thgt;BASE2lt;/thgt;lt;tdgt;'http://sharonk:8080/FinanceNow'lt;/tdgt;lt;/trgt;lt;tr 
valign=quot;topquot; 
align=quot;leftquot;gt;lt;thgt;BASE1lt;/thgt;lt;tdgt;'http://sharonk:8080'lt;/tdgt;lt;/trgt;lt;tr 
valign=quot;topquot; 
align=quot;leftquot;gt;lt;thgt;BASE0lt;/thgt;lt;tdgt;'http://sharonk:8080'lt;/tdgt;lt;/trgt;lt;tr 
valign=quot;topquot; 
align=quot;leftquot;gt;lt;thgt;URL1lt;/thgt;lt;tdgt;'http://sharonk:8080/FinanceNow'lt;/tdgt;lt;/trgt;lt;tr 
valign=quot;topquot; 
align=quot;leftquot;gt;lt;thgt;SERVER_URLlt;/thgt;lt;tdgt;'http://sharonk:8080'lt;/tdgt;lt;/trgt;lt;tr 
valign=quot;topquot; 
align=quot;leftquot;gt;lt;thgt;AUTHENTICATED_USERlt;/thgt;lt;tdgt;LoggingInUserlt;/tdgt;lt;/trgt;lt;tr 
valign=quot;topquot; 
align=quot;leftquot;gt;lt;thgt;TraversalRequestNameStacklt;/thgt;lt;tdgt;[]lt;/tdgt;lt;/trgt;lt;tr 
valign=quot;topquot; 
align=quot;leftquot;gt;lt;thgt;sql_pref__rowslt;/thgt;lt;tdgt;'15'lt;/tdgt;lt;/trgt;lt;tr 
valign=quot;topquot; 
align=quot;leftquot;gt;lt;thgt;URL2lt;/thgt;lt;tdgt;'http://sharonk:8080'lt;/tdgt;lt;/trgt;lt;tr 
valign=quot;topquot; 
align=quot;leftquot;gt;lt;thgt;URL0lt;/thgt;lt;tdgt;'http://sharonk:8080/FinanceNow/index_html'lt;/tdgt;lt;/trgt;lt;tr 
valign=quot;topquot; 
align=quot;leftquot;gt;lt;thgt; Log In 
lt;/thgt;lt;tdgt;' Log In 

[Zope] Loading ZMySQLda on Solaris 7

2001-01-30 Thread Lee Marzke


Hi,

After having no problems at all with Zope 2.3, and Mysql on Linux RedHad6.1
I tried getting this to work on a Solaris 7 SPARC machine with no luck.

Im using:

Solaris 7 (SunOS 5.7 )
GCC 2.95.1
Zope 2.3.0 
ZMySQLDA 1.2 
MySQL 3.22.32  compiled from source
Python 1.5.2, Python 1.6, Python2.0  all compiled with thread support.

When I try to load a ZMySQL object in Zope I keep getting the following
error:  Any ideas?

Thanks,


ImportError: ld.so.1: python: fatal: relocation error: file
/sw/scm/usr/lib/python1.5/site-packages/_mysql.so: symbol PyTuple_New:
referenced symbol not found


Traceback (innermost last):
  File
"/sw/scm/usr/Zope-2.3.0-solaris-2.6-sparc/lib/python/OFS/Application.py", line
530, in import_products
product=__import__(pname, global_dict, global_dict, silly)
  File
"/sw/scm/usr/Zope-2.3.0-solaris-2.6-sparc/lib/python/Products/ZMySQLDA/__init__.
py", line 106, in ?
import sys, os, Globals, DA
  File
"/sw/scm/usr/Zope-2.3.0-solaris-2.6-sparc/lib/python/Products/ZMySQLDA/DA.py",
line 108, in ?
from db import DB
  File "/usr/share/zope/lib/python/Products/ZMySQLDA/db.py", line 106, in ?
ImportError: ld.so.1: /sw/scm/usr/Zope-2.3.0-solaris-2.6-sparc/bin/python:
fatal: relocation error: file
/sw/scm/usr/Zope-2.3.0-solaris-2.6-sparc/lib/python/Products/ZMySQLDA/_mysqlmodu
le.so: symbol PyObject_Init: referenced symbol not found



ee Marzke [EMAIL PROTECTED] 30-Jan-01, 15:10:04
Kulicke  Soffa Industries
2101 Blair Mill Rd   +1 215 784-6217
Willow Grove, PA 19090   +1 215 784-6014 fax


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




RE: [Zope] Problem with Cut and Paste

2001-01-30 Thread Brian Lloyd

 I'm sorry but AFAIK there's nothing sending cookies to my browser 
 from this
 installation. More than that, if I manually cut then paste the same
 object with the Cut and Paste buttons in the management interface 
 it works perfectly, and in this situation the cookie data should be
 exactly the same, correct me if I'm wrong.

Make sure that you are *not* passing the REQUEST to 
manage_cutObjects in your custom method. If you pass 
the REQUEST, manage_cutObjects will assume that it is 
being called from a Web form and it will return html 
rather than the copy_data token. It looks like that is 
what is happening - when you call manage_pasteObjects 
you are probably passing it html rather than the copy 
data, which is why it is failing to unencode it.


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] BUG? was Re: [Zope] Problem with Cut and Paste

2001-01-30 Thread Jerome Alet

Good evening again,

On Tue, Jan 30, 2001 at 08:45:06PM +0100, Jerome Alet wrote:
 
 On Tue, Jan 30, 2001 at 02:24:50PM -0500, Brian Lloyd wrote:
  
  This is your problem - Netscape allows a maximum of 4k of 
  cookie data for a given site (and silently truncates the 
  rest). 
 
 I'm sorry but AFAIK there's nothing sending cookies to my browser from this
 installation. More than that, if I manually cut then paste the same
 object with the Cut and Paste buttons in the management interface 
 it works perfectly, and in this situation the cookie data should be
 exactly the same, correct me if I'm wrong.

I think I've found where the problem comes from, it has nothing to do with 
browsers or cookies (or me) AFAICT.

When manage_cutObjects() is called with REQUEST != None (i.e. when used
from the management interface) then instead of the cut objects it returns 
the value returned by manage_main(), this explains why my cb_copy_data was bad.

I've sligthly modified manage_cutObjects() to confirm that's the problem:

I've added a fourth parameter called noredirect to this method, this parameter
is a named one and defaults to 0, then at the end of this method, 
I've just done:

if not noredirect : 
return self.manage_main(REQUEST)
return cp

Now it works fine both from my new management interface (Zope's modified one) 
and from python scripts, with a method which does essentially the following:

cb_copy_data = self.manage_cutObjects(ids, REQUEST, noredirect = 1)
return self.aq_parent.manage_pasteObjects(cb_copy_data, REQUEST)

In other terms manage_cutObjects() wasn't designed to be immediately followed 
by a call to another method when used from the management interface.

Not sure if this is a bug, however it seems this is a common problem in Zope
manage_() methods.

hoping this will help

bye,

Jerome Alet



___
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] LoginManager dlpierson example

2001-01-30 Thread Fred Yankowski

On Wed, Jan 31, 2001 at 09:25:08AM +1300, W. Robert Kellock wrote:
 Are PythonScript arguments typeless?  I keep getting an
 error
 
 Error Type: AttributeError
 Error Value: 'string' object has no attribute 'password'
  
 from the authenticate method which I'm passing self,password.


I think you should pass (self, password, request).


-- 
Fred Yankowski   [EMAIL PROTECTED]  tel: +1.630.879.1312
Principal Consultant www.OntoSys.com   fax: +1.630.879.1370
OntoSys, Inc 38W242 Deerpath Rd, Batavia, IL 60510, USA

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




[Zope] basic dtml syntax question

2001-01-30 Thread Jason Cunliffe

example: img src="dtml-absolute_url;"
 ^
 ^
 ^
 ?

Please can anyone explain why dtml... syntax has a semi-colon ; at the
end?

What is for?
Why is necessary? etc
How to use/abuse it?

thanks

 Jason




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




Re: [Zope] basic dtml syntax question

2001-01-30 Thread Jens Vagelpohl

jason,

this is called 'entity notation'. the semicolon is a standard part of it.
another example of an item in entity notation would be to replace "" with
lt; or the often abused blank space nbsp;

this entity notation is a general HTML thing, it's not zope-specific.

jens




on 1/30/01 17:49, Jason Cunliffe at [EMAIL PROTECTED] wrote:

 example: img src="dtml-absolute_url;"
^
^
^
?
 
 Please can anyone explain why dtml... syntax has a semi-colon ; at the
 end?
 
 What is for?
 Why is necessary? etc
 How to use/abuse it?
 
 thanks
 
 Jason
 


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




[Zope] DTML difficulties

2001-01-30 Thread Nolan Darilek

I'm working on my first zope product and, while everything has gone
relatively smoothly so far, I'm having some issues.

The product is a folderish object which contains 3 subfolders, each of
which contains a specific type of object. The structure looks
something like this:
work/: Main folder, UI, etc
   jobs/: List of all jobs
   projects/:
   taskforces/:

Each folder contains a job, project or taskforce object, as well as
the UI to manage them.

Projects and taskforces are simple objects with names, descriptions,
etc. Logic will be attached to these classes so that, when instances
are viewed, they will search for jobs which are assigned to them. Each
job can be assigned to multiple projects/taskforces.

Now, the difficulty. I'm working on the UI for the job add form, which
is in work/jobs. The form needs to iterate over the contents of
projects/ and taskforces/, and I can't figure out how. Here's what
I've tried:

tr
th align="LEFT" valign="TOP"Taskforces/th
td align="LEFT" valign="TOP"
select multiple name="taskforces:list"
dtml-in "PARENTS[1].taskforces"
option value="dtml-var id"dtml-var title_or_id/option
/dtml-in
/select
/td
/tr

tr
th align="LEFT" valign="TOP"Projects/th
td align="LEFT" valign="TOP"
select multiple name="projects:list"
dtml-in "PARENTS[1].projects"
option value="dtml-var id"dtml-var title_or_id/option
/dtml-in
/select
/td
/tr


And the error I get is:

||Error Type: TypeError  |
||Error Value: unsliceable object|

Traceback (innermost last):
  File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 222, in publish_module
  File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 187, in publish
  File /usr/lib/zope/lib/python/Zope/__init__.py, line 221, in 
zpublisher_exception_hook
  File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 171, in publish
  File /usr/lib/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: ESPWorkRequestAdd)
  File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 112, in call_object
(Object: ESPWorkRequestAdd)
  File /usr/lib/zope/lib/python/App/special_dtml.py, line 120, in __call__
(Object: ESPWorkRequestAdd)
  File /usr/lib/zope/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__
(Object: ESPWorkRequestAdd)
  File /usr/lib/zope/lib/python/DocumentTemplate/DT_In.py, line 672, in renderwob
(Object: PARENTS[1].taskforces)
  File /usr/lib/zope/lib/python/OFS/ObjectManager.py, line 617, in __getitem__
(Object: RoleManager)
  File /usr/lib/zope/lib/python/OFS/ObjectManager.py, line 257, in _getOb
(Object: RoleManager)
TypeError: (see above)


Can anyone offer any advice? 

___
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] More ZClass questions: How to get a complete property list?

2001-01-30 Thread Ernesto Revilla

Hi there,

I want to have a method which returns a list of all properties of an object.

The problem: when I write a Method (DTML or Python) I always get the
properties of the container of the method, but not the ones of the object I
applied the method. I used propertyMap, propertyIds and propertyItems.

Example:
Say xxx is an instance of a ZClass and resides in the root directory.
http://localhost:8080/xxx/propertyMap
will return a map of all properties of the root folder not of the xxx
object.

Say you define a method yyy which access concrete properties of the object
with dtml-var, say ''who" and "when", then it will access these properties
if they exist and fail if one of these doesn't.

Ok. I found it, I have to access each propertysheet, but if I try something
like

dtml-in "propertysheets"
dtml-var propertyMap
/dtml-in

the login window with username/password is presented, but whatever I type I
get an authorization error, so I think there is a private properysheet,
isn't it?

So how can I get a list of all properties defined in an object?

I'll answer the question myself, but I think it is a bit complex. The
philosophy is to write nearly everything in Python

External (unrestricted) Pyhton script (like id=getprops, module=getprops,
function=getprops) :
def getprops(self):
x=[]
for y in self.propertysheets:
for z in y.propertyItems():
x.append(z)
return x

Now a DTML method for displaying this (e.g. as printproperties):
dtml-var standard_html_header
h2Properties of dtml-var title_or_id/h2
p
ul
dtml-in getprops
lidtml-var sequence-key: dtml-var sequence-item
/dtml-in
/ul


regards,
Erny






___
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] CoreSessionTracking and noundo db

2001-01-30 Thread [EMAIL PROTECTED]

hi
in trying out the excellent CoreSessionTracking product, i encountered a 
little problem.  the doc reference a no-undo external db to house the data.  
i remember one such beast which were alpha (berkerly dbm(?)), but can't 
locate it at zope.org.

also, will there ever be a no undo db for use with zope?  since such product 
is a must to run zope in real world.
hints, urls welcome

thanks

-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

Strange how laughter looks like crying with no sound, and raindrops taste 
like tears .. without the pain


___
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] CoreSessionTracking and noundo db

2001-01-30 Thread Chris McDonough

Oops, I forgot to mention ExternalMount:

http://www.zope.org/Members/hathawsh/ExternalMount

- Original Message -
From: "Bak@kedai" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 30, 2001 9:28 PM
Subject: [Zope] CoreSessionTracking and noundo db


 hi
 in trying out the excellent CoreSessionTracking product, i encountered a
 little problem.  the doc reference a no-undo external db to house the
data.
 i remember one such beast which were alpha (berkerly dbm(?)), but can't
 locate it at zope.org.

 also, will there ever be a no undo db for use with zope?  since such
product
 is a must to run zope in real world.
 hints, urls welcome

 thanks

 --

 http://www.kedai.com.my/kk
 http://www.kedai.com.my/eZine

 Strange how laughter looks like crying with no sound, and raindrops taste
 like tears .. without the pain


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




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




Re: [Zope] noundo dbs

2001-01-30 Thread Chris McDonough

And a third message...

The SessionStorage.py file that ships with CoreSessionTracking is a storage
of its own that's RAM based.  It's based on an (as yet unreleased)
"packless" Berkeley storage implementation that Jim Fulton created.

I'd really like to get the Berkeley version of this architecture released,
because it's also nonundoing and doesn't require any packing unless your
database has circular references.  We've been in a sort of limbo in
releasing it because I think we wanted to release a "full" implementation
(one which supported undo and versioning), but I'm going to see if I can get
the packless piece onto Zope.org without waiting for the rest of it.

- Original Message -
From: "Chris McDonough" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, January 30, 2001 10:58 PM
Subject: Re: [Zope] CoreSessionTracking and noundo db


 Oops, I forgot to mention ExternalMount:

 http://www.zope.org/Members/hathawsh/ExternalMount

 - Original Message -
 From: "Bak@kedai" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, January 30, 2001 9:28 PM
 Subject: [Zope] CoreSessionTracking and noundo db


  hi
  in trying out the excellent CoreSessionTracking product, i encountered a
  little problem.  the doc reference a no-undo external db to house the
 data.
  i remember one such beast which were alpha (berkerly dbm(?)), but can't
  locate it at zope.org.
 
  also, will there ever be a no undo db for use with zope?  since such
 product
  is a must to run zope in real world.
  hints, urls welcome
 
  thanks
 
  --
 
  http://www.kedai.com.my/kk
  http://www.kedai.com.my/eZine
 
  Strange how laughter looks like crying with no sound, and raindrops
taste
  like tears .. without the pain
 
 
  ___
  Zope maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope
  **   No cross posts or HTML encoding!  **
  (Related lists -
   http://lists.zope.org/mailman/listinfo/zope-announce
   http://lists.zope.org/mailman/listinfo/zope-dev )
 
 


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




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




Re: [Zope] DTML difficulties

2001-01-30 Thread ender

dtml-with jobs
dtml-in "objectValues('JobsZClass')"
option value="dtml-var id"dtml-var title_or_id/option
/dtml-in
/dtml-with

same thing for taskforces

your error from what you tried was because you were trying to treat
the taskforce and job folder objects as lists which they aren't. what you had 
would work, if you changed your dtml-in to reference the respective folders 
objectValues method which will return a list of objects which dtml-in will 
iterate over.

kapil


On Tuesday 30 January 2001 15:12, Nolan Darilek wrote:
 I'm working on my first zope product and, while everything has gone
 relatively smoothly so far, I'm having some issues.

 The product is a folderish object which contains 3 subfolders, each of
 which contains a specific type of object. The structure looks
 something like this:
 work/: Main folder, UI, etc
jobs/: List of all jobs
projects/:
taskforces/:

 Each folder contains a job, project or taskforce object, as well as
 the UI to manage them.

 Now, the difficulty. I'm working on the UI for the job add form, which
 is in work/jobs. The form needs to iterate over the contents of
 projects/ and taskforces/, and I can't figure out how. Here's what
 I've tried:

___
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 memory usage / cache

2001-01-30 Thread ender

On Tuesday 30 January 2001 10:09, Ron Bickers wrote:
 I have a site that has dozens of 300k+ Photo objects
 (http://www.zope.org/Members/Drew/Photo).  When I start Zope, it uses about
 10MB.  It will run at around 10-12MB for days as long as I don't access any
 of the photos.  Once I access several of the photos, it jumps up to around
 50MB.  The debug info says there are over 200 Photo object references.

 If I then do a Cache minimize, there are no longer any Photo object
 references, but the memory usage remains 50MB.  It will stay that high
 indefinitely (at least as long as I have tested -- a few days), even if the
 site isn't accessed.  If I restart, it goes back down to 10MB, and it will
 stay there as long as my photos aren't accessed.

 Is this normal behavior?  It seems crazy to have Zope sucking up that much
 memory when those photos are hardly ever accessed.

this sounds like normal operating system behavior. memory isn't being free'd 
just dealloc and returned to the program heap and marked as available. 

kapil

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




[Zope] default page is zope_quick_start! - Zope 2.3 release for windows

2001-01-30 Thread Ian Thomas

A little problem I'm having with the new Zope 2.3 - Windows version.
 
I edited index_html and it works fine if I enter 
http://host.com/index_html  but if I enter
http://host.com it gives me the quick start page zope_quick_start!
 
Does anybody know off hand where this page is stored so I can edit it 
directly?  A workaround until 2.3.1 is released. or better where to fix
this
in the code!
 
Ian Thomas

___
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] Recall: default page is zope_quick_start! - Zope 2.3 release for windows

2001-01-30 Thread Ian Thomas

Ian Thomas would like to recall the message, "default page is
zope_quick_start! - Zope 2.3 release for windows".

___
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] CoreSessionTracking timeout

2001-01-30 Thread Oliver Vecernik

Hi,

I am playing around with this great product and (nearly) all works as
expected. This is exactly what I need for my application and you guys
are saving a lot of time for me! Thank you.

The only thing I don't understand is the timeout of
session_data_manager. If I test the example given in the help I expect
'Before change:' to be empty if called the first time (works) and filled
for each subsequent call (works also). If timeout expires I expect
'Before change:' to be empty again, thus generating a new token. But it
isn't. It still uses the old token. What's going on?

I tested with cookies and form vars namespace, but it has always the
same behaviour. What's the quirk?

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 )