[Zope-dev] Problem

2000-07-25 Thread Anvita



Hello Sir,

I want to create a portal for indian languages 
using zope. The problem is that the programms which handles all font related 
issues or textto speech conversion etc for the site (for Indian Languages) 
are in C and Visual Basic and the programmes are too lenthy that we cann't 
rewrite them. Kindly tell me is there any way to use tham with zope. 


Thanking you,

Yours truly,

Anvita Bajpai
Research Engineer
IIT Kanpur - India.


[Zope-dev] ZODB : store and retrieve (more specific)

2000-07-25 Thread jdiebold

Hi, 


I want to create a persistent List (I want to store data for a long time 
without using a relational database). I have found source of such list but 
I don't know how to use it. 

The things that I want to know are : 
-- how could I use personnal object (in Python language)
-- how could I store and retrieve these object ?

I Hope that anybody can help me thanks...




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

2000-07-25 Thread Bruno Nana

Hi,

I have one problem with a Zmethod.

Here is the method:

select *,summe=sum(count(*))
from neuigkeiten
where
(
username like '%!--#var suche--%' or
autorloginname like '%!--#var suche--%' or
headline like '%!--#var suche--%' or
textfeld like '%!--#var suche--%')
order by headline

That is i want to select some data from database and save the number of data
who are found in summe.
There is no error at this level, but there is a problem when i list the
result in the dtml document. There are more data as i need.

Please would you help me to resolv this problem!!

Thank

Bruno


___
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] Standard Error Messages (was Re: [Zope-dev] Incorrect Padding?)

2000-07-25 Thread Chris Withers

Steve Alexander wrote:
   ! raise 'InternalError', request.response._error_html(

Can someone enlighten me as to what this does?

Does it reset the HTTP response code?

Is _error_html something that gets the acquired standard_error_message?

If not, it should do ;-)

Has anyone made any progress on getting Unauthorized errors to use
standard_error_message?

Here's hoping...

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] Use ZODB3 and ZCatalog for indexing purposes

2000-07-25 Thread Thomas Weholt

Hi,

I'm wondering about using ZODB3 and ZCatalog for a CD-indexing project. The
actual cd-roms will seldom change after they've been registered, and I'd
like to have some sort of auto-full-text-search feature.
How does ZODB3 and ZCatalog fit in this picture? I'm NOT making a
Zope-product yet, just a plain python-script, using ZODB/ZCatalog for
storage. Later, the thing will have a Zope-interface, but for now I'm having
so much trouble with my current implementation using PostgreSQL, mostly due
to the fact that I cannot get full-text-searching, that I really need some
progress now. I'm dealing with plain python objects the entire time, but
searching is alpha/omega in this case and will break it completly if not
implemented correctly.

Any hints, tips, flames or just emails sent out of boredome, I'm a lonely
coder who needs a stinkin' break before I go completly nuts, so any feedback
will be great. :-

Thomas

___
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] Use ZODB3 and ZCatalog for indexing purposes

2000-07-25 Thread Phil Harris

Thomas,

Have you seen the Zope on CDROM howto?

Try searching on zope.org (when it's back up that is) for it.

hth

Phil

- Original Message -
From: "Thomas Weholt" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 25, 2000 10:27 AM
Subject: [Zope-dev] Use ZODB3 and ZCatalog for indexing purposes


 Hi,

 I'm wondering about using ZODB3 and ZCatalog for a CD-indexing project.
The
 actual cd-roms will seldom change after they've been registered, and I'd
 like to have some sort of auto-full-text-search feature.
 How does ZODB3 and ZCatalog fit in this picture? I'm NOT making a
 Zope-product yet, just a plain python-script, using ZODB/ZCatalog for
 storage. Later, the thing will have a Zope-interface, but for now I'm
having
 so much trouble with my current implementation using PostgreSQL, mostly
due
 to the fact that I cannot get full-text-searching, that I really need some
 progress now. I'm dealing with plain python objects the entire time, but
 searching is alpha/omega in this case and will break it completly if not
 implemented correctly.

 Any hints, tips, flames or just emails sent out of boredome, I'm a lonely
 coder who needs a stinkin' break before I go completly nuts, so any
feedback
 will be great. :-

 Thomas

 ___
 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] Use ZODB3 and ZCatalog for indexing purposes

2000-07-25 Thread Itamar Shtull-Trauring

Phil Harris wrote:

 Have you seen the Zope on CDROM howto?
 
 Try searching on zope.org (when it's back up that is) for it.

I don't think it's relevant actually.  WHat you do want is Jim Fulton's talk
about ZODB from IPC8 - search zope.org for that.

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

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




[Zope-dev] Memebrship User management

2000-07-25 Thread Bill Anderson

OK, so I have been working on a set of user management methods for Membership by 
ta. I
have it where I can see a list of users, and their roles. now, what I need is a way to
modify Roles.

So, looking into the source, I see that roles exists (as currently implemented) as
__roles. This means that you can't modify roles from the web.

So, I added this to the MemberMixin:

def changeRoles(self,roles):
self.__roles=roles
return self.getRoles()

Restartted zope, yadda yadda. Now, it appears to be setting the roles (if I return
self.__roles I see the changes), but the changes are not persistent, since the roles 
don't
seem to be changed. The above will return the same roles the user had prior to the 
call to
changeRoles. :(

So, thinking back to the transactional nature of the ZODB, I added a:
get_transaction().commit(1)
...before the return ... no luck.

Then tried:
get_transaction().commit(1)
...same result.

Now, it is getting early (you know, once you past 'late' ;^) ... and my brain is 
shutting
down. So I figured I would post this to the list, to see if anyone has any bright (or
not-so-bright) ideas. Yeah, I know the above is a total kludge, but I wan't to get this
working before re-implenting a 'bettr' default PUS, to make sure I understand what I am
doing. {:^)=

Bill


--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
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] Now; - problems using ZODB/ZCatalog in Python

2000-07-25 Thread Thomas Weholt

First off, sorry for posting a huge, stinkin' post like this, but instead of
posting ten times trying to explain what I do, I post this once and hope
somebody can point out what's wrong and I'll leave you all alone, at least
for a while. 

The example is from the Catalog outside Zope-tutorial available at Zope.org.
I'm using Zope 2.2.0. This might have been written for Zope 2.1.6. I dunno.

I understand the error message, just don't why it is raised. If I should
call some form of commit() or close(), where should this be done?

And, by the way, does Catalog support different kinds of searches, like
matching all the search-words, some, does the order count ? Can this options
be set, if any exists?

Anyway, thanks for your patience and bandwidth.
Thomas

import sys
sys.path.append('d:\\progra~1\\website\\lib\\python\\')
import ZODB
import Persistence
from Persistence import Persistent
from ZODB.FileStorage import FileStorage
from Products.ZCatalog.Catalog import Catalog

### create some classes to be persistent
class Nobody( Persistent ):
def identify( self ):
print "I am Nobody!"

class Person( Persistent ):
def __init__( self, first, name, email, friend=Nobody() ):
self.first = first
self.name  = name
self.email = email
self.friend= friend
def identify( self ):
print "I am " + self.first + " " + self.name
print "and my Email is " + self.email

### OK, the ZODB-API together with a Catalog-Class
class Application:
def __init__( self, file='test.fs' ):
self.file= file
self.db  = ZODB.DB( FileStorage( file ) )
self.co  = self.db.open()
self.root= self.co.root()
if self.root.has_key( 'cat' ):
self.cat= self.root['cat']
else:
self.cat= Catalog()
### This is, how I get it to work
self.cat.aq_parent= self.root

self.root['cat']= self.cat
   
### Add indexes to the Catalog-Class
### The names must match the fields of the Person-Class!
self.cat.addIndex('first','FieldIndex' )
self.cat.addIndex('name' ,'FieldIndex' )
self.cat.addIndex('email','FieldIndex' )
get_transaction().commit()

def storePerson( self, person ):
uid= id( person )
print "stored as " + str( uid )
self.root[uid]= person

### Let the Catalog know from this object
self.cat.catalogObject( person, uid )
get_transaction().commit()

def searchPerson( self, **kw ):
r= self.cat.searchResults( kw )
paths= self.cat.paths
root = self.root
k= []
for i in r:
id= i.data_record_id_
k.append( root[paths[id]] )
return k

if __name__ == '__main__':
a= Application()
p1= Person( 'marian','kelc','[EMAIL PROTECTED]' )
p2= Person( 'tanja', 'kreierhoff','[EMAIL PROTECTED]', p1 )
p1.friend= p2
a.storePerson( p1 )
a.storePerson( p2 )

### test2.py
a= Application()

### perform searches with keyword-arguments
ids= a.searchPerson( name='kelc' )

for i in ids:
i.identify()
print "Friend is:"
i.friend.identify()
i.friend.friend.identify()
print str( id( i ) )
print str( id( i.friend.friend ) )

stored as 24111488
stored as 16520248
Traceback (innermost last):
  File "D:\Program Files\Python\Pythonwin\pywin\framework\scriptutils.py",
line 307, in RunScript
debugger.run(codeObject, __main__.__dict__, start_stepping=0)
  File "D:\Program Files\Python\Pythonwin\pywin\debugger\__init__.py", line
71, in run
_GetCurrentDebugger().run(cmd, globals,locals, start_stepping)
  File "D:\Program Files\Python\Pythonwin\pywin\debugger\debugger.py", line
533, in run
_doexec(cmd, globals, locals)
  File "D:\Program Files\Python\Pythonwin\pywin\debugger\debugger.py", line
868, in _doexec
exec cmd in globals, locals
  File "D:\python\life\zodb_zcatalog.py", line 84, in ?
a= Application()
  File "D:\python\life\zodb_zcatalog.py", line 28, in __init__
self.db  = ZODB.DB( FileStorage( file ) )
  File "D:\PROGRA~1\WebSite\lib\python\ZODB\FileStorage.py", line 262, in
__init__
lock_file(f)
  File "D:\PROGRA~1\WebSite\lib\python\ZODB\lock_file.py", line 115, in
lock_file
raise error, (
StorageSystemError: Could not lock the database file.  There must be
another process that has opened the file.
p


___
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] Now; - problems using ZODB/ZCatalog in Python

2000-07-25 Thread Jens Vagelpohl

thomas,

this error message is raised when the zope instance that contains the
ZODB you're trying to work with is already running (and thereby put its
own lock on the ZODB). are you trying to execute this script while zope
is running? you need to shut it down first.

