[Zope] Expression Evaluation Order..

2000-06-06 Thread Andrew Kenneth Milton

I have noticed a buglet in the dtml-var expression evaluation:-




Is the same as  this is obviously wrong :-)

so I need to expressly put 

-- 
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 |  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] RE: import-export

2000-06-06 Thread gresham


Hi,
I'm also getting similar problems, that I can no longer export and it is
giving me AttributeErrors. I think I've scanned every Zope document but
cannot find any info. I am running Zope from my own user and not from a
root account and I have also installed WorldPilot (perhaps related to
this)?

Any ideas ... I'll post more details if I find anything, as this is
delaying a release

Regards
Gresh


!-
   Hi,

   My Little Problem :

   I have zope version 2.1.6 running on two servers.

   I have a folder containing dtml methods and zsqlmethods
which I want to
   import from server A to server B
   It doesn't work. It used to work, but not any more. this
is the error it
   throws...


   File
/usr/local/Zope-2.1.6-linux2-x86/lib/python/OFS/ObjectManager.py, line
   484, in manage_importObject
   (Object: ElementWithAttributes)
   File
/usr/local/Zope-2.1.6-linux2-x86/lib/python/ZODB/ExportImport.py, line
   266, in importFile
   ExportError: (see above)

   Help

   Regards
   Ronnie



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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 problem with image caching affecting certain versions of Netscape browsers browsers

2000-06-06 Thread andres

On Tue, Jun 06, 2000 at 10:25:48PM +0100, Paul Browning wrote:
> ZWN-2000-06-01 says:
> 
> "Itamar Shtull-Trauring and Chris Withers tracked down a problem with
> image caching that affected certain versions of Netscape browsers."
> 
> Can anyone give me more info on this? I missed any reference to
> it on the list and have been unable to locate anything in
> various archives. I have just such a problem and I hope
> this is a fix.
> 

The problem was related to Netscape browsers on Win32 sending
If-Modified-Since headers with dates like "15-Mar-00" when they meant
"15-Mar-2000". This caused two problems in Zope.

The DateTime module reinterpreted the date as "15-Mar-1900". This has been
fixed in the CVS version of the module where years of the form 00-69 are now
interpreted as 2000 + 00-69.

The second problem ocurred in OFS/Image.py where the date was turned into
whole seconds with Python's int() function. Dates so early lead to float
numbers that exceed the range of numbers int() can deal with. This is also
fixed in the current CVS version.

--
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] Novice simple one - recompile one module?

2000-06-06 Thread Andrew Kenneth Milton

+[ David Ornstein ]-
| Hi Folks,
| 
| (Somebody should let me know if these questions are *way* too basic to waste
| list bandwidth with...)
| 
| I see a patch to AccessControl\User.py that I want to apply.  I don't know
| jack about Python (thought do know other OO languages).  I've made the
| changes to User.py.  How do I recompile User.py to get the User.pyc file?

If you restart Zope it (the python interpretter) should recompile the 
python for you.

-- 
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 |  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] Novice simple one - recompile one module?

2000-06-06 Thread David Ornstein

Hi Folks,

(Somebody should let me know if these questions are *way* too basic to waste
list bandwidth with...)

I see a patch to AccessControl\User.py that I want to apply.  I don't know
jack about Python (thought do know other OO languages).  I've made the
changes to User.py.  How do I recompile User.py to get the User.pyc file?

David

___
David Ornstein, CTO, NuvoMedia, Inc.

AIM: dbo666 voice: 650-314-1200 web: http://www.nuvomedia.com/
PGP Public Key Available at: ldap://certserver.pgp.com

"An honest man is able to speak for himself, when a knave is not."
Shakespeare, King Henry VI., Part 2


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

2000-06-06 Thread David Trudgett

At 2000-06-06 09:44 -0300, you wrote:

>You both had the same problem I have now: make Oracle 8i (in my case, Oracle
>8.1.6) work with Zope.
>DCOracle is working well (Makefile attached to this message) but ZOracle
>isn't running yet.
>
>We are posting e-mails about it on the list for a while and nobody answered,
>so I must think that nobody on Zope universe is using Oracle 8i (neither NT
>nor Linux Oracle 8i client).
>There isn't any detailed documentation about it. The ZOracle installation
>instructions are simple but, in my opinion, incomplete.
>
>To solve this situation, I'm making a call to everybody that uses or wants
>to use Zope with Oracle 8i. My goal is finally document the installation
>process and make it work properly.
>
>Please contact me ASAP.

Hello Alexandre. We intend to use Oracle 8i (8.1.5) with Zope (on another 
machine). We haven't done anything about it yet, though. That will 
hopefully change in the near future. I'd be interested to know what 
problems you had...

David Trudgett


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

2000-06-06 Thread P Chandra Sekhar

Hi Mr. Cary...

I too tried with Confera and ZDiscussion on NT platform, but I've got the
problem other way round. It is permitting only super user, it is not
permitting anybody else even though I gave permissions to Manager and Owner.

Any how I've tried with another one called Squishdot. It is working fine.

Try, I hope it will work,

Regards,
Chandra Sekhar

Cary O'Brien wrote:

> I'm trying to set up a small site with a Confera topic (using Zope
> 2.1.6).  It is going to be accessed by some off-site co-workers
> through the internet, so I am concerned about security.  Access is
> through Apache on the firewall with some mod_rewrite address filters,
> but I'm kind of a belt-and-braces guy when it comes to security, so I
> only want people who have user entries and passwords to access the
> discussion.  No anonymous access at all.
>
> But, if I remove the default "Anonymous" access privileges granted in
> the root folder, even users with user entries who can access other
> documents get access denied when trying to view the Confera topic.
>
> This happens for both remote and local access.
>
> The error traceback seems to point to a problem with the tree tag
> rendering components.
>
> Any ideas?
>
> -- cary (Currently kind of frustrated with Zope.  Everything seems hard.)
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )


begin:vcard 
n:;
tel;work:8522192 extn 3308
x-mozilla-html:FALSE
url:http://www.siri.co.in
org:SIRI Technologies Pvt Ltd
version:2.1
email;internet:[EMAIL PROTECTED]
title:Sr Software Engineer
adr;quoted-printable:;;92, 2nd Main,=0D=0AElectronic City,=0D=0A;Bangalore-561229;Karnataka-India;;
fn:Chandra Sekhar.P
end:vcard



Re: [Zope] Error Type: TransactionError

2000-06-06 Thread Anthony Baxter

>>> Chien-Pin Wang wrote
> Zope with type TransactionError. The coresponding error value says:
> Traceback (innermost last):
>   File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line
> 169, in
> publish
>   File /usr/local/Zope-2.1.6-src/lib/python/ZODB/Transaction.py, line 209,
> in
> commit
> TransactionError: A serious error, which was probably a system error,
> occurred in a previous database transaction.  This
> application may be in an invalid state and must be
> restarted before database updates can be allowed.

This means that a previous transaction failed. You need the traceback 
from the request that failed. Other than that, you can't do much but
restart.

Anthony

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

2000-06-06 Thread Chien-Pin Wang


Dear All:

   OS: RH Linux 6.1
   Zope: 2.1.6
   Python: 1.5.2
   Extra Products: ZOracleDA, FSSession, Document Template


   I just encountered a series of errors throwned out from my production
Zope with type TransactionError. The coresponding error value says:

"""
A serious error, which was probably a system error,
occurred in a previous database transaction.  This
application may be in an invalid state and must be
restarted before database updates can be allowed.

Beware though that if the error was due to a serious
system problem, such as a disk full condition, then
the application may not come up until you deal with
the system problem.  See your application log for
information on the error that lead to this problem.
"""

The trace back did not say much:

"""
Traceback (innermost last):
  File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line
169, in
publish
  File /usr/local/Zope-2.1.6-src/lib/python/ZODB/Transaction.py, line 209,
in
commit
TransactionError: A serious error, which was probably a system error,
occurred in a previous database transaction.  This
application may be in an invalid state and must be
restarted before database updates can be allowed.

Beware though that if the error was due to a serious
system problem, such as a disk full condition, then
the application may not come up until you deal with
the system problem.  See your application log for
information on the error that lead to this problem.

"""

I am almost clueless about this error, and it prevents the system
from being accessed until zope is restarted. Please help!




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

2000-06-06 Thread CURTIS David

Greetings,

I wish to use use the data of the database file in my html code.  For example,
 this database was last updated on 06/06/2000.  I suppose that there must be a dynamic 
html tag that zope uses.  What could it be?  I looked at all the documentation and 
have yet to discover it.Any help is apprechiated. 
   
   
   
   
   
   
   

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

2000-06-06 Thread Daniel Chudnov


I've had a series of problems getting products to install correctly and
importing some test external methods to go; each of these seems to be
related to zope finding the right python libraries at the right time.