jens


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]]On Behalf
 Of Thomas Weholt
 Sent: Tuesday, July 25, 2000 06:34
 To: '[EMAIL PROTECTED]'
 Subject: [Zope-dev] Now; - problems using ZODB/ZCatalog in Python
 
 I understand the error message, just don't why it is raised. 
 If I should
 call some form of commit() or close(), where should this be done?
 
 And, by the way, does Catalog support different kinds of 
 searches, like
 matching all the search-words, some, does the order count ? 
 Can this options
 be set, if any exists?
 
 Anyway, thanks for your patience and bandwidth.
 Thomas
 
 import sys
 sys.path.append('d:\\progra~1\\website\\lib\\python\\')
 import ZODB
 import Persistence
 from Persistence import Persistent
 from ZODB.FileStorage import FileStorage
 from Products.ZCatalog.Catalog import Catalog
 
 ### create some classes to be persistent
 class Nobody( Persistent ):
 def identify( self ):
 print "I am Nobody!"
 
 class Person( Persistent ):
 def __init__( self, first, name, email, friend=Nobody() ):
 self.first = first
 self.name  = name
 self.email = email
 self.friend= friend
 def identify( self ):
 print "I am " + self.first + " " + self.name
 print "and my Email is " + self.email
 
 ### OK, the ZODB-API together with a Catalog-Class
 class Application:
 def __init__( self, file='test.fs' ):
 self.file= file
 self.db  = ZODB.DB( FileStorage( file ) )
 self.co  = self.db.open()
 self.root= self.co.root()
 if self.root.has_key( 'cat' ):
 self.cat= self.root['cat']
 else:
 self.cat= Catalog()
 ### This is, how I get it to work
 self.cat.aq_parent= self.root
 
   self.root['cat']= self.cat

 ### Add indexes to the Catalog-Class
 ### The names must match the fields of the Person-Class!
 self.cat.addIndex('first','FieldIndex' )
 self.cat.addIndex('name' ,'FieldIndex' )
 self.cat.addIndex('email','FieldIndex' )
 get_transaction().commit()
 
 def storePerson( self, person ):
 uid= id( person )
 print "stored as " + str( uid )
 self.root[uid]= person
 
 ### Let the Catalog know from this object
 self.cat.catalogObject( person, uid )
 get_transaction().commit()
 
 def searchPerson( self, **kw ):
 r= self.cat.searchResults( kw )
 paths= self.cat.paths
 root = self.root
 k= []
 for i in r:
 id= i.data_record_id_
 k.append( root[paths[id]] )
 return k
 
 if __name__ == '__main__':
 a= Application()
 p1= Person( 'marian','kelc','[EMAIL PROTECTED]' )
 p2= Person( 'tanja', 'kreierhoff','[EMAIL PROTECTED]', p1 )
 p1.friend= p2
 a.storePerson( p1 )
 a.storePerson( p2 )
 
 ### test2.py
 a= Application()
 
 ### perform searches with keyword-arguments
 ids= a.searchPerson( name='kelc' )
 
 for i in ids:
 i.identify()
 print "Friend is:"
 i.friend.identify()
 i.friend.friend.identify()
 print str( id( i ) )
 print str( id( i.friend.friend ) )
 
 stored as 24111488
 stored as 16520248
 Traceback (innermost last):
   File "D:\Program 
 Files\Python\Pythonwin\pywin\framework\scriptutils.py",
 line 307, in RunScript
 debugger.run(codeObject, __main__.__dict__, start_stepping=0)
   File "D:\Program 
 Files\Python\Pythonwin\pywin\debugger\__init__.py", line
 71, in run
 _GetCurrentDebugger().run(cmd, globals,locals, start_stepping)
   File "D:\Program 
 Files\Python\Pythonwin\pywin\debugger\debugger.py", line
 533, in run
 _doexec(cmd, globals, locals)
   File "D:\Program 
 Files\Python\Pythonwin\pywin\debugger\debugger.py", line
 868, in _doexec
 exec cmd in globals, locals
   File "D:\python\life\zodb_zcatalog.py", line 84, in ?
 a= Application()
   File "D:\python\life\zodb_zcatalog.py", line 28, in __init__
 self.db  = ZODB.DB( FileStorage( file ) )
   File "D:\PROGRA~1\WebSite\lib\python\ZODB\FileStorage.py", 
 line 262, in
 __init__
 lock_file(f)
   File "D:\PROGRA~1\WebSite\lib\python\ZODB\lock_file.py", 
 line 115, in
 lock_file
 raise error, (
 StorageSystemError: Could not lock the database file.  There must be
 another process that has opened the file.
 p


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

Re: [Zope-dev] ZODB : store and retrieve (more specific)

2000-07-25 Thread Johan Carlsson



 Hi, 
 
 
 I want to create a persistent List (I want to store data for a long time 
 without using a relational database). I have found source of such list but 
 I don't know how to use it. 
 
 The things that I want to know are : 
 -- how could I use personnal object (in Python language)
 -- how could I store and retrieve these object ?
 
 I Hope that anybody can help me thanks...


You can either use the PersistentMapping object that comes with Zope 
"from ZODB.PersistentMapping import PersistentMapping" or 
AndrewWilcox's http://www.zope.org/Members/AndrewWilcox/PersistentListDict. 
PersistentMapping is limited to string keys only, which is sufficient most of the 
time. 
Just create a PersistentMapping in your Zope class and use it as if it was 
a regular python dictionary. PersistentMapping takes care of setting 
the necessary attributes for it to be persistent.

Alternative you can use a TinyTable directly in Zope for storing a table.

Regards,
Johan Carlsson







___
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] Use ZODB3 and ZCatalog for indexing purposes

2000-07-25 Thread Shane Hathaway

Thomas Weholt wrote:
 
 Hi,
 
 I'm wondering about using ZODB3 and ZCatalog for a CD-indexing project. The
 actual cd-roms will seldom change after they've been registered, and I'd
 like to have some sort of auto-full-text-search feature.
 How does ZODB3 and ZCatalog fit in this picture? I'm NOT making a
 Zope-product yet, just a plain python-script, using ZODB/ZCatalog for
 storage. Later, the thing will have a Zope-interface, but for now I'm having
 so much trouble with my current implementation using PostgreSQL, mostly due
 to the fact that I cannot get full-text-searching, that I really need some
 progress now. I'm dealing with plain python objects the entire time, but
 searching is alpha/omega in this case and will break it completly if not
 implemented correctly.
 
 Any hints, tips, flames or just emails sent out of boredome, I'm a lonely
 coder who needs a stinkin' break before I go completly nuts, so any feedback
 will be great. :-

You're definitely looking for this article.  It explains very clearly
how to access ZODB without the rest of the Zope framework.

http://starship.python.net/~amk/python/writing/zodb-zeo.html

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 )




[Zope-dev] Nameconflict 'Property' and Object in Folder

2000-07-25 Thread Martin Grönemeyer

Hi all,

has there some discussions about a name conflict, if I start to add an
object to a folder with an object-id wich is also a Property of the folder ?

In the method _checkId of the ObjectManager e.g. the folder is checked with
hasatrr(this,id). And this is true if there exists a property with the same
name as the object-id. I see no workaround, because a property or an object
are attributs of the folder.

Any comments ?

Martin


___
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] ZCatalog and ZEO

2000-07-25 Thread Johan Carlsson


I have started to use ZCatalog for a great deal of thing,
but I'm a little bit conserned about scalability.
If I whan to move my applications to a ZEO configuration
how will my ZCatalogs be distributed.
I use ZCatalogs alote and they may become quite large,
so what will happen when a ZCatalog is updated, for instance
if a new object registers it self and gets indexed.

1. The ZEO server sends expiration messages to all ZEO clients.
2. The ZEO clients then new to get updated ZCatalog from the server.

Does the clients have to get the all of the ZCatalog or just the indexes
thats been updated?
Does it have to get the whole index or can it just get the updated information?
Are there any "pattern/howto" to use when working with Catalog that will optimize
for scalability?

Regards,
Johan Carlsson






___
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] Stuff hanging off user not in cookies

2000-07-25 Thread Chris Withers

Hi,

small rant (no change there for me ;-)

Is there are reason why configuration info for the user doesn't hang off
the user object and is instead stored in cookies?

I'm thinking of the dimensions/etc of the edit boxes and the like. I do
a lot of work through virtual domains and it's a real pain having to
resize that edit box every time I log in through a different domain or
on a different computer...

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] Stuff hanging off user not in cookies

2000-07-25 Thread Brian Lloyd

 Is there are reason why configuration info for the user 
 doesn't hang off
 the user object and is instead stored in cookies?
 
 I'm thinking of the dimensions/etc of the edit boxes and the 
 like. I do
 a lot of work through virtual domains and it's a real pain having to
 resize that edit box every time I log in through a different domain or
 on a different computer...

Have you looked at the "Better User Management" proposal? One 
aspect of it is a better level of lowest-common-denominator 
support for extended attributes. I think that a prerequisite 
for what you are asking for is a well-defined interface for 
hanging extended attrs on users that can work reliably (or 
fail in a well-defined way) for whatever flavor of user 
source you are using.

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


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


___
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] How can Catalog index all parts/words of a attribute

2000-07-25 Thread Thomas Weholt

Hi,

I try to use Catalog with a object stored in ZODB3. I need to match single
words in attributes in what might be a long string with several words in it.
I've tried to set "self.cat.addIndex('name' ,'TextIndex' )" which is
supposed to be full text searching at least said to be in the Zope-pages
when creating a catalog in Zope. But when I try to search for objects they
only return stuff if I enter the entire content of the attribute in
question, not parts of it. This is not a Zope-product yet, but a foundation
for a future product. I'm working on a full-text searching command-line
interface, so nothing of this can be done thru Zopes web-interface at this
point.

the code has been posted earlier, in "Now; - problems using ZODB/ZCatalog in
Python". Any quick hints?

Thomas

___
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] PATCH: Expanded access file

2000-07-25 Thread Brian Lloyd

 Hm.  I don't think this could be classed as a "minor" 
 change, however,
 since it has impact on ownership, for example.  What's the 
 path of the user
 folder which is above "/", for example?  The whole thing is 
 useless if
 these extra users can't be owners, and the ownership 
 machinery right now
 wants an access path.  I think perhaps we should go the 
 fishbowl route on
 this, if only to make sure that Jim doesn't have a heart 
 attack when he
 gets back.  :)
 
 Looks like I was wrong.  This was in fact quite a minor 
 patch.  I've only
 tested this lightly so far, but if anyone else wants to try 
 it out, here it
 is.  

Hi all -

I think that this is _definitely_ the kind of thing that 
should be done in the fishbowl on dev.zope.org. Why? Because 
while it may be a "minor patch" in terms of lines of code, just 
applying the patch causes a number of problems that have nothing 
to do with software per se. They are the same problems that I get 
beaten about on a daily basis for everything that has ever been 
added to Zope to date :^)  They are the problems that dev.zope.org
is being designed to solve:

  o There is no visibility of the reason for the change. 

What is the problem being solved? How exactly does this solve 
it? Is it the right solution? Why did we make the decisions we
made? Of course some discussion of these has occurred on the dev 
list, but the only way I (or anyone else) can discover these is 
to piece things together by searching list archives. 

  o There is no visibility of the impacts of the change.

How does this affect ownership? Does this work with all existing
user folder objects, or do they all need to change to support it?
If they all need to change, shouldn't we make sure that the 
authors of other implementation generally buy into this? What 
other issues might there be? Again, we can only scour the 
list archives :(

  o This would become Yet Another Undocumented Feature.

One of the big things that the dev area is going to do is to force
us to assess the documentation impact of changes and ensure that 
the required documentation is produced and integrated with the 
appropriate offical or unofficial docs. I can see the expanded 
access file change potentially having an effect on at least two 
kinds of documentation (user/admin guides and developer materials
regarding how to implement new kinds of user folders). 


The structure of projects in the dev area is such that a finished 
project tells a story. What was the problem? What was the solution? 
How was it done? What documentation or other resources were created 
as a result? All of those things are available in one place once a 
project is complete.



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



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

2000-07-25 Thread Chris McDonough

Anvita,

It's possible you could reuse these components via COM using Mark
Hammond's COM stuff for python... this isn't really Zope-specific.  See
http://www.python.org/windows/win32com/ for more information.


-Original Message-
From: Anvita [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 25, 2000 2:16 AM
To: [EMAIL PROTECTED]
Subject: [Zope-dev] Problem


Hello Sir,
 
I want to create a portal for indian languages using zope. The problem
is that the programms which handles all font related issues or text to
speech conversion etc for the site (for Indian Languages) are in C and
Visual Basic and the programmes are too lenthy that we cann't rewrite
them. Kindly tell me is there any way to use tham with zope. 
 
Thanking you,
 
Yours truly,

Anvita Bajpai
Research Engineer
IIT Kanpur - India.

___
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] ZODB....

2000-07-25 Thread jdiebold

Hi, 

I want to develop an external program that can store and retrieve 
an Object (such as a Person) in the ZoDB
I tried the example that I found in the How to's but it doesn't works  
In fact, I have the following message :
ZODB.FileStorage(file) 
attribute Error : FileStorage

--But I have imported ZODB

And, when I try to import ZODB.FileStorage : the program stops with the 
following message :
TypeError : call of non-function type 

what's wrong ?

did Anybody have an example like this... ? 
Can anybody help me ?

___
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] PATCH: Expanded access file

2000-07-25 Thread Phillip J. Eby

At 10:54 AM 7/25/00 -0400, Brian Lloyd wrote:

I think that this is _definitely_ the kind of thing that 
should be done in the fishbowl on dev.zope.org. Why? Because 
while it may be a "minor patch" in terms of lines of code, just 
applying the patch causes a number of problems that have nothing 
to do with software per se.

Sorry about that.  As you may have seen from the list, I did enquire as to
whether this should go in the fishbowl, and was told that such a minor
patch probably didn't need it.  I thought the issue was more complex than
it was also; I was under the impression that Zope had a user folder *above*
the official "root", not realizing that it was merely that the "physical
root" had a default user folder in existence.


What is the problem being solved? How exactly does this solve 
it? Is it the right solution? Why did we make the decisions we
made? Of course some discussion of these has occurred on the dev 
list, but the only way I (or anyone else) can discover these is 
to piece things together by searching list archives. 

Problem being solved: the new ownership model requires a place for
ownership to "bottom out" so that user databases themselves can have
owners.  The previous solution was the creatable-by-super hack, which only
created further holes in the ownership model, since user databases which
involved components which followed the security model (e.g.
GenericUserFolder and LoginManager) then had to suppress ownership
characteristics or else be unusable as a root-level user database.

Second problem: the initial existence of only a single Zope user who could
not actually do anything except create a UserFolder, was troubling to new
users of Zope and at best inconvenient for experienced ones.



  o There is no visibility of the impacts of the change.

How does this affect ownership? Does this work with all existing
user folder objects, or do they all need to change to support it?

* The "rootUsers" can own things

* They appear to be normal members of the root UserFolder, except that they
do not appear in its contents as they are not stored there.

* It is not necessary for a user database to support the rootUsers; however
if the top-level user database of a Zope installation does not support
them, they will not be usable in that installation.

* User databases using the existing name==super.getUserName() protocol are
unaffected; they simply will not provide access to the new rootUser objects.

* User folder objects must be changed to support the rootUsers dictionary.
The patch provides this support for the Zope UserFolder object.

In practice, I believe that there is a relatively small (i.e. near-zero)
number of publically-available user databases currently in existence which
correctly support the Zope 2.2 security model, apart from those developed
by DC themselves.  Private developers of user databases need only implement
the support if they would like the additional feature, and for the rest, I
believe this patch should actually make it easier to implement 2.2 support
for most such user databases, since they won't need to implement the
creatable-by-super protocol or work through ownership issues.


  o This would become Yet Another Undocumented Feature.

One of the big things that the dev area is going to do is to force
us to assess the documentation impact of changes and ensure that 
the required documentation is produced and integrated with the 
appropriate offical or unofficial docs. I can see the expanded 
access file change potentially having an effect on at least two 
kinds of documentation (user/admin guides and developer materials
regarding how to implement new kinds of user folders). 

My assumption was that this feature would actually be easier for DC to
document than explaining to someone why they have to log in as superuser,
create a user folder, put a user in it, then log out by closing their
browser, and then log back in again as that other user in order to start
using their Zope installation.  My intent was to make both your and my life
easier, not more complex.  I apologize for any such side effect.  :(


___
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] Re: Probably ZopeFind Bug (was: Re: [Zope] all DTML Methods of current folder and subfolder)

2000-07-25 Thread Dieter Maurer

Dieter Maurer writes:
  Jerome Alet writes:
Thanks to you, the syntax you gave me is accepted by the dtml parser, but
both

dtml-in "ZopeFind(this(), obj_metatypes=['Folder'], 
  obj_expr='''not objectValues(['Folder'])''', 
  search_sub=1)"

and 

dtml-in "ZopeFind(this(), obj_metatypes=['Folder'],  
  obj_expr='not objectValues([\'Folder\'])',
  search_sub=1)"

have given me an empty list.
  I analysed this strange behavior in Zope 2.1.6
  and have a partial explanation.
  
Although the permission setting for "objectValues"
is "Access contents information" which by default
is granted to "Anonymous" and "Manager",
only "Manager" is allowed to access "objectValues"
in the context of the above "ZopeFind".
  
I could not yet determine, why this is the case.
  
But taken this fact for granted, the behavior
becomes clear: the access to "objectValues" results
in an "Unauthorized" exception. This
is catched but prevents any object from being
added to the result list.

By now, I know why we get this strange "objectValues__roles__"
result inside ZopeFind.

In "FindSupport:145", "ZopeFind" strips away the acquisition
context of an object.

base=obj
if hasattr(obj, 'aq_base'):
base=obj.aq_base

if not hasattr(base, 'objectItems'):
return result
try:items=base.objectItems()
except: return result

This, too, removes the information needed for "acl_user" based authorization:

  In the traversal of the aquisition chain to determine the
  roles associated with "objectValues", the application object
  on top of the acquisition hierarchy is not longer reached.
  Therefore, "ApplicationDefaultPermissions" is not used
  and "PermissionRole" falls back to its own default
  "('Manager',)".

This acquisition context stripping is almost surely responsible
for other problems reported for ZopeFind, too.


The behaviour would disappear, if the line

try:items=base.objectItems()
is replaced by
try:items=obj.objectItems()

Note: "ZopeFindAndApply" would need the same patch.

I am not sure, however, whether this will have adverse effects
at other places.


I will put a reference to this report into the Collector.



Dieter



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




[Zope] [Fwd: Re: [Zope-dev] DateTime formatting with strftime: patch]

2000-07-25 Thread Peter Arvidsson



 Original Message 
Ämne: Re: [Zope-dev] DateTime formatting with strftime: patch
Datum: Mon, 24 Jul 2000 16:56:52 +0100
Från: Steve Alexander [EMAIL PROTECTED]
Till: [EMAIL PROTECTED]
Referenser: [EMAIL PROTECTED]

This is now in the Collector, as bug number 1457.

  http://classic.zope.org:8080/Collector/1457/view

Incidentally, http://classic.zope.org:8080/Collector/1409/view is
another patch to the same problem. However, that patch doesn't address
the root of the problem, which is that DateTime instances are associated
with a particular timezone, and users expect all formatting to occur
with respect to that particular timezone. The fix in collector #1409
makes all strftime formatting happen in the local timezone of the Zope
installation, not the timezone given in the particular DateTime instance
being formatted.


Steve Alexander wrote:
 
 Here's a working patch to make formatting of a DateTime instance work as
 generally expected, when you use
 
   dtml-var "_.DateTime()" fmt="%d %G %z"
 
 or whatever.
 
 It could be made more efficient by compiling the two regex (regexes?
 regexen? regular expressions :-) ) into class attributes.

There's a problem with this optimisation -- see my other posting to
zope-dev today.
 
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net

___
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 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 performance ratios

2000-07-25 Thread Jarkko Veijalainen



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 24. heinäkuuta 2000 20:54
To: [EMAIL PROTECTED]
Subject: [Zope] Zope performance ratios


I'm interested in getting performance statistics for Zope. I'm scouring the
mailing lists for previous messages but I would also be interested in
anything else people may want to say about it. For example, what is the
record for average web hits from a Zope site? Does someone have a feel for
useful ratios like: "a Zope page takes, on average, twice as a static page
to serve"? I'm not interested in being anal about the numbers, seat of
the pants estimates are what I'm looking for.

--
Andres Corrada-Emmanuel   Email: [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] ZTopics breaks with 2.2?

2000-07-25 Thread Bill Anderson

Jonathan Cheyne wrote:
 
 Hi, can anyone confirm that the ZTopics product works after upgrading to
 2.2? I get an AttributeError for value Lexicon after migrating.

The problem is the old Data.fs, it seems.

I just created a new one, in a clean Data.fs, and it works fine.

You may try uninstalling the ZTopics, and reinstalling, but I doubt it will work.

This is something I am noticing with all my 'upgrades'. There are loads, and loads, of
errors with the Data.fs, even though it loads the site. Has anyone else seen this? Try
running with Debug turned on, and you can see them. Mainly they complain about 'oid'. 
As a
result, I am finding myself simply rebuilding some site, and personally, I find it 
quite
bothersome. :^(


Bill

--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
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: Sybase in Remote Machine

2000-07-25 Thread Holger Lehmann

Hi Herbert,

I have no clues regarding sybase, sorry. I am using a MySQL database which
*can* run on the same or on a different host.

But have you checked if there is a new Sybase DA on zope.org ?
Furthermore, have you mailed this to the maintainer ? He/she might be
interested in that you want to connect to a remote host. Maybe you will get
what you want if you trigger the maintainter ... :-))

Can you switch to a different database ? If so, why not use MySQL or PostgreSQL
? Both are free to use (well MySQL costs a couple of bucks for commercial
purposes) and quite well supported.

- Holger

Am Mon, 24 Jul 2000 schrieb [EMAIL PROTECTED]:
 Hello,
 
 By using the SybaseDAv2.00b interface to input the database connection
 in the database@hostname format, I got this error: Invalid connection
 string.
 
 And I checked the readme of the DA, it says "Ensure that you have
 Sybase installed on your machine,.." and "Set the environment variable
 ... to the Sybase installation directory on your local machine." Does
 iit imply that I have to put Sybase and Zope in the same machine?
 
 
 Regards,
 Herbert
 
 
 --- In [EMAIL PROTECTED], Holger Lehmann [EMAIL PROTECTED] wrote:
  Hi,
  
  you should be able to specify the hostname/IP-Adress in the
 connection string.
  It should be similar (or the same) to the MySQL DA connection string
 I am using:
  database@hostname user password
  where hostname being the (correct !) hostname as being seen from the
 database,
  i.e. I have to use the fqdn to connect since my MySQL server sees me
 with the
  full domainname. Furthermor you have to set the access rights in
 your database
  correctly for the user to be able to connect from that host ...
  
  - Holger
  
  Am Mon, 24 Jul 2000 schrieb Herbert Kwong:
   Hello,
   
   I have SuSE 6.4, Zope 2.1.6, Sybase 11.9.2 and SybaseDAv2 in my
   machine.  It works fine.  However, is it possible to make my local
   Zope create a connection to a remote Sybase server?  As I would
 like
   to separate the Sybase Database from the Apache/Zope server. 
 Thanks.
   
   Regards,
   Herbert Kwong
   [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 )
  -- 
  ---
  catWorkX GmbH Hamburg
  Dipl.-Ing. Holger Lehmann
  Stresemannstr. 364
  22761 Hamburg
  Tel: +49 40 890 646-0
  Fax: +49 40 890 646-66
  mailto:lehmann@c...
  http://www.catworkx.de
  http://www.catbridge.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 )
-- 
---
catWorkX GmbH Hamburg
Dipl.-Ing. Holger Lehmann
Stresemannstr. 364
22761 Hamburg
Tel: +49 40 890 646-0
Fax: +49 40 890 646-66
mailto:[EMAIL PROTECTED]
http://www.catworkx.de
http://www.catbridge.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: Re: [Zope] ZTopics breaks with 2.2?

2000-07-25 Thread guest

 Jonathan Cheyne wrote:
  
  Hi, can anyone confirm that the ZTopics product works after upgrading to
  2.2? I get an AttributeError for value Lexicon after migrating.
 
 The problem is the old Data.fs, it seems.
 
 I just created a new one, in a clean Data.fs, and it works fine.
 
 You may try uninstalling the ZTopics, and reinstalling, but I doubt it will work.
 
 This is something I am noticing with all my 'upgrades'. There are loads, and loads, 
of
 errors with the Data.fs, even though it loads the site. Has anyone else seen this? 
Try
 running with Debug turned on, and you can see them. Mainly they complain about 
'oid'. As a
 result, I am finding myself simply rebuilding some site, and personally, I find it 
quite
 bothersome. :^(
 
 
 Bill
 
 --
 Do not meddle in the affairs of sysadmins, for they are easy to annoy,
 and have the root password.
 
 ___
 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 )
 
 
---
WorldPilot - Get Synced - http://www.worldpilot.org
The Open Source Personal Information Manager Server
Powered by Python and Zope   -  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] Batchprocessing with multiple conditions?

2000-07-25 Thread Peter Arvidsson

I have objects of a certain meta-type. They have some properties and one
of the properties is a boolean. How do I make a dtml-in loop among those
objects with the boolean set to yes? I dont want it to traverse any
other value at all only those that match the condition should be
included in the sequenze because I am doing batchprocessing like in
figure 6 of
http://www.zope.org/Documentation/Guides/DTML-HTML/DTML.7.5.html. I have
done like this now:

dtml-if "objectValues(['Meta type'])"

table width="600" border="0" vspace="0" hspace="0" cellpadding="0"


 dtml-in "objectValues(['Meta type'])" sort=date,submittedDate,id
reverse previous size=batchSize orphan=0 skip_unauthorized
start=startNumber
tr
  td colspan="2" class="common2"