Looking through the misc docs I find comments about PYTHONPATH but nothing
that indicates whether this might be the issue, or if this is another
common install/admin issue I'm overlooking.  Is there a runtime config or
compile thing I need to do to make sure zope has the right path(s) and
finds everything?  Do I need to install duplicate libraries into the
zope/lib/python dir (I hope not :)?

I also saw somewhere (one of the mysql products?) that installing
necessary libraries from source was better than rpms (I'm running
rhlinux6.0, Zope 2.1.6, python 1.5.2-2) but don't recall finding any
specific strategy for good share dirs Zope will find.

Any help would be greatly appreciated.  If there's a how-to or the like I
missed, I'm sorry but this is hard to find.  And I'm a librarian so I'm
usually good at finding things. :)  Happy to provide product/library
specifics if necessary, too.


  Thanks, 

  -Dan



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

2000-06-06 Thread Graham Chiu

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

In article <[EMAIL PROTECTED]>, Heiko Stoermer
<[EMAIL PROTECTED]> writes
>



First spam in German I've come across :-(

- -- 
Regards,  Graham Chiu
gchiucompkarori.co.nz
http://www.compkarori.co.nz/index.php
Powered by Interbase and Zope

-BEGIN PGP SIGNATURE-
Version: PGPsdk version 1.7.1

iQA/AwUBOTzk0rTRdIWzaLpMEQJQEwCgpQ+bv4VyM3UgmNqzuhMa/MlAIhEAoNSu
oPwcN3ZNSDdm58fmi+OEZgbp
=/2Vv
-END PGP SIGNATURE-

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

2000-06-06 Thread Cary O'Brien

I'm trying to set up a small site with a Confera topic (using Zope
2.1.6).  It is going to be accessed by some off-site co-workers
through the internet, so I am concerned about security.  Access is
through Apache on the firewall with some mod_rewrite address filters,
but I'm kind of a belt-and-braces guy when it comes to security, so I
only want people who have user entries and passwords to access the
discussion.  No anonymous access at all.

But, if I remove the default "Anonymous" access privileges granted in
the root folder, even users with user entries who can access other
documents get access denied when trying to view the Confera topic.

This happens for both remote and local access.

The error traceback seems to point to a problem with the tree tag
rendering components.

Any ideas?

-- cary (Currently kind of frustrated with Zope.  Everything seems hard.)





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

2000-06-06 Thread Phil Harris

Try:



hth

phil
[EMAIL PROTECTED]


- Original Message -
From: "michael angelo ruberto" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: 06 June 2000 23:18
Subject: [Zope] sort_order???


> hello,
>
> ok, here is my code:
>
> 
>
>  |  |
 URL> |  | 
> 
>
> what's wrong - nothing, it works fine. however, the result is sorted by
date
> ascending and i need it to be reversed. i found a reference to an
attribute
> "sort_order" which can be given an arg such as "sort_order=reverse". the
> problem here is that it won't work and i can't find any usage info on
> "sort_order". it isn't mentioned in the DTML Reference and after hours of
> searching the Zope website i am empty handed. does anyone know how to use
> this? thanks in advance.
>
> --
>
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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] sort_order???

2000-06-06 Thread michael angelo ruberto

hello,

ok, here is my code:



 |  |  |  | 


what's wrong - nothing, it works fine. however, the result is sorted by date
ascending and i need it to be reversed. i found a reference to an attribute
"sort_order" which can be given an arg such as "sort_order=reverse". the
problem here is that it won't work and i can't find any usage info on
"sort_order". it isn't mentioned in the DTML Reference and after hours of
searching the Zope website i am empty handed. does anyone know how to use
this? thanks in advance.

--


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Help: Weird KeyError with 2.2.0a1

2000-06-06 Thread Phil Harris

Pete,

This doesn't really fix the underlying problem, but if you'd like to carry
on working with Zope you can rename the file /var/Data.fs and Zope
will recreate a new (good) Data.fs for you.

hth

phil
[EMAIL PROTECTED]

- Original Message -
From: "Pete Kazmier" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 06 June 2000 22:41
Subject: [Zope] Help: Weird KeyError with 2.2.0a1


> Hi,
>
> I was playing around with 2.2.0a1 and I've stumbled upon a corrupted
> database I think.  I'm new so please bare with me.  I was hoping
> someone could help me recover.  Everytime I start Zope, I get the
> following error:
>
> 2000-06-06T21:20:50 ERROR(200) ZODB Couldn't load state for
> '\000\000\000\000\000\000\000\006'
> Traceback (innermost last):
>   File /home/zope/lib/python/ZODB/Connection.py, line 421, in setstate
>   File /home/zope/lib/python/ZODB/FileStorage.py, line 584, in load
> (Object: /home/zope/var/Data.fs)
>   File /home/zope/lib/python/ZODB/FileStorage.py, line 560, in _load
> (Object: /home/zope/var/Data.fs)
> KeyError:
>
> Traceback (innermost last):
>   File "/home/zope/z2.py", line 547, in ?
> exec "import "+MODULE in {}
>   File "", line 1, in ?
>   File "/home/zope/lib/python/Zope/__init__.py", line 144, in ?
> OFS.Application.initialize(c)
>   File "/home/zope/lib/python/OFS/Application.py", line 308, in
>   initialize
> app.Control_Panel.initialize_cache()
>   File "/home/zope/lib/python/ZODB/Connection.py", line 421, in
>   setstate
> p, serial = self._storage.load(oid, self._version)
>   File "/home/zope/lib/python/ZODB/FileStorage.py", line 584, in load
> try: return self._load(oid, version, self._index, self._file)
>   File "/home/zope/lib/python/ZODB/FileStorage.py", line 560, in _load
> pos=_index[oid]
> KeyError:
>
> Please tell me that I am not screwed.  Right before this problem
> occurred, I had packed my database, but things were working ok
> immediately following that, then a few moments later, I kept getting
> errors, so I stopped the Zope processes and restarted.
>
> Could someone please point me in the right direction?  I wasn't sure
> if I was supposed to post this to the dev list since I'm using an
> alpha, but I'm hoping those people read this too.
>
> Thanks,
> Pete
>
> --
> Peter Kazmier http://www.kazmier.com
> PGP Fingerprint   4FE7 8DA3 D0B5 9CAA 69DC  7243 1855 BC2E 4B43 5654
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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] Importing ACL Users

2000-06-06 Thread Luis Cortes

Not easily.

I suggest the following, ( which depending on your python expertise is
a trival solution ).  
1.  Convert your excel files to csv format.  
2.  Use one of the many csv reader libraries to read your csv file (inside a
python external method.
3.  Use the add user function of acl_users to add each
person with password inside your python external method.  (see zope howto for
exact name of function and how to use it). 
4.  Very important -- run the method in Zope, you're done ;-).





On Tue, 06 Jun 2000, you wrote:
>> I am new to the Zope world, but very impressed,  I am working on a new
>> website in which I have a few hundred users with different user names and
>> passwords,  is there a way to import from some type of excel or star office
>> spreadsheet the users and passwords, or do I have to enter them all by hand?
>> You help would be greatly appreciated.  Thanks!!
>> 
>> 
>> -Chris...
>> 
>> 
>> 
>> 
>> Christopher Behnke   (503) 246 3630
>> VP Product Development   fax: (503) 246 3124
>> Avalon Technology Group  email: [EMAIL PROTECTED]
>> 0607 SW Idaho Street web: www.exceptionalminds.com
>> Portland, OR. 97201  cell: (503) 789 9931
>>   -- Linux, because you can't do that on a windows box! --
>> 
>> 
>> ___
>> Zope maillist  -  [EMAIL PROTECTED]
>> http://lists.zope.org/mailman/listinfo/zope
>> **   No cross posts or HTML encoding!  **
>> (Related lists - 
>>  http://lists.zope.org/mailman/listinfo/zope-announce
>>  http://lists.zope.org/mailman/listinfo/zope-dev )
-- 
==

Luis Cortes

Pollak EPD (915) 621-6113

==


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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 problem with image caching affecting certain versions of Netscapebrowsersbrowsers

2000-06-06 Thread Chris Withers

Paul Browning wrote:
> 
> ZWN-2000-06-01 says:
> 
> "Itamar Shtull-Trauring and Chris Withers tracked down a problem with
> image caching that affected certain versions of Netscape browsers."

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

cheers,

Chris

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




[Zope] Help: Weird KeyError with 2.2.0a1

2000-06-06 Thread Pete Kazmier

Hi,

I was playing around with 2.2.0a1 and I've stumbled upon a corrupted
database I think.  I'm new so please bare with me.  I was hoping
someone could help me recover.  Everytime I start Zope, I get the
following error:

2000-06-06T21:20:50 ERROR(200) ZODB Couldn't load state for
'\000\000\000\000\000\000\000\006'
Traceback (innermost last):
  File /home/zope/lib/python/ZODB/Connection.py, line 421, in setstate
  File /home/zope/lib/python/ZODB/FileStorage.py, line 584, in load
(Object: /home/zope/var/Data.fs)
  File /home/zope/lib/python/ZODB/FileStorage.py, line 560, in _load
(Object: /home/zope/var/Data.fs)
KeyError:

Traceback (innermost last):
  File "/home/zope/z2.py", line 547, in ?
exec "import "+MODULE in {}
  File "", line 1, in ?
  File "/home/zope/lib/python/Zope/__init__.py", line 144, in ?
OFS.Application.initialize(c)
  File "/home/zope/lib/python/OFS/Application.py", line 308, in
  initialize
app.Control_Panel.initialize_cache()
  File "/home/zope/lib/python/ZODB/Connection.py", line 421, in
  setstate
p, serial = self._storage.load(oid, self._version)
  File "/home/zope/lib/python/ZODB/FileStorage.py", line 584, in load
try: return self._load(oid, version, self._index, self._file)
  File "/home/zope/lib/python/ZODB/FileStorage.py", line 560, in _load
pos=_index[oid]
KeyError:

Please tell me that I am not screwed.  Right before this problem
occurred, I had packed my database, but things were working ok
immediately following that, then a few moments later, I kept getting
errors, so I stopped the Zope processes and restarted.

Could someone please point me in the right direction?  I wasn't sure
if I was supposed to post this to the dev list since I'm using an
alpha, but I'm hoping those people read this too.  

Thanks,
Pete

-- 
Peter Kazmier http://www.kazmier.com
PGP Fingerprint   4FE7 8DA3 D0B5 9CAA 69DC  7243 1855 BC2E 4B43 5654

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

2000-06-06 Thread Jim Sanford


  do your adding thing

   do your modifying thing

   do your deleting thing

   do your 'Whoa! something ain't right here' thing


- Original Message - 
From: ethan mindlace fremen <[EMAIL PROTECTED]>
To: Robert Del Huerto <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, June 06, 2000 2:42 PM
Subject: Re: [Zope] detail record editing


Robert Del Huerto wrote:

> +---+---+-++
> |   |Doe|Jane |$100.00 |
> +---+---+-++
> | X |Doe|John |$250.00 |
> +---+---+-++
> |   |Haggis |Meister  |$100.00 |
> +---+---+-++
> |   |Zoper  |Doper|$723.00 |
> +---+---+-++
> | +--+  +--+  +--+ |
> | |   ADD|  |  MODIFY  |  |  DELETE  | |
> | +--+  +--+  +--+ |
> +--+

You can have as many action="submit"'s as you want.

Untested:





The form only submits the value of "successfull" form items, so, on your
form's action method:



  do your adding thing

  
do your modifying thing
  
do your deleting thing
  


~ethan @ digicool

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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 problem with image caching affecting certain versions of Netscapebrowsersbrowsers

2000-06-06 Thread Paul Browning

ZWN-2000-06-01 says:

"Itamar Shtull-Trauring and Chris Withers tracked down a problem with
image caching that affected certain versions of Netscape browsers."

Can anyone give me more info on this? I missed any reference to
it on the list and have been unable to locate anything in
various archives. I have just such a problem and I hope
this is a fix.

TIA

Paul

--
 The Library, Tyndall Avenue, Univ. of Bristol, Bristol, BS8 1TJ, UK
 E-mail: [EMAIL PROTECTED]  URL: http://www.bris.ac.uk/


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

2000-06-06 Thread Christopher Behnke

I am new to the Zope world, but very impressed,  I am working on a new
website in which I have a few hundred users with different user names and
passwords,  is there a way to import from some type of excel or star office
spreadsheet the users and passwords, or do I have to enter them all by hand?
You help would be greatly appreciated.  Thanks!!


-Chris...




Christopher Behnke  (503) 246 3630
VP Product Development  fax: (503) 246 3124
Avalon Technology Group email: [EMAIL PROTECTED]
0607 SW Idaho Streetweb: www.exceptionalminds.com
Portland, OR. 97201 cell: (503) 789 9931
  -- Linux, because you can't do that on a windows box! --


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

2000-06-06 Thread Timothy Grant

Hi,

I've recently started experimenting with Mozilla M16. While my pages
seem to work beautifully, I can't get into any of the management
screens. When I add /manage to the URL, I get nothing, no authentication
box no error, nothing.

Am I missing something, or is Mozilla missing something?

-- 
Stand Fast,
tjg.

Timothy Grant [EMAIL PROTECTED]
Chief Technology Officer  www.exceptionalminds.com
Red Hat Certified Engineer   MIG #1433
Avalon Technology Group, Inc.   
Linux...Because rebooting isn't normal

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

2000-06-06 Thread ethan mindlace fremen

Robert Del Huerto wrote:

> +---+---+-++
> |   |Doe|Jane |$100.00 |
> +---+---+-++
> | X |Doe|John |$250.00 |
> +---+---+-++
> |   |Haggis |Meister  |$100.00 |
> +---+---+-++
> |   |Zoper  |Doper|$723.00 |
> +---+---+-++
> | +--+  +--+  +--+ |
> | |   ADD|  |  MODIFY  |  |  DELETE  | |
> | +--+  +--+  +--+ |
> +--+

You can have as many action="submit"'s as you want.

Untested:





The form only submits the value of "successfull" form items, so, on your
form's action method:



  do your adding thing

  
do your modifying thing
  
do your deleting thing
  


~ethan @ digicool

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

2000-06-06 Thread Josh Glover
When I try to delete a folder from the root of Zope, it does not allow
me to do so.  No error message, just displays the index_html method in
my browser window.  Same story if I attempt to rename them.  Any ideas? 

Thanks,
Josh Glover

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

2000-06-06 Thread Bill Anderson

Joe Hewitt wrote:
> 
> So I followed all the instructions on the installation page, restarted
> zope (the PTKBase and PTKDemo do not appear to be broken) and tried to
> import DemoPortal.zexp, but I keep get a page that says:
> 
> ! The object DemoPortal does not support this operation
> 
> What can I do to solve the problem?  

Import it into Control_Panel/Products/

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

2000-06-06 Thread Erik Myllymaki

Hello,

I am new to OOP and Zope so please forgive me if I am being a chowderhead
;-)

I have a root report folder called "ReportParent". Within this folder, I
have 47 folders called, for simplicity, "report1, report2 ... reportN".
Within each of these folders I have a ZSQL query called "query" that is a
simple select statement.

In the ReportParent folder, I have an external method called columnNames:

#---
def columnNames(self):
""" docstring """
fieldnames = []
tempList = []
res=self.query()
columns = res._schema.items()
for (name,value) in columns:
 tempList.append((value,name))
tempList.sort()
for name, value in tempList:
 fieldnames.append(value)
return fieldnames
-

This returns the column names of the batch returned by the "query" ZSQL
Method in each reports1..N folder. In each folder is also an "index_html"
DTML Doc that renders the batch returned from the ZSQL Method:

-

Created for  on
 at  


  
  
Click on column header to re-order by that
column!

  
  
  
  
 
 
 
  






SQL Source:






I can call these queries with - www.mysite.net:8080/ReportParent/reportN and
get the desired results.

I have two questions on how I would like to change things:

1. The DTML Doc "index_html" is the same in the case of 45 of the 47 reports
folders. Seems to me I should be able to move the common index_html up to
the ReportParent folder, and just leave the two specialized ones where they
are, in their report? folders and continue to call the reports the same way.
Those that have a local index_html will use that, the others will look up
the hierarchy and find the common one in ReportParent. However, when I do
this and call the reports with the same URL I get:
"Error Type: AttributeError - Error Value: query" ?
Seems the index_html DTML Doc (or columnNames extended Method) can't find
"query" below it. How do I address this properly?

2. How do I pass in the ZSQL Method object to the external method
"columnNames.py"?
I'd like to name the queries what I want and reuse this method anywhere,
without the query having to be named "query". Out of frustration, I named
all the queries with the same name and then addressed "query" explicitly in
the external method, because no matter what I tried, I couldn't get the
cloumnNames methos to accept the ZSQL Method name as a second parameter?!

Thanks for your input,

Erik Myllymaki
[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] LONG datatype with ODBC adaptor

2000-06-06 Thread Satheesh Babu

Hi,

I'm using ODBC connection to an Oracle 8i database
on NT4. Zope 2.1.6 is also running on NT. The connection
is through ZODBC adaptor through Oracle's ODBC driver.

One problem though, we can't select LONG columns
from the table. Any patch/solution/work around
for this?

Thanks

   ~  V.Satheesh Babu [EMAIL PROTECTED](Xt: 5348)
  . . http://vsbabu.csoft.net/
  /V\ - Duct tape is like the force.  It has
 // \\  a light side, and a dark side, and
/(   )\ it holds the universe together ...
 ^'~'^

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

2000-06-06 Thread ethan mindlace fremen

"Karl G. Ulbrich" cogently stated:

> If the goal is mail-in content, I'm not sure I understand IMAP to be
> anything approaching what you want:  IMAP doesn't ACCEPT messages,
> at least not any of the IMAP servers I've seen, it serves messages
> up to clients (one of which could be Zope, like WorldPilot does).

I think you're right. I thought about this for a while, and realized
what I want is for Zope to publish imap like it does webdav &c.

> MailMan supports external archivers (how, I don't know, just saw it
> mentioned), and with the right archiver plugged in, that would
> give you the capability to archive email lists however you wanted.

This is exactly what (personally) I want to do:
http://www.zope.org/Members/mindlace/MailZopeMan
 
[snip awesome reference]

~ethan

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

2000-06-06 Thread Dieter Maurer

 > Do you mean to talk about products or techniques (or both) ?...
 > I set a multilingual site that works quite perfectly, with almost no product at
 > all (just a few external methods to make things easier).
 > 
 > I can explain my schema if some of you want to.
I am interested.


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] GadFly DB and Zope