pba href="viewNewsTriggerdtml-var
sequence-querystartNumber=dtml-var previous-sequence-start-number"
(Previous dtml-var previous-sequence-size)/a/b/p
  /td
/tr
  /dtml-in

  dtml-in "objectValues(['Meta type'])" sort=date,submittedDate,id
reverse size=batchSize orphan=0 skip_unauthorized start=startNumber
  dtml-if BOOLEAN
tr
  td colspan="2" class="common1"
pdtml-var date fmt="%Y-%m-%d"nbsp;
font size="2"ba
href="viewSelectedNews?entry=dtml-id;"quot;dtml-header;quot;/a/b/font/p

  /td
/tr
  /dtml-if
  /dtml-in

  dtml-in "objectValues(['Meta type'])" sort=date,submittedDate,id
reverse next size=batchSize orphan=0 skip_unauthorized
start=startNumber
tr
  td colspan="2" class="common2"
pba href="viewNewsTriggerdtml-var
sequence-querystartNumber=dtml-var next-sequence-start-number"
(Next dtml-var next-sequence-size)/a/b/p
  /td
/tr
  /dtml-in

/TABLE

  /dtml-if

This shows only the objects I want to show but the sequences is counted
wrong because even though it doesn't show the objects with BOOLEAN=false
they are still counted in the dtml-in.

How can I loop only the objects I want to loop?

Peter


___
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] JobBoard update properties-script problem

2000-07-25 Thread brocken22

Hello,
I'm building a JobBoard like Database.Fellows can put in the jobs they
have done, the time they need(for scanning or programming) and the budget of
the project should be updated depending on the job and the time they needed.  
Building the instances was no problem but my problem is the budgetupdate.
This is the script;  Thanks!! -
without the if-statement it's working!!
dtml-call "REQUEST.set('job', job)"
dtml-call "REQUEST.set('time',time)"
dtml-call "REQUEST.set('user',_.str(REQUEST['AUTHENTICATED_USER']))"
dtml-call "REQUEST.set('title', user +' - '+ TS )"
dtml-call "REQUEST.set('value',REQUEST.form['value'])"


dtml- if "_.str(REQUEST['job']) == _.str('scanning')
   dtml-call "REQUEST.set('valueAfter',value - (20*time))"
else
   dtml-call "REQUEST.set('valueAfter',value - (10*time))"
/dtml- if
dtml-call "REQUEST.set('Budget',valueAfter)"
dtml-with "manage_addProduct['DBank']"

dtml-call "eingang_DB_add (_.None, _, NoRedir=1)"
/dtml-with


-- 
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] Announcement: Znolk 0.1.1

2000-07-25 Thread Philipp Auersperg


Thanks, due to a renaming the link was broken, I have fixed that now

phil
*** REPLY SEPARATOR  ***

On 25.07.2000 at 11:01 Jim Tittsler wrote:

On Sun, Jul 23, 2000 at 02:07:39PM +0200, Philipp Auersperg wrote:
 I've uploaded Znolk 0.1.1 to http://www.zope.org/Members/zwork with minor
 bug fixes and added support for ZPoPy connections.

The link to Znolk on that page appears to be broken.

Jim

-- 
Jim Tittsler, Tokyo
Python Starship http://starship.python.net/crew/jwt/




___
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] PCGI still not functional

2000-07-25 Thread Jens Vagelpohl

bill,

i saw the same symptoms this weekend when i helped a good friend set up
a zope box to serve some of his domains from. his machine runs RH 6.1.
what did it for me was to copy Zope.cgi from apache's cgi-bin directory
back into the root of the affected zope install, he has two instances
running. after doing that the problems went away.

i double-checked the file to see if it points to the wrong places, but
everything in there seemed OK otherwise.

jens



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Bill
 Anderson
 Sent: Tuesday, July 25, 2000 01:40
 To: [EMAIL PROTECTED]
 Subject: [Zope] PCGI still not functional
 
 
 
 OK, it isn't just me, I've gotten email from others having 
 this problem; unfortunately, I
 have had to tell them I still have it.
 
 I have tried using older pcgi code, I have tried the 
 PCGI_FDS_CLOSE=0 variable, and still,
 nothing seems to work right. The second method worked once, 
 but a reboot stopped that
 clean in it's tracks, and it doesn't work now. I've even 
 tried combining both of the
 above; no luck.
 
 In the 2.2betas, and in 2.1.6, I could use ZServer and PCGI, 
 but now, I get one or the
 other. Can someone at DC look into fixing this? We still get 
 unable to connect errors,
 _even_ if the pcgi.soc file is created.
 
 I am getting this on _every_ 2.2.0 final server I have. On 
 Linux and HPUX.
 
 Eagerly awaiting resolution ... 
 
 Bill
 
 --
 Do not meddle in the affairs of sysadmins, for they are easy to annoy,
 and have the root password.
 
 ___
 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] ZTopics breaks with 2.2?

2000-07-25 Thread Jonathan Cheyne

More than bothersome - I needed to upgrade to eliminate a zcatalog bug
and yet now the other half of my site doesnt work. Rock and a hard
place. I need to create a new fresh site then recreate all my zclasses
and then rekey all my instances? What will break next time?

Are there any alternatives to the ZTopic product? (that filter and nest
zcatalog entries)?

Jon

Bill Anderson wrote:
 
 Jonathan Cheyne wrote:
 
  Hi, can anyone confirm that the ZTopics product works after upgrading to
  2.2? I get an AttributeError for value Lexicon after migrating.
 
 The problem is the old Data.fs, it seems.
 
 I just created a new one, in a clean Data.fs, and it works fine.
 
 You may try uninstalling the ZTopics, and reinstalling, but I doubt it will work.
 
 This is something I am noticing with all my 'upgrades'. There are loads, and loads, 
of
 errors with the Data.fs, even though it loads the site. Has anyone else seen this? 
Try
 running with Debug turned on, and you can see them. Mainly they complain about 
'oid'. As a
 result, I am finding myself simply rebuilding some site, and personally, I find it 
quite
 bothersome. :^(
 
 Bill
 
 --
 Do not meddle in the affairs of sysadmins, for they are easy to annoy,
 and have the root password.

___
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] [FAQTS] ZOPE Knowledge Base Update -- July 25th, 2000

2000-07-25 Thread Fiona Czuczman


Hi Guys,

The latest entries to be entered into http://zope.faqts.com

regards,

Fiona Czuczman

Including:

- Where can I get performance statistics for Zope?
- Using Zope 2.2 and jcNTUserFolder 0.0.7. I installed a top level 
NTUserFolder and now I cannot login as superuser (or any user for that 
matter).
- How can I use a personal Python object in Zope?
- I log on as a superuser, when I try and make a new folder I get a Zope 
Error, why?


## New Entries #


-
Where can I get performance statistics for Zope?
http://www.faqts.com/knowledge-base/view.phtml/aid/5006
-
Fiona Czuczman
J. Atwood

Well, if you "ARE" anal about numbers try

http://www.zope.org/Members/BwanaZulia/zope_benchmarks/benchmarks.html

which has a lot of information. Zope is certainly not going to compare 
to any static webserver in terms of speed so I would not be upset when 
you see that it does not. It does, however, come out much faster than 
other things like Apache Tomcat.


-
Using Zope 2.2 and jcNTUserFolder 0.0.7. I installed a top level NTUserFolder and now 
I cannot login as superuser (or any user for that matter).
http://www.faqts.com/knowledge-base/view.phtml/aid/5005
-
Fiona Czuczman
Erik Myllymaki

Problem:

I am using Zope 2.2 and jcNTUserFolder 0.0.7. I just installed a top
level NTUserFolder and now I cannot login as superuser (or any user
for that matter). First of all, how do I get back into my Zope
management pages and second, what is wrong with jcNTUserFOlder (or what
did I do wrong?)?

I am running Zope standalone. My root user is mapped to a valid
administrator of my local NT Domain.

Solution:

OK, so I got in by changing the ntuserfolder.py file in my installation:

   def authenticate(self, password, request):
""" try to authenticate the user
"""
# HACK
return 1
# /HACK
.
.
.


-
How can I use a personal Python object in Zope?
How can I display (in html page) the results from a Python function?
http://www.faqts.com/knowledge-base/view.phtml/aid/5007
-
Fiona Czuczman
Holger Lehmann

Get the product PythonMethod from zope.org
(http://www.zope.org/Members/4am/PythonMethod) install an use it :-)

e.g.:

dtml-var standard-header
dtml-var myPythonScriptThatProducesHTMLOutput
dtml-var standard-footer


## Edited Entries ##


-
I'm running ZOPE with administrator privileges, when I try to create any objects I get 
an error message.
I log on as a superuser, when I try and make a new folder I get a Zope Error, why?
http://www.faqts.com/knowledge-base/view.phtml/aid/4968
-
Fiona Czuczman
waldemar,Chris McDonough

Error Message:

Zope Error

  Zope has encountered an error while publishing this resource.

  Error Type: SuperCannotOwn
  Error Value: Objects cannot be owned by the superuser

Answer:

You cannot add, copy or move objects as the superuser, but you can add 
users to a user folder and change permissions.  But there should be no 
permissions that need changing.  Make sure that you give the user the 
'Manager' role when you add a new user (while logged in as superuser).




___
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] user permissions

2000-07-25 Thread J. Michael Mc Kay

I just installed 2.2.  I read that the superuser account cannot edit or add
objects so I set up a user as manager and one as an owner.  The user
accounts are able to add objects but only the superuser account can see them
once they are added.

EX:
I am logged in as user Mike and add  edit a DTML Document.  I complete the
edit and choose change. When I'm returned to the contents the new document
is
not visible.  If I now log in as the superuser, everything is visible but,
of course, cannot be moved, added to, or copied and pasted.

So my question is "What have I not done correctly to have created this catch
22 situation.?"

- Original Message -
From: "Chris McDonough" [EMAIL PROTECTED]
To: "josh on" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, July 24, 2000 9:35 PM
Subject: Re: [Zope] user permissions


 No, that should do it.  You cannot add, copy or move objects as the
 superuser, but you can add users to a user folder and change
 permissions.  But there should be no permissions that need changing.
 Make sure that you give the user the 'Manager' role when you add a new
 user (while logged in as superuser).

 josh on wrote:
 
  I just installed 2.2 on win98.
 
  I log on as a superuser, and try and make a new folder an I get:
 
  Zope Error
  
 Zope has encountered an error while publishing this
resource.
  
 Error Type: SuperCannotOwn
 Error Value: Objects cannot be owned by the superuser
 
  So I used to do that I thought.  I tried to make a new acl user, but
  couldn't log in with that name password combo.  I saw that webmaster
asked
  this a couple of days ago, but I saw no answer.
 
  Am I being dumb and missing the obvious?  Do I need to go and read some
how
  to about users and permissions?
 
  any help would be great.
 
  josh on
 
  ___
  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] user permissions

2000-07-25 Thread Chris McDonough

I've never heard of anything like this.