2000-06-06 Thread Dieter Maurer

Hi Jilani

 > I am recently using the database GadFly and yesterday, I discovered with
 > pleasure that it is part of Zope (ZGadflyDA); so, I will be happy if
 > somebody tells me with a little example, or point me where to find some
 > information to get GadFly interact with it Zope (just how to call field1
 > and field2 from the database test.gfd).
 > 
 > Thank you.
Zope looks for directories in "var/gadfly" as possible data sources
for Gadfly.

You can use it like any other DA -- see the ZSQL Methods User Guide
for details.

At least an earlier version of Gadfly was cribbled in Zope (2.1.0).
It did not write changes to disk, such that each Zope restart
removed any changes to the Gadfly database.

I may still find the patch I made for this. However, I am not sure,
whether it is still necessary and whether it still can be applied
without problems.


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] WorldPilot - Regular messages are attachments?

2000-06-06 Thread Bryan Stillwell

I'm posting this message to the Zope mailing list, because I haven't had
much luck with emailing the WorldPilot folks directly and I've seen posts
about WorldPilot in the list archives.

Here's my problem.  I've created an rpm of WorldPilot that follows all the
instructions that are in the INSTALL.txt file that comes with it, I've
installed courier-imap and tested that it works correctly with Netscape
Mail, I've installed qmail and tested that I can send and receive email,
but the problem I have is when I try and view messages in my inbox using
WorldPilot.

If you want to know what I see, here's some screen shots of what happens:

http://www.verinet.com/~arcane/worldpilot/wp_inbox.png
http://www.verinet.com/~arcane/worldpilot/wp_message.png
http://www.verinet.com/~arcane/worldpilot/wp_zopeerror.png

Here's the traceback I received:

  Sorry, a Zope error occurred.



Also I want to bring to attention that in the wp_inbox.png picture that I
don't have any folders to choose from.  Does anyone know where those would
be at?

Another strange thing is the path to the mimetools.py file in the
traceback: /var/tmp/python/python-root/usr/lib/python1.5/.  The
/var/tmp/python/python-root path should have only been used during the
creation of the python rpm, but it's showing up now.  It doesn't seem to
matter that much though, because it is able to find mimetools.py at the
correct path of /usr/lib/python1.5/mimetools.py.  The python-root
directory doesn't exist either.  I didn't recompile the python rpm either,
it's the stock rpm that comes with Redhat 6.2.


My setup is as follows:

Redhat   6.1
qmail1.03+patches-8j (Set up to use Maildirs)
courier-imap 0.33-1 (IMAP program that supports qmail's Maildir format)
python   1.5.2-13
Zope 2.1.6-1
worldpilot   1.0.4-1 (Installed with my own rpm)


Thanks for any help any one can provide in advance!  Hopefully I can get
these problems resolved and I could then post the rpm for others to use.


Bryan Stillwell

-- 
http://www.tummy.com/ Consulting and Software for Linux and Unix
KRUD - Kevin's Red Hat Uber Distribution - the Freshest Red Hat every month



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

2000-06-06 Thread Nick Garcia

Jonathan wrote:
> 
> >"Zope" is the name of the main folder so when you do  >title> you are getting that folder's title.
> >
> > will give you the title or id of the object
> >that it is within (DTML Document title or id). That is probably what
> >you want.
> 
> Well, that don't work either. And if I am correct;  title_or_id> yields the same results as  right?

Yes, that is correct.  I think what you want is  which should get you the title of the document whether
it's a DTML Method or a DTML Document.
-- 
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] = Zope ?!

2000-06-06 Thread J. Atwood

\> Well, that don't work either. And if I am correct;  title_or_id> yields the same results as  right?

Yeah. 

[Zope] Problems installing PTK

2000-06-06 Thread Joe Hewitt


So I followed all the instructions on the installation page, restarted
zope (the PTKBase and PTKDemo do not appear to be broken) and tried to
import DemoPortal.zexp, but I keep get a page that says:

! The object DemoPortal does not support this operation

What can I do to solve the problem?  I'm running Zwiki on this machine
with Mandrake Linux 7.0.

Any help would be welcomed,
Joe

-- 
Joe Hewitt  email: [EMAIL PROTECTED]
Linux Coordinator
Washburn University Law School


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] ZOracleDA binary for NT?

2000-06-06 Thread Satheesh Babu

Hi folks,

I've been trying to access a Oracle DB with
ODBC driver from NT4 running Zope 2.1.6. 

Lot of problems and now I'm stumped in that this
driver does not seem to support LONG data types.

ZOracleDA on Linux works beautifully, but
I'm required to build the site on NT (sigh).

So, any one out there has a precompiled ZOracleDA
for NT, which he/she doesn't mind sharing with me?

Or, any hints on using LONG datatypes with ZODBC driver?

Thanks in advance.

   ~  V.Satheesh Babu [EMAIL PROTECTED](Xt: 5348)
  . . http://vsbabu.csoft.net
  /V\ - Duct tape is like the force.  It has
 // \\  a light side, and a dark side, and
/(   )\ it holds the universe together ...
 ^'~'^

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

2000-06-06 Thread Luis Cortes

On Tue, 06 Jun 2000, you wrote:
>> Hey all,
>> 
>> How can I get the current date & time (preferably as a
>> DateTime.DateTime object) in DTML? I cannot instantiate a DateTime
>> object, because the DateTime module is not imported.
>> 
>> Thanks,
>> Ivan Raikov



I saved this answer, because I thought I might need it -- might be what you
need:

==
From: "Eric L. Walstad" <[EMAIL PROTECTED]>To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]


I think I've got the syntax, Jeff:



- birthday is a field returned from my Z SQL Method
- The "_.DateTime(birthday)" part creates a DateTime object
- The '_' is a reference to the DTML namespace
- The DateTime() function creates the DateTime object
- The fmt=aCommon part formats it to look like: "May 7, 1966 12:00 am"

You can change the format by changing the fmt= so that  is the
format you want from Appdx A of the Zope DTML reference.

Eric.

===



If the you the current time, you might also try using  ZopeTime instead of
"_.DateTime(birthday)".  

have fun!
Luis.

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

2000-06-06 Thread Andreas

"Bak @ kedai" wrote:
> 
> On Mon, 05 Jun 2000, Thierry MICHEL wrote:
> >
> > > 2. Whether Auto-commit mode is on or off on ZPoPyDA  the new postgres
> > > 7.0 syntax
> > >  "select * from foo limit 20 offset 10" returns all records of foo and
> > > not only 20 !
> > >   With PyGreSQLDA it works :-)
> >
> > That's running every where, it's strange that's not running on your system.
> > Do you have packed the database of Zope ? Do you have create a new object ?
> >
> i will vouch for this, although i'm using postgres 6.5 (from rpm).  i packed
> the database,  stop and start zope.  create a zpopyda connection, and test the
> connection with SQL query.  and limit doesn't work.

It can't worke with postgres 6.5 because it's a NEW FEATURE of postgres
7.0 :-) 

-- 
_
Andreas Heckel[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] fmt weirdness

2000-06-06 Thread Evan Simpson

- Original Message -
From: Chris Withers <[EMAIL PROTECTED]>
> 
>
> ...works fine
>
> 
>
> ...barfs with a 'Document Template Parse Error':

The dtml parser only likes double-quoted attribute values. It sees the above
as having attributes "fmt='%d", "%B", and "%Y'".

Cheers,

Evan @ digicool & 4-am


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

2000-06-06 Thread Jason Spisak

Ivan Raikov writes:

> 
> Hey all,
> 
> How can I get the current date & time (preferably as a
> DateTime.DateTime object) in DTML? I cannot instantiate a DateTime
> object, because the DateTime module is not imported.
> 



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


Jason Spisak
CIO
HireTechs.com
6151 West Century Boulevard
Suite 900
Los Angeles, CA 90045
P. 310.665.3444
F. 310.665.3544

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.

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

2000-06-06 Thread Chris Withers



...works fine



...barfs with a 'Document Template Parse Error':
Invalid attribute name, "%B", for tag , on line 5 of index_html

weird huh?

ideas anyone?

cheers,

Chris

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




Re: [Zope] zope:change strings on place

2000-06-06 Thread Chris Withers

Vincent Maton wrote:
> I receive : 2000-04-13

> I want  : 13-04-2000



> or:  13 april 2000 (this one is better but ???)



Try 

...as well

cheers,

Chris

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




Re: [Zope] Current date in DTML

2000-06-06 Thread Stephan Richter

At 12:14 PM 6/6/00 -0400, Ivan Raikov wrote:

>Hey all,
>
>How can I get the current date & time (preferably as a
>DateTime.DateTime object) in DTML? I cannot instantiate a DateTime
>object, because the DateTime module is not imported.



Maybe a lower case 't'.

Regards,
Stephan
--
Stephan Richter
CBU - Physics and Chemistry
Web2k - Web Design/Development & Technical Project Management


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




Re: [Zope] Current date in DTML

2000-06-06 Thread Itamar Shtull-Trauring

Ivan Raikov wrote:

> How can I get the current date & time (preferably as a
> DateTime.DateTime object) in DTML? I cannot instantiate a DateTime
> object, because the DateTime module is not imported.

It is in _.DateTime.  Plus, ZopeTime() should return the current time and
date:


-- 
Itamar S.T.  [EMAIL PROTECTED]   
"It don't get thingier than that!"

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




[Zope] R: [Zope] Current date in DTML

2000-06-06 Thread Marcel Preda

> 
> Hey all,
> 
> How can I get the current date & time (preferably as a
> DateTime.DateTime object) in DTML? I cannot instantiate a DateTime
> object, because the DateTime module is not imported.
> 


or
(preferably as a DateTime.DateTime object)


PM


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

2000-06-06 Thread Heiko Stoermer


-- 
[EMAIL PROTECTED]
innominate AG
 networkingpeople
fon: +49.30.308806-0 fax: -77   web: http://innominate.de
 OBON2M_PH.doc


Re: [Zope] Current date in DTML

2000-06-06 Thread Chris Withers

Ivan Raikov wrote:
> How can I get the current date & time (preferably as a
> DateTime.DateTime object) in DTML? I cannot instantiate a DateTime

 or 

cheers,

Chris

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




[Zope] JScript help.

2000-06-06 Thread Stuart Foster

I have a DTML document that is keeps track of issues for a project. I am
using JScript to automatically input a date value when the users checks a
box. However if there is a date already in the field I do not want the
script to change it. Below is the onchage event for the check box. I think
the comparison is failing. f is the form datefixed is a text entry box. If I
try f.datefixed.value != '' it works, however this is the opposite of what I
want.

Any clues how I can do this. 

Thanks



function updateDateFixed(f) {
  if (f.datefixed.string == '')
  {  
today = new Date()
f.datefixed.value = (today.getMonth()+1)+'/'+today.getDate()
+'/'+today.getYear() 
  }
}



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

2000-06-06 Thread Marcel Preda


- Original Message -
From: Vincent Maton <[EMAIL PROTECTED]>
Sent: Tuesday, June 06, 2000 5:12 PM

> Can you help me ?
>
> I have some dates in a DataBase but I receive them in string after a query
> and it's in international format, I would like transform it in french
> format.
> With , it doesn't work.
>
> Do you know how can I transform it with strings:
>
> I receive : 2000-04-13
> I want  : 13-04-2000
> or:  13 april 2000 (this one is better but ???)
>

There's More than One Way to Do It :)


If date is a DateTime object you have to use:


06-06-2000
or

06-Jun-2000

or

06-June-2000
See python doc ,  module "time",function "strftime "


If date is NOT a DateTime object (is a string like '2000-06-06') you have to
use:

06-06-2000


PM



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

2000-06-06 Thread Ivan Raikov


Hey all,

How can I get the current date & time (preferably as a
DateTime.DateTime object) in DTML? I cannot instantiate a DateTime
object, because the DateTime module is not imported.

Thanks,
Ivan Raikov

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

2000-06-06 Thread Stephan Richter


>I can explain my schema if some of you want to.

Would you like to come to the Linuxtag and talk about it?

Regards,
Stephan
--
Stephan Richter
CBU - Physics and Chemistry
Web2k - Web Design/Development & Technical Project Management


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




Re: [Zope] Re: [Zope-dev] [ANN] Zope at Linuxtag 2000 in Stuttgart

2000-06-06 Thread Stephan Richter

At 11:45 AM 6/6/00 +0200, Gregor Hoffleit wrote:
>I'll try very hard to be able to show up at least one day at the LinuxTag;
>I'm going to try to help out at the Debian booth as well.
>
>How about I18N as a topic for one of the discussions ? I guess many European
>sites and developers struggle with problems of I18N.
>
>Another topic I'm very interested in is packaging and distribution of Zope
>extensions: keywords are Distutils, packages, zexp's, a package/dependency
>tool like Debian's APT, distribution etc. pp., cf. Simon Michael's recent
>rant about ZWiki/ZWikiWeb.

Please check http://www.zope.org/Members/Linuxtag. Simon Cole may come and 
talk about ZWiki. They are not 100% sure yet.

Would you be willing to give a talk on I18N? Or one of your developers? I 
don't know what I am going to talk about, so I can talk a little about 
packaging. Are the Distutils really necessary. Zope handles that inside. If 
you update the .py files, it updates all the object's instances respectively.

Regards,
Stephan
--
Stephan Richter
CBU - Physics and Chemistry
Web2k - Web Design/Development & Technical Project Management


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




[Zope] deleting objects

2000-06-06 Thread Webmaster

Sorry if this one is obvious.

I created a dtml method named "dev_header" in my site root. In another
folder further down my tree I created another "dev_header" with different
info. I then deleted the second "dev_header"  (/news/dev_header) expecting
my pages to then grab the "dev_header" from the root directory, but they
don't. Why?

Jamey

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

2000-06-06 Thread Ian Sparks

J,

Big thanks!

I like it!

Rubs hands together with glee

(cc'd list so other newbies can get the importance of this URL).

- Original Message -
From: "J. Atwood" <[EMAIL PROTECTED]>
To: "Ian Sparks" <[EMAIL PROTECTED]>
Sent: Tuesday, June 06, 2000 4:19 PM
Subject: Re: [Zope] www.mysite.com/Members/


http://www.zope.org/Members/mcdonc/HowTos/direct_traversal

That should do it.

JMA

>
> I'm not sure how to pull apart the URL to grab the peices of it which are
> parameters to the query. So if the url was :
> www.mysite.com/members/Ian/preferences and I am in the "members" DTML
method
> how do I :
>
> 1) Know where I am in the URL and
> 2) Get at the next N elements of it to pull out "Ian" and "Preferences".
I
> am aware of URL0, URL1..URLN etc but this doesn't seem to help here.



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




[Zope] zope:change strings on place

2000-06-06 Thread Vincent Maton

Can you help me ?

I have some dates in a DataBase but I receive them in string after a query
and it's in international format, I would like transform it in french
format.
With , it doesn't work.

Do you know how can I transform it with strings:

I receive : 2000-04-13
I want  : 13-04-2000
or:  13 april 2000 (this one is better but ???)

I thanks you a lot, please help me.

Vincent.


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




[Zope] The ZPublisher :method type (was RE: [Zope] detail record editing))

2000-06-06 Thread Jeffrey Shell

> My solution for this kind of problem is to have a DTML method 
> that delegates
> to the
> appropriate DTML methods. Therefore each button gets a value 
> and a name, eg.
> 
> 

Actually, you can use the Bobo ":method" type.  It's
documented...somewhere :).

You can do:




and the Publisher will add the selected method to the end of the path.
Make your form action be &dtml-URL1; or "./"

There's a default_method type too, I think you *might* see it in action
on the "Rename" form in the Zope management screens.


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

2000-06-06 Thread Andrew Kenneth Milton

+[ Pierre-Julien Grizel ]-
| 
| Do you mean to talk about products or techniques (or both) ?...
| I set a multilingual site that works quite perfectly, with almost no product at
| all (just a few external methods to make things easier).

Haha. Your french humour was lost on me the first time, now I understand
:-)

| I can explain my schema if some of you want to.

No no, I've done enough I18N in my life, please no more :-)

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