What roles does "Mike" have?  What *does* show up in the Contents screen
for "Mike"?

 -Original Message-
 From: J. Michael Mc Kay [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 25, 2000 10:02 AM
 To: Chris McDonough; josh on
 Cc: [EMAIL PROTECTED]
 Subject: Re: [Zope] user permissions
 
 
 I just installed 2.2.  I read that the superuser account 
 cannot edit or add
 objects so I set up a user as manager and one as an owner.  The user
 accounts are able to add objects but only the superuser 
 account can see them
 once they are added.
 
 EX:
 I am logged in as user Mike and add  edit a DTML Document.  
 I complete the
 edit and choose change. When I'm returned to the contents the 
 new document
 is
 not visible.  If I now log in as the superuser, everything is 
 visible but,
 of course, cannot be moved, added to, or copied and pasted.
 
 So my question is "What have I not done correctly to have 
 created this catch
 22 situation.?"
 
 - Original Message -
 From: "Chris McDonough" [EMAIL PROTECTED]
 To: "josh on" [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Monday, July 24, 2000 9:35 PM
 Subject: Re: [Zope] user permissions
 
 
  No, that should do it.  You cannot add, copy or move objects as the
  superuser, but you can add users to a user folder and change
  permissions.  But there should be no permissions that need changing.
  Make sure that you give the user the 'Manager' role when 
 you add a new
  user (while logged in as superuser).
 
  josh on wrote:
  
   I just installed 2.2 on win98.
  
   I log on as a superuser, and try and make a new folder an I get:
  
   Zope Error
   
  Zope has encountered an error while publishing this
 resource.
   
  Error Type: SuperCannotOwn
  Error Value: Objects cannot be owned by the superuser
  
   So I used to do that I thought.  I tried to make a new 
 acl user, but
   couldn't log in with that name password combo.  I saw 
 that webmaster
 asked
   this a couple of days ago, but I saw no answer.
  
   Am I being dumb and missing the obvious?  Do I need to go 
 and read some
 how
   to about users and permissions?
  
   any help would be great.
  
   josh on
  
   ___
   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] user permissions

2000-07-25 Thread Webmaster

My installation is on RH Linux, however it sounds to me like you are having
the same problem.

I am no longer having the problem and the voodoo I doodood to get it working
seems like a bad dream now.

I created a simple user name "bob" and a one character password (I'm pretty
sure it was "1"). I then closed and reopened Netscape and logged in as "bob"
and it worked. I then created a second "manager" username and gave it a
regular password and it work like it should have the first time. 

Of course all this happened after trying every conceivable incarnation of
usernames and passwords (two and three character passwords did NOT work),
stomping around my office, slamming doors and cursing everyone on the list
that did not answer my postS ;-) 

Hope this helps!!

Jamey


 -Original Message-
 From: josh on [SMTP:[EMAIL PROTECTED]]
 Sent: Monday, July 24, 2000 9:10 PM
 To:   [EMAIL PROTECTED]
 Subject:  [Zope] user permissions
 
 I just installed 2.2 on win98.
 
 I log on as a superuser, and try and make a new folder an I get:
 
 Zope Error
 
Zope has encountered an error while publishing this resource.
 
Error Type: SuperCannotOwn
Error Value: Objects cannot be owned by the superuser
 
 So I used to do that I thought.  I tried to make a new acl user, but
 couldn't log in with that name password combo.  I saw that webmaster asked
 this a couple of days ago, but I saw no answer.
 
 Am I being dumb and missing the obvious?  Do I need to go and read some
 how
 to about users and permissions?
 
 any help would be great.
 
 josh on
 
 
 ___
 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] a little problem for your incredible intelligence ....

2000-07-25 Thread dsergent


 I want to use the ptk product, and I have the fool dream that I can
customyze it I explain, for a little test I want to add a ZCalendar in
the index_html of a user. I want to add this possibility in the left menu
of the ptk (where are the different item like "my stuff" ) and when the
user click on it, a ZCalendar would be added on his index_html page. But I
don't know where is the menu, and how to add anything to it. Another
problem is, how to get a DTML document in a ZOPE application and how can I
change it (add a little script line). I know that I request for the moon,
but if anyone can give me a little help for a part of my dream  I
promise that I will improve my english :oþ (I'm only a little french which
try to ask a question )

thanks for your help

David Sergent
[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] user permissions

2000-07-25 Thread J. Michael Mc Kay

Sounds stupido, but I logged on to zope today as the user and can see and do
all.  I really don't get it.  I tried over and over yesterday to get things
working to no avail.  Today, without having logged in previously I added
products.Zcommerce and Session.  Restarted Zope.
I just recieved your mail so I decided to go through all the motions again
from yesterday to tell you exactly what I was doing.  I log in and it is
working fine.

Doh


- Original Message -
From: "Chris McDonough" [EMAIL PROTECTED]
To: "'J. Michael Mc Kay'" [EMAIL PROTECTED]; "Chris McDonough"
[EMAIL PROTECTED]; "josh on" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, July 25, 2000 10:43 AM
Subject: RE: [Zope] user permissions


 I've never heard of anything like this.

 What roles does "Mike" have?  What *does* show up in the Contents screen
 for "Mike"?

  -Original Message-
  From: J. Michael Mc Kay [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, July 25, 2000 10:02 AM
  To: Chris McDonough; josh on
  Cc: [EMAIL PROTECTED]
  Subject: Re: [Zope] user permissions
 
 
  I just installed 2.2.  I read that the superuser account
  cannot edit or add
  objects so I set up a user as manager and one as an owner.  The user
  accounts are able to add objects but only the superuser
  account can see them
  once they are added.
 
  EX:
  I am logged in as user Mike and add  edit a DTML Document.
  I complete the
  edit and choose change. When I'm returned to the contents the
  new document
  is
  not visible.  If I now log in as the superuser, everything is
  visible but,
  of course, cannot be moved, added to, or copied and pasted.
 
  So my question is "What have I not done correctly to have
  created this catch
  22 situation.?"
 
  - Original Message -
  From: "Chris McDonough" [EMAIL PROTECTED]
  To: "josh on" [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Sent: Monday, July 24, 2000 9:35 PM
  Subject: Re: [Zope] user permissions
 
 
   No, that should do it.  You cannot add, copy or move objects as the
   superuser, but you can add users to a user folder and change
   permissions.  But there should be no permissions that need changing.
   Make sure that you give the user the 'Manager' role when
  you add a new
   user (while logged in as superuser).
  
   josh on wrote:
   
I just installed 2.2 on win98.
   
I log on as a superuser, and try and make a new folder an I get:
   
Zope Error

   Zope has encountered an error while publishing this
  resource.

   Error Type: SuperCannotOwn
   Error Value: Objects cannot be owned by the superuser
   
So I used to do that I thought.  I tried to make a new
  acl user, but
couldn't log in with that name password combo.  I saw
  that webmaster
  asked
this a couple of days ago, but I saw no answer.
   
Am I being dumb and missing the obvious?  Do I need to go
  and read some
  how
to about users and permissions?
   
any help would be great.
   
josh on
   
___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )
  
   ___
   Zope maillist  -  [EMAIL PROTECTED]
   http://lists.zope.org/mailman/listinfo/zope
   **   No cross posts or HTML encoding!  **
   (Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )
  
  
 

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




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




[Zope] Your feedback: what should DateTime strftime() behavior be?

2000-07-25 Thread Brian Lloyd

Hi all -

There has recently been some confusion over the expected 
behavior of various approaches to DateTime formatting in 
Zope regarding timezone representation. I would like to 
resolve this for the next release by making a proposal 
and asking you to reply to the list with a "vote":

  +1 == agree

  +/-0 == no strong opinion

  -1 == disagree

 
So then, here is the situation. In Zope 2.2 (and earlier), 
formatting a date using either:

  dtml-var theDate fmt="%A, %B %d %Y, %H:%M:%S"

  dtml-var "theDate.strftime('%A, %B %d %Y, %H:%M:%S')"

...would give you the date *formatted based on GMT rather than 
the timezone (usually local) representation of the object*. 
Simply doing:

  dtml-var theDate

...however, would print the date in the current timezone of 
the datetime object.

Many feel that this difference is unintuitive and a pain. The 
proposal is that both:

  dtml-var theDate fmt="%A, %B %d %Y, %H:%M:%S"

  dtml-var "theDate.strftime('%A, %B %d %Y, %H:%M:%S')"

...would be changed to apply the format to the current TZ 
representation of the object rather than convert to GMT. Of 
course, this could be a problem if there are people currently 
counting on the output being GMT, which is why we're putting it 
to a vote. If this change is made for 2.2.1, those who still 
wanted the output in GMT could just call the 'toZone()' method 
of the datetime object to get a GMT version before formatting:

  dtml-var "theDate.toZone('GMT').strftime('%A, %B %d %Y, %H:%M:%S')"


What do you think?


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] Your feedback: what should DateTime strftime() behavior be?

2000-07-25 Thread Steve Drees

 ...would be changed to apply the format to the current TZ 
 representation of the object rather than convert to GMT. 


+1

Actually +10 but that wasn't an option.



___
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] ZTopics and 2.2 - solved.

2000-07-25 Thread Jonathan Cheyne


Just a follow up after much gnashing. I deleted the old catalog and
recreated. I also noticed that some ztopics displayed whilst others did
not (these are original ones not new). I tracked the difference to field
types in the catalog. the catalog is less tolerent of sloppy setups i
think - so i deleted an index and recreated as a different field type and
bingo - no probs.

Hope this makes sense.

Cheers

Jonathan


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




[Zope] frustrating security problem

2000-07-25 Thread joel grimes

I imagine this topic has been thoroughly gone over, but I didn't catch it so 
I'm pulling my hair out.

I'm using Zope 2.2 (upgraded yesterday) on a Win98 box.  I have a ZSQL 
Method that allows me to view data from an Access database.  But when I try 
to create a Search Interface for that ZSQL Method, I'm asked for a login and 
password before I can view it and NONE of my logins work.  The interface IS 
created and I can edit it, I just can't view it.

I only have 2 users.  The superuser and the one that created the ZSQL Method 
AND Search Interface.

What am I missing?

joel grimes
[EMAIL PROTECTED]


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] Your feedback: what should DateTime strftime() behavior be?

2000-07-25 Thread Nick Garcia

Brian Lloyd wrote:
 
 What do you think?

+1

-- 
Nick Garcia | [EMAIL PROTECTED]
CodeIt Computing | http://codeit.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] Your feedback: what should DateTime strftime() behavior be?

2000-07-25 Thread Andy McKay

+1


- Original Message - 
From: "Brian Lloyd" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 25, 2000 8:35 AM
Subject: [Zope] Your feedback: what should DateTime strftime() behavior be?


 Hi all -
 
 There has recently been some confusion over the expected 
 behavior of various approaches to DateTime formatting in 
 Zope regarding timezone representation. I would like to 
 resolve this for the next release by making a proposal 
 and asking you to reply to the list with a "vote":
 
   +1 == agree
 
   +/-0 == no strong opinion
 
   -1 == disagree
 
  
 So then, here is the situation. In Zope 2.2 (and earlier), 
 formatting a date using either:
 
   dtml-var theDate fmt="%A, %B %d %Y, %H:%M:%S"
 
   dtml-var "theDate.strftime('%A, %B %d %Y, %H:%M:%S')"
 
 ...would give you the date *formatted based on GMT rather than 
 the timezone (usually local) representation of the object*. 
 Simply doing:
 
   dtml-var theDate
 
 ...however, would print the date in the current timezone of 
 the datetime object.
 
 Many feel that this difference is unintuitive and a pain. The 
 proposal is that both:
 
   dtml-var theDate fmt="%A, %B %d %Y, %H:%M:%S"
 
   dtml-var "theDate.strftime('%A, %B %d %Y, %H:%M:%S')"
 
 ...would be changed to apply the format to the current TZ 
 representation of the object rather than convert to GMT. Of 
 course, this could be a problem if there are people currently 
 counting on the output being GMT, which is why we're putting it 
 to a vote. If this change is made for 2.2.1, those who still 
 wanted the output in GMT could just call the 'toZone()' method 
 of the datetime object to get a GMT version before formatting:
 
   dtml-var "theDate.toZone('GMT').strftime('%A, %B %d %Y, %H:%M:%S')"
 
 
 What do you think?
 
 
 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 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] ZClasses to RDBMS

2000-07-25 Thread Satheesh Babu

Hi,

Is there any recommended way to get data from ZClass instances to a
corresponding
RDBMS (Oracle 8i specifically) table?

What I could think of as options are: (I've'nt tried out any!)
1.  In manage_add for my Zclass call the corresponding ZSQL insert method
 - Can this be done?
 - What can be done for updates?
2.  Create masking DTML methods to create Zclass instances dynamically.
 Call ZSQL methods alongside as well.
3.  Do periodic downloads of ZClass instances - say XML format - and batch
 upload to database.

Why I need this?
1. I need to make a RDBMS driven system for managing content. I don't want
to use Zope's
ZODB for storing important content, because of these reasons:
1. It can quickly grow up to 2GB and much more
2. It needs to store and SEARCH through binary documents (Oracle can do
this easily)
3. The way site is to be build from DBMS contents has to be / can be
different - ASP, PHP or Java
 Even a 100% static site might be a requirement.
2. I've tried with ZODB3 with data upto 500MB and it is kind of shaky (was
on an NT4 server. don't
ask me, if it was my decision, I would've picked up linux!).
 H/W: Compaq dual PIII 500MHz server with NT4, SP5 (or 6, I don't
remember. The latest one).
 512MB RAM and 1GB Virtual memory.

 With RDBMS, we've DBA's and good SQL programmers, so data recovery is
much
 more easier. Also, I really don't need much of versioning or undo
capabilities.

It also brings up another solution, make an Oracle storage along the lines
of Interbase storage,
hook up ZCatalog to Oracle's interMedia search. Two problems - I'm little
tight on time, and
DCOracle's support for BLOBs are not yet tried out. I plan to start on this
soon anyway.
So, any suggestion for this would be greatly appreciated.

Note to DC:
I love Zope and I would say it is anyday better than these Java
appservers, to code, to maintain
and to train people. But, lack of any industry strength RDBMS storage is
really a big problem in
selling to suits.

[EMAIL PROTECTED]
http://vsbabu.csoft.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 )




[Zope] App isolation

2000-07-25 Thread Jacques Exelrud

Not sure if this list is the best place to put such question but here it
is...

I need to develop what would be a product if only Zope was the target.
As it´s not I was thinking what could I do to not need to build such app
twice:
I came to 2 options both involving building a server of some kind and
using Python to connect to this server.

1st
Build the app as a COM server (the target OS is Windows) and using
Python support build an interface to this COM server as a Zope product

2nd
Build the app as a XMLRPC server and using Python support build an
interface to this XMLRPC server

The second options is better because I´m not attached to any platform
but, as I said, that´s not an issue right now.

Any sugestions on any of those or a 3rd option ?

Thanks in advance,

Jacques



___
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] Your feedback: what should DateTime strftime() behavior be?

2000-07-25 Thread Chris Withers

+1

I've said a lot on this already ;-)

Chris

On Tue, 25 Jul 2000, Brian Lloyd wrote:

 Hi all -
 
 There has recently been some confusion over the expected 
 behavior of various approaches to DateTime formatting in 
 Zope regarding timezone representation. I would like to 
 resolve this for the next release by making a proposal 
 and asking you to reply to the list with a "vote":
 
   +1 == agree
 
   +/-0 == no strong opinion
 
   -1 == disagree
 
  
 So then, here is the situation. In Zope 2.2 (and earlier), 
 formatting a date using either:
 
   dtml-var theDate fmt="%A, %B %d %Y, %H:%M:%S"
 
   dtml-var "theDate.strftime('%A, %B %d %Y, %H:%M:%S')"
 
 ...would give you the date *formatted based on GMT rather than 
 the timezone (usually local) representation of the object*. 
 Simply doing:
 
   dtml-var theDate
 
 ...however, would print the date in the current timezone of 
 the datetime object.
 
 Many feel that this difference is unintuitive and a pain. The 
 proposal is that both:
 
   dtml-var theDate fmt="%A, %B %d %Y, %H:%M:%S"
 
   dtml-var "theDate.strftime('%A, %B %d %Y, %H:%M:%S')"
 
 ...would be changed to apply the format to the current TZ 
 representation of the object rather than convert to GMT. Of 
 course, this could be a problem if there are people currently 
 counting on the output being GMT, which is why we're putting it 
 to a vote. If this change is made for 2.2.1, those who still 
 wanted the output in GMT could just call the 'toZone()' method 
 of the datetime object to get a GMT version before formatting:
 
   dtml-var "theDate.toZone('GMT').strftime('%A, %B %d %Y, %H:%M:%S')"
 
 
 What do you think?
 
 
 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 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] REQUEST a string object?

2000-07-25 Thread Dieter Maurer

Rob Miller writes:
  table
  dtml-call "REQUEST.set('ctr', 0)"
  dtml-in "fileValues(REQUEST.get('spec', _.None))"
  
  dtml-call "REQUEST.set('ctr', _.int(ctr) + 1)"
  
There are "sequence-index" and "sequence-number" variables
defined by "dtml-in". Thus, you need not count yourself.
Note: use as "_['sequence-*']" inside "...".

  The error I get, running Zope in debug mode, is this:
  
 Error Type: AttributeError
 Error Value: 'string' object has no attribute 'set'
Is is possible that some of your folders has
a REQUEST property or acquires it?



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] Your feedback: what should DateTime strftime() behavior be?

2000-07-25 Thread Rob Miller

+1

On Tue, 25 Jul 2000, Brian Lloyd wrote:
 Hi all -
 
 There has recently been some confusion over the expected 
 behavior of various approaches to DateTime formatting in 
 Zope regarding timezone representation. I would like to 
 resolve this for the next release by making a proposal 
 and asking you to reply to the list with a "vote":
 
   +1 == agree
 
   +/-0 == no strong opinion
 
   -1 == disagree
 
  
 So then, here is the situation. In Zope 2.2 (and earlier), 
 formatting a date using either:
 
   dtml-var theDate fmt="%A, %B %d %Y, %H:%M:%S"
 
   dtml-var "theDate.strftime('%A, %B %d %Y, %H:%M:%S')"
 
 ...would give you the date *formatted based on GMT rather than 
 uthe timezone (usually local) representation of the object*. 
 Simply doing:
 
   dtml-var theDate
 
 ...however, would print the date in the current timezone of 
 tthe datetime object.
 
 Many feel that this difference is unintuitive and a pain. The 
 proposal is that both:
 
   dtml-var theDate fmt="%A, %B %d %Y, %H:%M:%S"
 
   dtml-var "theDate.strftime('%A, %B %d %Y, %H:%M:%S')"
 
 ...would be changed to apply the format to the current TZ 
 rrepresentation of the object rather than convert to GMT. Of 
 course, this could be a problem if there are people currently 
 counting on the output being GMT, which is why we're putting it 
 to a vote. If this change is made for 2.2.1, those who still 
 wanted the output in GMT could just call the 'toZone()' method 
 of the datetime object to get a GMT version before formatting:
 
   dtml-var "theDate.toZone('GMT').strftime('%A, %B %d %Y, %H:%M:%S')"
 
 
 What do you think?
 
 
 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 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] Your feedback: what should DateTime strftime() behavior be?

2000-07-25 Thread Tim Cook

+1

-- Tim Cook --
FreePM Project Coordinator - http://www.freepm.org
OS Healthcare Alliance Supporter - http://www.oshca.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] DCOracle on WinNT

2000-07-25 Thread m_bukovjan

Anyone has a hint how to compile the DCOracle on WinNT?

I was successful in compiling this on Linux.
Now I have to deploy this on Windows NT, I use Cygwin, but the compilation
process complains that there is no {$PYTHON_PATH}/lib/python1.5/config/Makefile.

On RedHat, I get this Makefile with python-devel package.
Where do I get it with Windows? It is not installed by default.

Thanks,

Michal Bukovjan

___
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] frustrating security problem

2000-07-25 Thread jacques

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of joel
 grimes
 Sent: terça-feira, 25 de julho de 2000 13:55
 To: [EMAIL PROTECTED]
 Subject: [Zope] frustrating security problem


[snip]

 What am I missing?

Nothing.
Check http://lists.zope.org/pipermail/zope/2000-July/029375.html

Jacques


___
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] Your feedback: what should DateTime strftime() behavior be?

2000-07-25 Thread Dan L. Pierson

+1

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




[Zope] Interbase 6.0 Open Source Release

2000-07-25 Thread Jeff K. Hoffman

Hello,

I just wanted to let everyone know that Interbase 6.0 has just been
released as Open Source. Check out:

  http://www.borland.com/interbase/index.html

If you need a high-quality, enterprise class RDBMS for Zope I suggest you
download both Interbase 6.0 and our Zope DA, gvibDA. It is a truly nice
setup.

Let us know if you find any bugs, or if there are some new features you'd
like to see added. We expect to make a 1.0 release of our DA next week,
once we've had a chance to test against 6.0 final.

Back to our regular programming,

--Jeff

---
Jeff K. Hoffman   704.849.0731 x108
Chief Technology Officer  mailto:[EMAIL PROTECTED]
Going Virtual, L.L.C. http://www.goingv.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] Your feedback: what should DateTime strftime() behavior be?

2000-07-25 Thread Spicklemire, Jerry

+1


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




Re: [Zope] Product Import

2000-07-25 Thread Chris Herrnberger

Nubie Question;

Why is it that some .zexp products will install seamlessly in the mangement
screen and others generate errors as file not found when the file clearly
exists in the import directory Is there a standard persmission set that must
be followed or is there something else that Im missing. The test system is
install in my home dir with permission set to -u username -g users This is not
the correct install procedure but is simply used for ease of installation and
learning purposes.

Any info would be appreciated.

tia

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] Using MySQL with ODBC causes re-authentification of Zope on WIN2000

2000-07-25 Thread Richard S Herrington


Here is a perplexing problem I am experiencing.  First, I was able to
compile the MySQL database adapter (MySQLdb) for WIN2000 and connect
successfully to a database I set up on Windows.  I set up a ZSQL method to
return rows from the database.  Then I set up a DTML method to iterate
over the rows and fill a html page using "dtml-in" to receive records from
the ZSQL method:

...snip...snip...
dtml-in sqlQuery
dtml-var last-name
dtml-var first-name
/dtml-in
...snip...snip

This worked fine.  Next, I was able to connect with a MicroSoft Access
database using an ODBC method.  Then I did the same as before.  Create a
ZSQL method (e.g. sqlQuery), then iterate over these rows with a "dtml-in"
tag, filling an html page.

Now here's my problem.  When I set up a MySQL ODBC connection.  The ZSQL
method by itself returns rows from the database just fine.  However when I
access the index_html page that contains the "dtml-in" tags.it causes
a prompt to reauthenticate to Zope (username and password).  No known
username and password will work.  I set all my MySQL permissions properly
as far as I know.

I've scoured the archvies but have found nothing.  I need some leads as to
what to try.  Thanks in advance.


Rich Herrington 
University of North Texas
Academic Computing Services 
Research and Statistical Support
Voice: 940 565 2140
Email: [EMAIL PROTECTED]

"You live and learn.  At any rate, you live." -- Douglas Adams 

"Where is the knowledge that is lost in information?  Where is the wisdom
 that is lost in knowledge?"
T.S. Eliot

"Whenever I have a little money I buy books; if there's any left over, I
buy food and clothes."
  Erasmus

"It is impossible for a man to learn what he thinks he already knows." 

   Epictetus (50-138 A.D.) 

"True wisdom is less presuming than folly. The wise man doubteth often,
and changeth his mind; the fool is obstinate, and doubteth not; he knoweth
all things but his own ignorance." 
  Akhenaton? (c. B.C. 1375) 

"Happiness is the absence of the striving for happiness." 

  Chuang-tzu (fl. B.C. 350) 


___
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] Your feedback: what should DateTime strftime() behaviorbe?

2000-07-25 Thread Svante Kleist

+1


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




Re: [Zope] PCGI still not functional

2000-07-25 Thread Bill Anderson

Jens Vagelpohl wrote:
 
 bill,
 
 i saw the same symptoms this weekend when i helped a good friend set up
 a zope box to serve some of his domains from. his machine runs RH 6.1.
 what did it for me was to copy Zope.cgi from apache's cgi-bin directory
 back into the root of the affected zope install, he has two instances
 running. after doing that the problems went away.
 
 i double-checked the file to see if it points to the wrong places, but
 everything in there seemed OK otherwise.

Thanks for the effort. I don't run apache though ;^)

--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
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] ZClasses to RDBMS

2000-07-25 Thread Steve Alexander


Satheesh Babu wrote:

 Is there any recommended way to get data from ZClass instances to a
 corresponding RDBMS (Oracle 8i specifically) table?

 What I could think of as options are: (I've'nt tried out any!)
 1.  In manage_add for my Zclass call the corresponding ZSQL insert method
  - Can this be done?
  - What can be done for updates?
 2.  Create masking DTML methods to create Zclass instances dynamically.
  Call ZSQL methods alongside as well.
 3.  Do periodic downloads of ZClass instances - say XML format - and batch
  upload to database.

This sounds like a job for ZPatterns:

  http://www.zope.org/Members/pje/ZPatterns

Most people find ZPatterns a bit difficult to get started with. It is
also alpha-release software, so *caveat emptor*.

Read the ZPatterns wiki too.

  http://www.zope.org/Members/pje/Wikis/ZPatterns/HomePage

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.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 )