2000-06-06 Thread Anthony Baxter


>>> "Alexandre A. Drummond Barroso" wrote
> You both had the same problem I have now: make Oracle 8i (in my case, Oracle
> 8.1.6) work with Zope.
> DCOracle is working well (Makefile attached to this message) but ZOracle
> isn't running yet.

You're doing it the difficult way - just use -lclntsh for the link line.

If you download the recent update to DCOracle, you should find it builds
out of the box.

Anthony

-- 
Anthony Baxter <[EMAIL PROTECTED]>   
It's never too late to have a happy childhood.


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

2000-06-06 Thread Jonathan

>"Zope" is the name of the main folder so when you do title> you are getting that folder's title.
>
> will give you the title or id of the object 
>that it is within (DTML Document title or id). That is probably what 
>you want.

Well, that don't work either. And if I am correct;  yields the same results as  right?

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Looking forward to a better future at prototype world

2000-06-06 Thread josh on


> This is REALLY cool.  I can't manage to login though.


oh thanks,

ok, that might be because you didn't put in a tagline or it had punctuation
that sql doesn't like.

If not that is bad.

I will try and sort this out it is a big bug!

thanks for the feedback.


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

2000-06-06 Thread Michal Bukovjan

Hey guys,

I am now lucky to get the Oracle 8i connection working. Here is what I did :

1) Download and install the latest Oracle 8.1.6 Release 2.
- the previous Oracle 8.0.5 and 8.1.5 are broken as hell, the executables will
not even link and there is a lot of unresolved symbols. I wonder on which
distro Oracle tested that, it will not work on Debian, definitely. Did not
expect Oracle to be such CRAP!!! 8.1.6R2 is much better.
- be sure not to want too much from Java wizards. They like to crash a lot, in
both 8.1.5 and 8.1.6

1.1) When asked to run a script root.sh as root, first check the script and
correct the path to awk. In script it thinks it is /bin/awk, on Debian it is
/usr/bin/awk. Other distros may vary. Run the script as root.

2) Download latest beta of DCOracle

3) Download and install the latest beta of ZOracleDA. Replace DCOracle included
in the product with the latest beta of DCOracle, which includes Setup-8.1.5 for
linking with Oracle 8i. It should build now according to instructions.

4) Install ZOracleDA as outlined in docs