[Zope] new wiki functionality/zope.org issues

2000-07-25 Thread Simon Michael

Hi Ethan,

ethan mindlace fremen [EMAIL PROTECTED] writes:
  o Wikis are now searchable - and they have history,
  
  Yay! where can we see this ?
 
 Search for anything.  If the icon is a white page with a bunch of funny
 black squiggies, that's a zWiki page :)

Yah I found the zwiki pages alright :) but couldn't find any trace of
the new search or history functionality ? 

I've been a bit out of touch so forgive me if this is documented
somewhere obvious. A few more comments:

2. a search for "test" found WikiNG,
http://www.zope.org//Wikis/DevSite/Proposals/WikiNG which gives an
error, attached.

3. looks like you're gathering at least some of the wikis into
/Wikis/* .. nice mnemonic url. Could you make http://zope.org/Wikis
give a list/overview ? or an alias to wikicentral.

4. could we auto-login with cookies like eg slashdot ? I'm never
logged in when I need to edit a wiki and doing so is quite disruptive.
And, or, make the login page auto-redirect back to where I came from.

It's great to have someone visible and active working on this stuff -
thanks,

-Simon



Traceback (innermost last):
  File /usr/local/dc/Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 222, in 
publish_module
  File /usr/local/dc/Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 187, in publish
  File /usr/local/dc/Zope-2.2.0/lib/python/Zope/__init__.py, line 221, in 
zpublisher_exception_hook
(Object: ElementWithAttributes)
  File /usr/local/dc/Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 171, in publish
  File /usr/local/dc/Zope-2.2.0/lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: WikiNG)
  File /usr/local/dc/Zope-2.2.0/lib/python/ZPublisher/Publish.py, line 112, in 
call_object
(Object: WikiNG)
  File /usr/local/dc/org/Products/ZWiki/ZWikiPage.py, line 150, in __call__
(Object: WikiNG)
  File /usr/local/dc/Zope-2.2.0/lib/python/OFS/DTMLMethod.py, line 167, in __call__
(Object: standard_wiki_header)
  File /usr/local/dc/Zope-2.2.0/lib/python/DocumentTemplate/DT_String.py, line 502, in 
__call__
(Object: standard_wiki_header)
  File /usr/local/dc/Zope-2.2.0/lib/python/OFS/DTMLMethod.py, line 163, in __call__
(Object: standard_html_header)
  File /usr/local/dc/Zope-2.2.0/lib/python/DocumentTemplate/DT_String.py, line 502, in 
__call__
(Object: standard_html_header)
KeyError: www_base



[Zope] calling a subquery

2000-07-25 Thread danchik

Is it possible to refer to ZSQL method from some other ZSQL method and
how???

each ZSQL is big and would be very expensive to put as a subquery of another
so can I do something like this:

say one is named ZSQL1: Select Mykey from Data where key  100
and the other is ZSQL2: Select * from ZSQL1 INNER JOIN MoreData ON
ZSQL1.Mykey = MoreData.key





___
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: Where should votes be posted? (was: Your feedback on datetime)

2000-07-25 Thread Steve Alexander

Brian Lloyd wrote:
 
  Do we *have* to clutter this [EMAIL PROTECTED] list up with loads
  of votes?
 
  It is high enough traffic as it is!
 
 That is a good point. My initial reaction is to say that
 maybe voting should only be done on zope-dev, but I worry
 a bit that there may be quite a few people on the zope list
 (and not on zope-dev) who would have a stake in an issue and
 end up not seeing (or voting) on it.

I agree there.

 Ideally I'll have a web-based voting thing on dev.zope.org
 so that only one pointer to it has to go to the list(s), but
 until then I propose that votes happen on zope-dev for the
 time being...

Sorry that I wasn't very clear. My point is whether everyone has to mail
their votes to the list, or whether they can just mail them to you. You
collate the votes and post the result to the list after a period of
time.

But then, perhaps people like seeing how popular the proposal is, in
real time :-)

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.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] REQUEST a string object?

2000-07-25 Thread Rob Miller

On Tue, 25 Jul 2000, Dieter Maurer wrote:
 Rob Miller writes:
   table
   dtml-call "REQUEST.set('ctr', 0)"
   dtml-in "fileValues(REQUEST.get('spec', _.None))"
   
   dtml-call "REQUEST.set('ctr', _.int(ctr) + 1)"
   
 There are "sequence-index" and "sequence-number" variables
 defined by "dtml-in". Thus, you need not count yourself.
 Note: use as "_['sequence-*']" inside "...".

I don't think this works for me though, because I don't want to count all of
the sequence items, just the ones that match a certain criterion. 
Specifically, I'm stepping through all of the files in a directory, but I'm
only displaying (and thus counting) the ones that are themselves directories. 
Is there a way to leverage the "sequence-" variables to help me here?

 
   The error I get, running Zope in debug mode, is this:
   
  Error Type: AttributeError
  Error Value: 'string' object has no attribute 'set'
 Is is possible that some of your folders has
 a REQUEST property or acquires it?

No, that's not the case.  Nice thought, though.

I've discovered (with Jonothan Farr's help) that the problem doesn't occur in
Zope 2.1.6, only in 2.2.0.  This leads me to think that a) it's a new bug in
2.2.0 I've uncovered or b) there's something different about the way Zope 2.2.0
handles the REQUEST object that I need to understand and account for.

I've discovered (quite by accident) that an attempt to add a Squishdot
installation (Squishdot-0-4-1) into Zope 2.2.0 generates the same error that my
code generates.  There's a note on the Squishdot page that indicates that they
know it doesn't yet work with 2.2.0, and that it will soon be resolved (by
Squishdot-0-4-4, they promise).  There's no indication, though, of whether the
Squishdot author(s) know what the problem is at this point.

I'm considering making a post to Zope-dev describing the problem and asking if
anyone knows whether this is a feature or a bug that I'm bumping into.

rob

(p.s.  I've just had a thought that I might be able to force the
dtml-in loop to sort the files by type, which would at least guarantee that
all of the directories would be consecutive.  I could also maybe construct a
new list of just the directories and then iterate over the new list.  Either of
these may allow me to use the "sequence-" values constructively.  I want to
learn what's going on here, though, and I'd rather not have to resort to
complicating my algorithms.  Counting stuff is a basic programming task, it
should be able to be accomplished in a straightforward manner.)

___
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] frustrating security problem

2000-07-25 Thread joel grimes


 
[snip]
 
  What am I missing?
 
   Nothing.
   Check http://lists.zope.org/pipermail/zope/2000-July/029375.html

   Jacques

Following that link I found the text of RDB.py but there seems to be a lot 
of codes in it that I'd need to replace with something (=0A= and =3, etc.)- 
being new to python as well as zope, I don't know what to replace them with. 
  Here's an example:

% _def, names[i])=0A=
type=3Dlower(defre.group(2))=0A=
width=3Ddefre.group(1)=0A=
if width: width=3Datoi(width)=0A=
else: width=3D8=0A=


Don't look quite right to me.  I assume I can just strip =0A=, is =3D just a 
space?

Alternately, is there somwhere I can download the entire RDB.py?  A search 
of www.zope.org for RDB.py turned up nothing.

Thanks,

Joel Grimes
[EMAIL PROTECTED]


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] Re: Where should votes be posted? (was: Your feedback on datetime)

2000-07-25 Thread rgines



Where is that ZVoting class when you need one ... grin.

I'd say this belongs within a member page with a pointer in the mail list
to the 'voting booth'.

Result could then be posted here.

Just my two cents worth.


Brian Lloyd wrote:

  Do we *have* to clutter this [EMAIL PROTECTED] list up with loads
  of votes?
 
  It is high enough traffic as it is!





___
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] Limiting folder space

2000-07-25 Thread Brendon Grunewald

I want to use Zope to offer registered visitors to my site a little free
webspace on the site. Since I use hosting service that restricts and charges
me for space, I would like to restrict the size that their zope folders can
consume.

Hence:
Is there any simple way of limiting the amount of space that a folder is
allowed to consume including its subfolders? Alternatively, is there anyway
of checking how much space a folder with subfolders consumes?

Regards,
Brendon
--
70South: the No.1 source for Antarcticles.
For the latest news and views on Antarctica visit : http://www.70south.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] zzLocale 0-0-3a released on Zope Japan

2000-07-25 Thread Johan Carlsson


Yves-Eric,
Brilliant product!
Are there any plans on expanding the framework to include
python embedded strings.
I know it's would be hard to identify all strings in Zope itself,
but providing a framework would encurage python product 
developers that care about i18n and give them a perferd method.

Best Regards,
Johan Carlsson

 
 
  Hi Zopistas,
  
  
  This is the second alpha release of zzLocale, a Zope locale support
  Product.
  
  zzLocale provides a framework for Zope interface internationalization
  (Zope and Products management screens). The localization is done on a
  per request basis, which allows developers from different countries to
  work on the same Zope while each of them having an interface in his
  native language.
  
  With zzLocale, Product developers can easily provide localized
  interfaces for their Products. All that is needed is to put the
  localized interface DTML templates in a "locales/[lang]" subdirectory of
  the Product, and zzLocale does the rest.
  
  This version of zzLocale is pretty useable, and usually falls back
  nicely when something goes wrong. However, it is still alpha, and we
  would not recommend using it on a production server.
  
  This release includes a complete (I mean, as complete as current
  zzLocale features permit) French interface, and a partial Japanese one.
  Tranlators are welcome to provide other languages. Please send us your
  translated templates so that we can include them in the next release.
  
  
For more information and download:
  http://www.zope.ne.jp/users/yemartin/zzLocale
  
  
  
Regards,
  
  
  -- 
  Yves-Eric Martin
  Digital Garage Inc.
  [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 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] namespace and PARENTS doubt

2000-07-25 Thread Fabio Akita

Hi again

That may be a simple doubt but that´s it:

dtml-with "_.namespace( parameter = 'folder1' )"
 dtml-with "_['PARENTS[1].' + _['parameter'] + '.folder']"
   'commands' 
 /dtml-with
/dtml-with

The above statement just doesn´t work. The 'parameter' is a DTML variable in
the global namespace.

But if I try:

dtml-with "PARENTS[1].folder1.folder"
/dtml-with

That will work. What I am trying to do is to execute the "
'commands'." above for lot´s of 'parameter' folders. But the
_['PARENTS[1].' + 'something'] trick doesn´t work. Is there another way to
make the first statement work?

(maybe I was a bit confusing here, I hope you understand the problem)

Regards


___
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] namespace and PARENTS doubt

2000-07-25 Thread Chris McDonough

Untested:

dtml-let level1="_.getitem(PARENTS[1], 'folder1')"
level2="_.getitem(level1, 'folder')"
  dtml-with level2
   ...commands..
  /dtml-with
/dtml-let

 -Original Message-
 From: Fabio Akita [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 25, 2000 5:46 PM
 To: [EMAIL PROTECTED]
 Subject: [Zope] namespace and PARENTS doubt
 
 
 Hi again
 
 That may be a simple doubt but that´s it:
 
 dtml-with "_.namespace( parameter = 'folder1' )"
  dtml-with "_['PARENTS[1].' + _['parameter'] + '.folder']"
    'commands' 
  /dtml-with
 /dtml-with
 
 The above statement just doesn´t work. The 'parameter' is a 
 DTML variable in
 the global namespace.
 
 But if I try:
 
 dtml-with "PARENTS[1].folder1.folder"
 /dtml-with
 
 That will work. What I am trying to do is to execute the "
 'commands'." above for lot´s of 'parameter' folders. But the
 _['PARENTS[1].' + 'something'] trick doesn´t work. Is there 
 another way to
 make the first statement work?
 
 (maybe I was a bit confusing here, I hope you understand the problem)
 
 Regards
 
 
 ___
 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] Probably Zope Bug (was: Re: [Zope] all DTML Methods of current folder and subfolder)

2000-07-25 Thread Dieter Maurer

Jerome Alet writes:
  Thanks to you, the syntax you gave me is accepted by the dtml parser, but
  both
  
  dtml-in "ZopeFind(this(), obj_metatypes=['Folder'], 
obj_expr='''not objectValues(['Folder'])''', 
search_sub=1)"
  
  and 
  
  dtml-in "ZopeFind(this(), obj_metatypes=['Folder'],  
obj_expr='not objectValues([\'Folder\'])',
search_sub=1)"
  
  have given me an empty list.
I analysed this strange behavior in Zope 2.1.6
and have a partial explanation.

  Although the permission setting for "objectValues"
  is "Access contents information" which by default
  is granted to "Anonymous" and "Manager",
  only "Manager" is allowed to access "objectValues"
  in the context of the above "ZopeFind".

  I could not yet determine, why this is the case.

  But taken this fact for granted, the behavior
  becomes clear: the access to "objectValues" results
  in an "Unauthorized" exception. This
  is catched but prevents any object from being
  added to the result list.

Workaround:
  you need to add the REQUEST parameter to "ZopeFind".
  i.e.:
   dtml-in "ZopeFind(this(), obj_metatypes=['Folder'],  
 obj_expr='not objectValues([\'Folder\'])',
 search_sub=1, REQUEST=REQUEST)"
  
  This allows ZopeFind to use AUTHENTICATED_USER for
  validation of the "objectValue" access.

  The code will then work at least for the manager.

  Hopefully (not tested) a manager proxy role will
  make it work for arbitrary users, too.


I will investigate further, why "this().objectValues__roles__"
returns "('Manager',)" rather than "('Anonymous','Manager')".
However, this can take quite some time because I am
currently a bit stressed.


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 squishdot error

2000-07-25 Thread Aaron Morrison

I am using squishdot and I get an error when I click on the topic icons
representing a search(eg. link to
http://aaron.connexusinc.com/test/search?subject=Helpop=articles).
Also same kind of error when you "click to search for more articles by:
Aaron"  Sorry I cant explain it well but I'm pretty new to programming/web
programming. I think it have something to do with zcatalog but Im not
sure...does squishdot use some kind of hidden catolog?  here is the
traceback:

Error Type: KeyError
 Error Value: body



 Troubleshooting Suggestions

  This resource may be trying to reference a nonexistent
object or variable body.
  The URL may be incorrect.
  The parameters passed to this resource may be incorrect.
  A resource that this resource relies on may be
encountering an error.

 For more detailed information about the error, please refer to
the HTML source for this page.

 If the error persists please contact the site maintainer. Thank
you for your patience.




Traceback (innermost last):
  File C:\Program Files\WebSite\lib\python\ZPublisher\Publish.py, line 214,
in publish_module
  File C:\Program Files\WebSite\lib\python\ZPublisher\Publish.py, line 179,
in publish
  File C:\Program Files\WebSite\lib\python\Zope\__init__.py, line 202, in
zpublisher_exception_hook
(Object: ElementWithAttributes)
  File C:\Program Files\WebSite\lib\python\ZPublisher\Publish.py, line 165,
in publish
  File C:\Program Files\WebSite\lib\python\ZPublisher\mapply.py, line 160,
in mapply
(Object: search)
  File C:\Program Files\WebSite\lib\python\ZPublisher\Publish.py, line 102,
in call_object
(Object: search)
  File C:\Program Files\WebSite\lib\python\Products\Squishdot\Squishdot.py,
line 954, in search
(Object: ElementWithAttributes)
  File C:\Program Files\WebSite\lib\python\ZPublisher\HTTPRequest.py, line
760, in __getitem__
KeyError: (see above)


Thanks, Aaron


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




[Zope] SiteAccess

2000-07-25 Thread Danae and Andy

Hi,

I followed the directions on the SiteAccess product:

"Put a SiteRoot in '/hotsite', your site's physical
root, and accept the default Path."

When I do that I am no longer able to access that
folder in the mgmt interface.

Zope 2.2 and SiteAccess 2

Any ideas?



I have put the SiteAccessRule in the root that reads:

dtml-if "_.string.split(_.string.split(HTTP_HOST,
':')[0], '.')[-2:]==['mysite', 'com']" 
  dtml-call
"REQUEST['TraversalRequestNameStack'].append('myfolder')"
/dtml-if 

__
Do You Yahoo!?
Get Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.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] ANN: Border Aware Image Update for Zope 2.2.0

2000-07-25 Thread Jon Franz

The Border Aware Image add-on has been updated for Zope 
2.2.0 - installation has been heavily updated and is now 
much easier.

see:
http://www.zope.org/Members/Coventry/Border_aware_image

Also, the alternate syntax patch/add-on has been tested 
with Zope 2.2.0 now, and no changes were needed.  The 
new documentation reflects this at:

http://www.zope.org/Members/Coventry/dtml_shortcut


Also:
I will be submitting a proposal soon to dev.zope.org: the 
project would handle evaluating and integrating small 
add-ons such as these and others into the Zope core, 
please email me if you would be interested in participating.

~  Jonathan M. Franz ~ Senior Developer/Technical Leader  ~
~ SW-Dev Division, Springdale, Ohio Office ~ 513.618.2248 ~ 
~ OneNet Communications (A USNet/MDM Company) www.one.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] Your feedback: what should DateTime strftime() behavior be?

2000-07-25 Thread Andrew Kenneth Milton

+[ Brian Lloyd ]-
| Hi all -
| 
| There has recently been some confusion over the expected 
| behavior of various approaches to DateTime formatting in 
| Zope regarding timezone representation. I would like to 
| resolve this for the next release by making a proposal 
| and asking you to reply to the list with a "vote":
| 
|   +1 == agree
| 
|   +/-0 == no strong opinion
| 
|   -1 == disagree

You will only ever see votes from people wanting change... apathy rules
otherwise. Then when it changes you'll see a whole bunch of bitching about 
the change, and how there's 1,000 people on the list and only 20 people
voted... etc. d8) Mailling list votes are often a bad idea...

-- 
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] Python/Tkinter Zope

2000-07-25 Thread Tim Cook

Has anyone used this combination for GUI inside a Zope app?

-- Tim Cook --
FreePM Project Coordinator - http://www.freepm.org
OS Healthcare Alliance Supporter - http://www.oshca.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 )




Re: [Zope] Limiting folder space

2000-07-25 Thread Bill Anderson

Brendon Grunewald wrote:
 
 I want to use Zope to offer registered visitors to my site a little free
 webspace on the site. Since I use hosting service that restricts and charges
 me for space, I would like to restrict the size that their zope folders can
 consume.
 
 Hence:
 Is there any simple way of limiting the amount of space that a folder is
 allowed to consume including its subfolders? Alternatively, is there anyway
 of checking how much space a folder with subfolders consumes?

Short answer: no.

Longer Answer:
Not under thattype of setup, There ar emethods that could be used now to do this, but 
the
ones I come up with off the top of my head require system level access.


--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
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] Dumb DTML question - existance check of an object

2000-07-25 Thread Satheesh Babu

Hello,

I have a URL, say, /sub1/sub2. How do I check in DTML
whether
  1. folder sub1 exists or not
  2. If not, create it.
  3. folder sub2 exists under sub1
  4. If not, create it.
and so on...


 Thx

http://vsbabu.csoft.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] zzLocale 0-0-3a released on Zope Japan

2000-07-25 Thread Yves-Eric Martin

On Tue, 25 Jul 2000 23:37:20 +0200
"Johan Carlsson" [EMAIL PROTECTED] wrote:

 Are there any plans on expanding the framework to include
 python embedded strings.

Yes there is, and that's what the development of zzLocale is now
centered on. We are still in an early design stage, so I cannot give you
much information or any expected release date, but the next version of
zzLocale will definitively include some python-embedded strings
localization features.


Regards,

-- 
Yves-Eric Martin
Digital Garage Inc.
[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] Re: Probably ZopeFind Bug (was: Re: [Zope] all DTML Methods of current folder and subfolder)

2000-07-25 Thread Dieter Maurer

Dieter Maurer writes:
  Jerome Alet writes:
Thanks to you, the syntax you gave me is accepted by the dtml parser, but
both

dtml-in "ZopeFind(this(), obj_metatypes=['Folder'], 
  obj_expr='''not objectValues(['Folder'])''', 
  search_sub=1)"

and 

dtml-in "ZopeFind(this(), obj_metatypes=['Folder'],  
  obj_expr='not objectValues([\'Folder\'])',
  search_sub=1)"

have given me an empty list.
  I analysed this strange behavior in Zope 2.1.6
  and have a partial explanation.
  
Although the permission setting for "objectValues"
is "Access contents information" which by default
is granted to "Anonymous" and "Manager",
only "Manager" is allowed to access "objectValues"
in the context of the above "ZopeFind".
  
I could not yet determine, why this is the case.
  
But taken this fact for granted, the behavior
becomes clear: the access to "objectValues" results
in an "Unauthorized" exception. This
is catched but prevents any object from being
added to the result list.

By now, I know why we get this strange "objectValues__roles__"
result inside ZopeFind.

In "FindSupport:145", "ZopeFind" strips away the acquisition
context of an object.

base=obj
if hasattr(obj, 'aq_base'):
base=obj.aq_base

if not hasattr(base, 'objectItems'):
return result
try:items=base.objectItems()
except: return result

This, too, removes the information needed for "acl_user" based authorization:

  In the traversal of the aquisition chain to determine the
  roles associated with "objectValues", the application object
  on top of the acquisition hierarchy is not longer reached.
  Therefore, "ApplicationDefaultPermissions" is not used
  and "PermissionRole" falls back to its own default
  "('Manager',)".

This acquisition context stripping is almost surely responsible
for other problems reported for ZopeFind, too.


The behaviour would disappear, if the line

try:items=base.objectItems()
is replaced by
try:items=obj.objectItems()

Note: "ZopeFindAndApply" would need the same patch.

I am not sure, however, whether this will have adverse effects
at other places.


I will put a reference to this report into the Collector.



Dieter



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




RE: [Zope] DCOracle on WinNT

2000-07-25 Thread Arpad Kiss

Hi,
If you have VC 6.0 then you can find some help here:
http://starship.python.net/crew/arpadk
Cheers,
Arpad

On 25-Jul-2000 [EMAIL PROTECTED] wrote:
 Anyone has a hint how to compile the DCOracle on WinNT?
 
 I was successful in compiling this on Linux.
 Now I have to deploy this on Windows NT, I use Cygwin, but the compilation
 process complains that there is no
 {$PYTHON_PATH}/lib/python1.5/config/Makefile.
 
 On RedHat, I get this Makefile with python-devel package.
 Where do I get it with Windows? It is not installed by default.
 
 Thanks,
 
 Michal Bukovjan
 
 ___
 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 )

--
E-Mail: Arpad Kiss [EMAIL PROTECTED]
Date: 25-Jul-2000
Time: 22:03:09

This message was sent by XFMail
--

___
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] A Better Way (Stupid DTML code)

2000-07-25 Thread Baker, Dennis [sjmr]


 -Original Message-
 From: Andy McKay [mailto:[EMAIL PROTECTED]]
 Sent: Monday, July 24, 2000 6:52 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [Zope] A Better Way (Stupid DTML code)
 
 
 Okay now im really curious what does min-provid tell you, I 
 had a quick
 rummage through the docs and couldnt see any reference to this.

From the DTML users guide...
http://www.zope.org/Documentation/Guides/DTML-HTML/DTML.7.3.html

Basically it does what it says,  gives you the minimum of a value from a
dtml-in list.

 
 - Original Message -
 From: "Bill Anderson" [EMAIL PROTECTED]
 To: "Baker, Dennis [sjmr]" [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Monday, July 24, 2000 6:40 PM
 Subject: Re: [Zope] A Better Way (Stupid DTML code)
 
 
  "Baker, Dennis [sjmr]" wrote (quote rearranged to be *after* the
  previous message, as it should be:):
 
-Original Message-
From: Andy McKay [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 21, 2000 5:27 PM
To: [EMAIL PROTECTED]
Subject: Re: [Zope] A Better Way (Stupid DTML code)
   
   
Other smug answers include:
- dont put - in your SQL methods
- use your SQL to give the variable a different name
- use python
  
   I suppose my smug reply would be that min- is a 
 variable generated
 by
   dtml-in,  I didn't pick the variable name.
  
 
  Touche'
 
 
  Bill
 
  --
  Do not meddle in the affairs of sysadmins, for they are 
 easy to annoy,
  and have the root password.
 
  ___
  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 )