4.5) Not sure about this, but hell, my setup now works. So you may try...
a) Put ORACLE_HOME, ORACLE_BASE, ORACLE_SID into /etc/profile, so
that everyone has these set up.
b) Symlink tnsnames.ora for
$ORACLE_HOME/product/8.1.6/network/admin to /etc/tnsnames.ora.
c) Double check file permissions on $ORACLE_HOME/*
d) Edit /etc/oratab as needed, start up the databases.

5) Restart Zope.

Now it works for me (Zope 2.1.4), and works for 2 days, did not try any heavy
loads, etc, though. At least it connects and I can browse inside the database.

It gave me some strange error like invalid connection string for some time, but
probably after performing something from 4.5, it now works well, Zope will not
freeze, and it works for two days now.

Hope this helps anyone, we spent three+ days getting this f*cking Oracle to
work :-(

Michal Bukovjan


"Alexandre A. Drummond Barroso" wrote:

> You both had the same problem I have now: make Oracle 8i (in my case, Oracle
> 8.1.6) work with Zope.
> DCOracle is working well (Makefile attached to this message) but ZOracle
> isn't running yet.
>
> We are posting e-mails about it on the list for a while and nobody answered,
> so I must think that nobody on Zope universe is using Oracle 8i (neither NT
> nor Linux Oracle 8i client).
> There isn't any detailed documentation about it. The ZOracle installation
> instructions are simple but, in my opinion, incomplete.
>
> To solve this situation, I'm making a call to everybody that uses or wants
> to use Zope with Oracle 8i. My goal is finally document the installation
> process and make it work properly.
>
> Please contact me ASAP.
>
> Regards,
>
> Alexandre A. Drummond Barroso.
>
>   
>Name: Makefile
>MakefileType: unspecified type (application/octet-stream)
>Encoding: quoted-printable


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Looking forward to a better future at prototype world

2000-06-06 Thread josh on

I just made this in zope

and am testing it,

I hope that you find it fun, tell me what you think, if you will.  Any
feedback would be loved, and thanks for all the help I recieved on this
list.

http://194.80.197.15:8080/sqladdaline

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

2000-06-06 Thread Alexandre A. Drummond Barroso

You both had the same problem I have now: make Oracle 8i (in my case, Oracle
8.1.6) work with Zope.
DCOracle is working well (Makefile attached to this message) but ZOracle
isn't running yet.

We are posting e-mails about it on the list for a while and nobody answered,
so I must think that nobody on Zope universe is using Oracle 8i (neither NT
nor Linux Oracle 8i client).
There isn't any detailed documentation about it. The ZOracle installation
instructions are simple but, in my opinion, incomplete.

To solve this situation, I'm making a call to everybody that uses or wants
to use Zope with Oracle 8i. My goal is finally document the installation
process and make it work properly.

Please contact me ASAP.

Regards,

Alexandre A. Drummond Barroso.

 Makefile


Re: [Zope] Strange Zope behavior/Instability (Zope going down)

2000-06-06 Thread Harald Ragger

Jason Spisak asked:
> Do you mean that zope wouldn't restart? Even if you restarted the server?

Yes, zope didnt restart:-(  but i'm not sure if its a problem with zope or
just with the ms-cluster server.



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

2000-06-06 Thread J. Atwood

"Zope" is the name of the main folder so when you do  
you are getting that folder's title.

 will give you the title or id of the object 
that it is within (DTML Document title or id). That is probably what 
you want.

J


At 1:53 PM +0200 6/6/2000, Jonathan wrote:
>Hi all,
>
>Don't know if this has been discussed before, but I am experiencing 
>a weird problem with 'title' and 'title_or_id'; no matter what I 
>specify as 'title' value, Zope returns 'Zope' (every page is titled 
>'Zope')
>
>Vanilla binary install of Zope 2.1.6, just started a new project. Any ideas?
>
>Thnx
>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 )




Re: [Zope] How to backup and restore a Zope application

2000-06-06 Thread Michael Spalinski

> "Itamar" == Itamar Shtull-Trauring <[EMAIL PROTECTED]> writes:

Itamar> Jilani Khaldi wrote:

>> is there a way to backup and restore a Zope application so I can
>> move it from a coputer to another?  I have seen in the utility
>> directory but I found only "load_site.py".  Thanks.

Itamar> The Zope database is stored in var/Data.fs - that's most likely
Itamar> all you need for a backup.

If you store anything in the Gadfly database which comes with Zope you also
need ZOPE/var/gadfly .

If your application uses any external methods you also need
ZOPE/Extensions. 

If your application uses any products installed by you then you also need
ZOPE/lib/python/Products. 


--M.



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

2000-06-06 Thread Pierre-Julien Grizel


Do you mean to talk about products or techniques (or both) ?...
I set a multilingual site that works quite perfectly, with almost no product at
all (just a few external methods to make things easier).

I can explain my schema if some of you want to.


P.-J.





Andrew Kenneth Milton wrote:
> 
> +[ Gijs Reulen ]-
> | Gregor Hoffleit <[EMAIL PROTECTED]> wrote:
> |
> | > How about I18N as a topic for one of the discussions ? I guess many European
> | > sites and developers struggle with problems of I18N.
> |
> | What is I18N ? I did not know I am struggling with that :-) ?
> 
> InternationalisatioN (s/s/z/ if you're an american) it's called
> I18N because there are 18 letters between the I and the N.
> 
> --
> 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 |  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 maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Can't find some products on www.zope.org

2000-06-06 Thread Daryl Tester

Chris McDonough wrote:

> This is baaad.

Is it _very_ bad?  (Sorry, just finished watching ReBoot :-).


Regards,
  Daryl Tester

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




[Zope] ZOPE, Xemacs, html-mode, & indentation

2000-06-06 Thread Alastair Burt

Bob Finch <[EMAIL PROTECTED]> wrote:

 > I just ran into the same problem.  It appears that XEmacs html-mode
 > parses the html in the buffer.  If it doesn't parse correctly, the
 > indentation stuff doesn't work.  To see this, try editing something
 > without any dtml in it -- indentation should work fine.  As soon as
 > you add  at the top, indentation stops
 > working. 
 > 
 > I guess the fix is to write a dtml DTD for XEmacs html-mode.  Has
 > anyone already done this?

I tried hacking one up.  You can get it from:

  http://www.zope.org/Members/alburt/dtml_mode/index_html

--- Alastair


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




Re: [Zope] dtml-tree help

2000-06-06 Thread Pete Kazmier

On Mon, Jun 05, 2000 at 11:10:30PM -0400, Chris McDonough wrote:
> Pete Kazmier wrote:
> > 
> > Hi,
> > 
> > I think this is a simle question but I've been struggling for the last
> > two days trying to get it to work.  I have a heirarchy of folders
> > (really a custom container class) and files (really a custom object).
> > I want to emulate the Window's Explorer interface, left side of page
> > occupied with a tree of the entire hierarchy, and the right side
> > contains the details.
> > 
> > Is this possible?  Is it also possible to synchronize both views, for
> > example, if the user decides to navigate with the right half of the
> > screen, the left half would update accordingly?  Does anyone have any
> > pointers for me or links or examples?
> 
> How about the Zope mgmt interface?

Duh .. guess I should have thought of that ...

> > One other question, how do I refer to a specific object in a python?
> > If /status is a folder, how would I refer to the /status folder from
> > any number of subfolders within?
> 
> acquisition.  :-)  i'd give a longer answer but it would take five
> pages.

Boy .. how embarrassing .. I must've taken a stupid pill or something
this morning.  The problem I was having is that my top level container
was called 'status' but each of these containers also has a 'status'
attribute thus when I was trying to access the root container I kept
getting the 'status' attribute of my current folder ... I guess I'll
have to pick better names to avoid these sorts of clashes in the
future. 

Thanks for bringing me back to reality ...

-- 
Peter Kazmier http://www.kazmier.com
PGP Fingerprint   4FE7 8DA3 D0B5 9CAA 69DC  7243 1855 BC2E 4B43 5654

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




[Zope] = Zope ?!

2000-06-06 Thread Jonathan

Hi all,

Don't know if this has been discussed before, but I am experiencing a 
weird problem with 'title' and 'title_or_id'; no matter what I 
specify as 'title' value, Zope returns 'Zope' (every page is titled 
'Zope')

Vanilla binary install of Zope 2.1.6, just started a new project. Any ideas?

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




Re: [Zope] www.mysite.com/Members/

2000-06-06 Thread J. Atwood

Ian,

Make "Members"  a DTML Method and inside that method you call a ZSQL 
Method (made previously) that takes the parameter of 'userid=name'. 
Store the name of the member in the cookie and when the visit 
/members/ or /members/name it gets all the data from the SQL Database 
and publishes it any way you want.

Build any other functionality in the "Members" DTML Method to allow 
for /members/name/preferences or any other parameter you want to pass 
it. Just pick it up in an DTML-IF statement and do the rest.

Good luck.

J


>
>The thought I had was that "Members" could be a SQL method which takes
>"username" as a parameter, Ian then is passed in as that Username and the
>necessary data is pulled from the DB. This is fine except that I still need
>some other method to render the HTML page for delivery to the user and this
>would extend my url to : www.mysite.com/Members/Ian/rendermethod.
>
>The other problem with this is that it clutters the root with the Members
>SQLMethod and the rendermethod DTML document. I might start adding more
>URL's like : www.mysite.com/Members/Ian/preferences or
>www.mysite.com/Members/Ian/pastposts and the "preferences" and "pastposts"
>documents would end up in the root too. All these things belong in a Members
>folder, not at the root.
>
>I'm missing something important, I'd appreciate any enlightenment you could
>bring to this.
>
>- Ian.

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Products, Factories, Permissions!!

2000-06-06 Thread Frances Keegan

I have a problem regarding permissions (I think).  I am using version 2.1.4.
I have a set-up like the one below:

STAFF_FOLDER_HOME   -   ONE named user with role as manager 
for this
entire folder and its contents.
(permitted to do all normal managerial 
 tasks).  Anonymous can
View, View  Contents Information, 
SearchZCatalogue & Use
Database Methods.

STAFF_MEMBER1_FOLDER-   As above
STAFF_MEMBER2_FOLDER-   As Above
STAFF_MEMBER3_FOLDER-   As Above


I have created a template using designer, builder etc., and have added this
to the AddList.  The template itself works ok; the problem is when the
template is used within these folders.

The manager of any of the above folders is able to choose the Instant Site
from the AddList, and fill in all the details in the form but when the form
is submitted it asks for your password again.  When you enter your password,
even though correct, it tells you that authorisation has failed and to try
again.  Eventually you are told that you are not authorised to
manage_changeProperties, even though these have been specified in the
Permissions tab as something the manager is allowed to do.

Please can anyone help - I have being going round in circles for what seems
like forever.

Thanks,
Frances


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

2000-06-06 Thread Andrew Kenneth Milton

+[ Gijs Reulen ]-
| Gregor Hoffleit <[EMAIL PROTECTED]> wrote:
| 
| > How about I18N as a topic for one of the discussions ? I guess many European
| > sites and developers struggle with problems of I18N.
| 
| What is I18N ? I did not know I am struggling with that :-) ?

InternationalisatioN (s/s/z/ if you're an american) it's called
I18N because there are 18 letters between the I and the N.

-- 
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 |  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] I18N

2000-06-06 Thread Gijs Reulen

Gregor Hoffleit <[EMAIL PROTECTED]> wrote:

> How about I18N as a topic for one of the discussions ? I guess many European
> sites and developers struggle with problems of I18N.

What is I18N ? I did not know I am struggling with that :-) ?

Gijs Reulen


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

2000-06-06 Thread Ian Sparks

Bill,

Thanks for the reply. Yes, I would be getting the data from a SQL statement.

Let me explain what I am trying to achieve.

I want to structure my site like this :

http://mysite.com/Members/
To: "Ian Sparks" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, June 06, 2000 10:32 AM
Subject: Re: [Zope] www.mysite.com/Members/


Ian Sparks wrote:
>
> I have the source here, perhaps you can point me to where I should be
> looking - the PTK is reasonably large.
>
> AFAICS the PTK uses a folder called Members and adds folders under that
for
> each registered user :
>
> Members
>Fred
>   FredContent1
>   FredContent2
>   FredContent3
>Jim
>   JimsContent
>
> Nothing database-driven about that.


See below...

...

> >I want to produce a home-page on my site using a URL like :
> >
> >http://www.zope.org/Members/Fred
> >
> >
> >I'm a little confused as to how I would go about this in a dynamic way
> where
> >I would pull the contents of the page out of a database.
> >
> >A non-database way would be to :
> >
> >/Members (folder)
> >/Fred (sub-folder or Document)
> >/Jim (sub-folder or Document)
> >/Jane (sub-folder or Document)
> >
> >But I want to be able to generate the /Members/Fred page dynamically.


What exactly would you generate this off of?

I would guess from data in a databse (SQL)?

If so, you could do a select statement to ge tthe userlist.
You would then make a 'template' that built a page from the data in a
database, where username==username (ie Fred).

But, you could be asking for something completely different. ;)

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





___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] highly available Zope thread; our hanging problem

2000-06-06 Thread Brian Takashi Hooper

Hi all -

I was looking at the discussion from April that was posted on the
HighlyAvailableZope Wiki about problems with Zope hanging; we had a
similar situation here at Digital Garage which seemed to be alleviated
by changing the zombie_timeout to be really short (like, 1 minute). 
Before changing the zombie_timeout, the server would periodically hang
and not give any responses to requests, sometimes recovering after a
short time.

At this point, I don't have anything more than just an empirical
observation - changing this parameter seemed to help our server.  Has
anyone else noticed anything similar, or can explain this observation?

Thanks,
--Brian Hooper

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




[Zope] Re: [Zope-dev] [ANN] Zope at Linuxtag 2000 in Stuttgart

2000-06-06 Thread Gregor Hoffleit

I'll try very hard to be able to show up at least one day at the LinuxTag;
I'm going to try to help out at the Debian booth as well.

How about I18N as a topic for one of the discussions ? I guess many European
sites and developers struggle with problems of I18N.

Another topic I'm very interested in is packaging and distribution of Zope
extensions: keywords are Distutils, packages, zexp's, a package/dependency
tool like Debian's APT, distribution etc. pp., cf. Simon Michael's recent
rant about ZWiki/ZWikiWeb.

Looking forward to meet you,

Gregor



On Fri, Jun 02, 2000 at 01:51:33PM -0700, Stephan Richter wrote:
> The Linuxtag will be from June 29th (Thursday) to July 2nd (Sunday). It 
> will be in the Exhibition Center (Messegelaende) in Stuttgart, Germany.
> 
> I know we have little time to organize the conference (26 days). We have 
> one day to fill with speeches and discussions, so please let me know if 
> there are people willing to give some talks or want to have "Special 
> Interest Group" discussions, like E-commerce, XML or Portals in Zope. I 
> would also like to know, who would be able to come, so I can give the 
> Linuxtag staff some feedback.

 PGP signature


Re: [Zope] www.mysite.com/Members/

2000-06-06 Thread Bill Anderson

Ian Sparks wrote:
> 
> I have the source here, perhaps you can point me to where I should be
> looking - the PTK is reasonably large.
> 
> AFAICS the PTK uses a folder called Members and adds folders under that for
> each registered user :
> 
> Members
>Fred
>   FredContent1
>   FredContent2
>   FredContent3
>Jim
>   JimsContent
> 
> Nothing database-driven about that.


See below...

...

> >I want to produce a home-page on my site using a URL like :
> >
> >http://www.zope.org/Members/Fred
> >
> >
> >I'm a little confused as to how I would go about this in a dynamic way
> where
> >I would pull the contents of the page out of a database.
> >
> >A non-database way would be to :
> >
> >/Members (folder)
> >/Fred (sub-folder or Document)
> >/Jim (sub-folder or Document)
> >/Jane (sub-folder or Document)
> >
> >But I want to be able to generate the /Members/Fred page dynamically.


What exactly would you generate this off of?

I would guess from data in a databse (SQL)?

If so, you could do a select statement to ge tthe userlist.
You would then make a 'template' that built a page from the data in a
database, where username==username (ie Fred).

But, you could be asking for something completely different. ;)

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




Re: [Zope] Too many Roles?

2000-06-06 Thread Stuart 'Zen' Bishop

On Mon, 5 Jun 2000, David Ornstein wrote:

> >>> Is it crazy to have 20 or 30 roles in my Zope system? 

Nah.

Note that you need to create roles at a point in the tree, and they 
then appear and are usable on the management interfaces from that point
down.

I have to restrict access to resources by student subject or course.
I'm currently only using about 60, but its quite possible I'll quickly
end up in in the hundreds when more students start using Zope resources.
The trick is to only 'create' the role when you need to grant rights
to it. A role exists only in the point in the tree it is created and
down, and there is nothing to stop you creating the same role in
multiple locations. If you create them all in your root folder, your
security screens become useless, but it is fine if you only have
5-10 defined at any particular point.

-- 
Stuart Bishop  Work: [EMAIL PROTECTED]
Senior Systems Alchemist   Play: [EMAIL PROTECTED]
Computer Science, RMIT University


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




Re: [Zope] How to backup and restore a Zope application

2000-06-06 Thread Itamar Shtull-Trauring

Jilani Khaldi wrote:

> is there a way to backup and restore a Zope application so I can move it
> from a coputer to another?
> I have seen in the utility directory but I found only "load_site.py".
> Thanks.

The Zope database is stored in var/Data.fs - that's most likely all you need
for a backup.  

If you want to have the same Zope install running on a different computer
and If you've installed Zope Products you'll also need to copy them from
lib/python/Products, and any External Methods you added from Extensions/.

-- 
Itamar S.T.  [EMAIL PROTECTED]   
"It don't get thingier than that!"

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




Re: [Zope] detail record editing

2000-06-06 Thread Stuart 'Zen' Bishop

On Mon, 5 Jun 2000, Robert Del Huerto wrote:

> database.  I'm stuck after that.  The form only has one 'action' so how
> would I get it to handle the right function depending on the button that
> was pushed?  I'm no HTML expert but I've looked around quite a bit for

It can be done with some badly documented magic (see 
http://www.zope.org/Members/Zen/howto/FormVariableTypes when zope.org
is working again :-P)

Example:







In this example, the action is never called. If the user clicks on
the delete button, the method 'delete' (generally in the same folder as this
form) is called instead of the action. Similarly, click on Modify and the 
method called 'modify' is called instead of the action.

I'll try to remember to put this up as a tip on zope.org when its possible...

-- 
Stuart Bishop  Work: [EMAIL PROTECTED]
Senior Systems Alchemist   Play: [EMAIL PROTECTED]
Computer Science, RMIT University



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

2000-06-06 Thread Chris McDonough

Pierre, check back on zope.org in a few hours, it's having problems. 
The howto is still there, I'm sure.

Pierre Rougier wrote:
> 
> hi all,
> I am looking for the documentation of the "multiple selection" type, but
> the "how to" does not exist anymore on zope.org. argh...
> Has anyone of u a copy of the documentation?
> If it is the case, please send me, or explain me how does it work
> 
> (what I want is a ZClass propertie wich allow to choose an item in a
> list, I though multiple-selections were fine for that).
> 
> Thanks for your attention.
> 
> Pierre
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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] Can't find some products on www.zope.org

2000-06-06 Thread Chris McDonough

Something's hosed on Zope.org.  It won't be available for at least a few
hours.  This is baaad.  Sorry.

Petr Knapek wrote:
> 
> Hi Zopists,
> today I tried to download 2 products for zope from www.zope.org (namely
> 'Photo' and 'A Simple Photo Album Product' and the server respond me
> that the pages don't exist. This is not problem of these 2 products but
> also other pages. I am in time stress and I need very urgent the above
> noticed products. If somebody could send me those products it will be
> perfect. I don't know when www pages will work correctly.
> 
> Petr
> --
> Petr Knápek
> NEXTRA Czech Republic, s.r.o., Veveøí 102, 659 10 Brno, Czech Republic
> e-mail: mailto:[EMAIL PROTECTED]
> tel:+420-5-41 558 394
> FAX:+420-5-41 558 390
> 
> "Perl is worse than Python because people wanted it worse."
> Larry Wall, 14 Oct 1998
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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] GadFly DB and Zope

2000-06-06 Thread Jilani Khaldi

Hi,
I am recently using the database GadFly and yesterday, I discovered with
pleasure that it is part of Zope (ZGadflyDA); so, I will be happy if
somebody tells me with a little example, or point me where to find some
information to get GadFly interact with it Zope (just how to call field1
and field2 from the database test.gfd).

Thank you.

Jilani

ps.
Zope is really cool!

--

___
http://space.tin.it/scuola/jkhaldi
FreeBSD ~ The Power to Serve



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




[Zope] How to backup and restore a Zope application

2000-06-06 Thread Jilani Khaldi

Hi,
is there a way to backup and restore a Zope application so I can move it
from a coputer to another?
I have seen in the utility directory but I found only "load_site.py".
Thanks.

--

___
http://space.tin.it/scuola/jkhaldi
FreeBSD ~ The Power to Serve



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Can't find some products on www.zope.org

2000-06-06 Thread Petr Knapek

Hi Zopists,
today I tried to download 2 products for zope from www.zope.org (namely
'Photo' and 'A Simple Photo Album Product' and the server respond me
that the pages don't exist. This is not problem of these 2 products but
also other pages. I am in time stress and I need very urgent the above
noticed products. If somebody could send me those products it will be
perfect. I don't know when www pages will work correctly.

Petr 
-- 
Petr Knápek
NEXTRA Czech Republic, s.r.o., Veveří 102, 659 10 Brno, Czech Republic
e-mail: mailto:[EMAIL PROTECTED]
tel:+420-5-41 558 394
FAX:+420-5-41 558 390

"Perl is worse than Python because people wanted it worse."
Larry Wall, 14 Oct 1998

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

2000-06-06 Thread Pierre Rougier

hi all,
I am looking for the documentation of the "multiple selection" type, but
the "how to" does not exist anymore on zope.org. argh...
Has anyone of u a copy of the documentation?
If it is the case, please send me, or explain me how does it work

(what I want is a ZClass propertie wich allow to choose an item in a
list, I though multiple-selections were fine for that).

Thanks for your attention.

Pierre


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

2000-06-06 Thread a . wacknitz


> I'm just beginning my journey into Zopeland so please forgive my
> ignorance.  I'd like to be able to give users a chance to edit records
> found in a table by selecting the desired record's checkbox and then
> clicking 'Modify'.  This is similar to the Zope management screen.  I
> just don't know how to approach it.
>
> I can get Zope to generate a table and form like this from an SQL
> database.  I'm stuck after that.  The form only has one 'action' so how
> would I get it to handle the right function depending on the button that
> was pushed?  I'm no HTML expert but I've looked around quite a bit for
> an answer and I can't seem to find any info on handling multiple submit
> buttons.  Can Zope make this any easier?  (using ZClasses, maybe?)  I've
> also tried searching through the mail archives but I haven't found
> anything yet.  (There are a lot of messages to go through them one at a
> time.)

My solution for this kind of problem is to have a DTML method that delegates
to the
appropriate DTML methods. Therefore each button gets a value and a name, eg.



The DTML method delegating the calls looks like this:


  


  


  


The except part catches the cases where an error occurs such like action is
not determined.
Beware of the fact that you might want to pass further parameters in order
to determine the
selected item or so.

HTH
Andreas

Francotyp-Postalia AG & Co.
Dipl. Inform. Andreas Wacknitz
Abteilung TEE
Triftweg 21-26
D-16547 Birkenwerder
**
This email message has been swept by MIMEsweeper for the presence of
computer viruses.

Francotyp-Postalia AG & Co.


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