Re: [Zope-dev] BTreeFolder released

2000-07-07 Thread Toby Dickenson

On Mon, 03 Jul 2000 16:51:23 -0400, Shane Hathaway
[EMAIL PROTECTED] wrote:

I had some inspiration today and discovered a simple way to write a
BTreeFolder implementation.

Wahay!

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

It works better than I thought it would.  It allows you to store
thousands (well, I've tested it with only 1536, but I don't know of any
limit) of objects with a user interface optimized for such a large
folder.

I'm interested, but don't have time to install it at the moment. Could
someone post a gif of it's user interface please?


Toby Dickenson
[EMAIL PROTECTED]

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




RE: [Zope-dev] Request for amplification on new Product permissions API.

2000-07-07 Thread Brian Lloyd

 So, what do I need to do to allow controlled access to this object?
 I understand that Shopper, inheriting from SimpleItem, already has
 the access to unprotected subobjects flag.  And I'd rather protect
 the object correctly, anyway grin.  I tried adding an ac_permissions
 structure to the class, giving View permission to the attribute
 that is throwing the unauthorized error, but that doesn't seem to
 have changed the behavior.  

Are you calling:

Globals.default__class_init__(MyBasketClass)

on your Basket class? This is (poorly documented but) 
necessary for permissions declared in __ac_permissions__ 
to be correctly initialized.


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




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




Re: [Zope-dev] BTreeFolder released

2000-07-07 Thread Martijn Pieters

On Fri, Jul 07, 2000 at 01:06:06PM +0100, Toby Dickenson wrote:
 I'm interested, but don't have time to install it at the moment. Could
 someone post a gif of it's user interface please?

Shane 'borrowed' Guido's time machine to post the following before you asked
this:

  http://www.zope.org/Members/hathawsh/BTreeFolder-announce

-- 
Martijn Pieters
| Software Engineermailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
| ZopeStudio: http://www.zope.org/Products/ZopeStudio
-

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




Re: [Zope-dev] BTreeFolder released

2000-07-07 Thread Martijn Pieters

On Fri, Jul 07, 2000 at 09:10:38PM +0200, Martijn Pieters wrote:
 Shane 'borrowed' Guido's time machine to post the following before you asked
 this:
 
   http://www.zope.org/Members/hathawsh/BTreeFolder-announce

Heh, I also made Shane move the screenshot to keep or News page clean.. =) So
the image is now at the original Product page:

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

-- 
Martijn Pieters
| Software Engineermailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
| ZopeStudio: http://www.zope.org/Products/ZopeStudio
-

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




Re: [Zope-dev] package descriptions

2000-07-07 Thread Michael Bernstein

ethan mindlace fremen wrote:
 
 Michael Bernstein wrote:
 
  Please change the page so both the title and the description
  have the same background color, but that the color is
  alternated between grey and white for odd and even Products.
 
 Ok, well, I've given that a try.  Some people think I should do it some
 other way.  If you feel strongly about it, email [EMAIL PROTECTED]

Thanks, that's a *lot* more legible (I do feel strongly
about it). What other ways are people asking for?

 It also shows the most recently edited products first, and sorting by
 anything or requesting more Member products hides all Digital Creations
 stuff.

Yeah, that's pretty slick. It occurs to me that the same
layout should be used for the How-To's page.

 More Products work is on the way in the medium-term future.
 
 I would still really appreciate it if people would change their products
 page so that the first line is a plain text summary of their product.  I
 have HTML quoted everything, which makes the formatting better, but some
 descriptions are still less than usefull.

Perhaps a 'short_description' property could be added to the
Product, and it would default to 'first line' only if that
property was blank.

 Thanks for your help,

You're welcome.

Michael Bernstein.

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




Re: [Zope] Problems shutting down Zope

2000-07-07 Thread Firestar

--Original Message--
From: Chris McDonough [EMAIL PROTECTED]
To: Firestar [EMAIL PROTECTED]
Sent: July 7, 2000 5:05:55 AM GMT
Subject: Re: [Zope] Problems shutting down Zope


This is a 'normal' message.  Zope 2.2 releases suppress the
error message on shutdown.

Phew...for once, i thought my linux distribution or zope installation is
broken:)

Not sure what's up with the tutorial.  You may want to try the
latest 2.2 beta release as the tutorial comes preinstalled.

Well, this is the error message i got:

-
Error Type: KeyError
Error Value: ELVIS_SIGHTINGS

Traceback (innermost last):
File /usr/local/Zope-2.1.6/lib/python/ZPublisher/Publish.py, line 214, in
publish_module
File /usr/local/Zope-2.1.6/lib/python/ZPublisher/Publish.py, line 179, in
publish
File /usr/local/Zope-2.1.6/lib/python/Zope/__init__.py, line 202, in
zpublisher_exception_hook
File /usr/local/Zope-2.1.6/lib/python/ZPublisher/Publish.py, line 165, in
publish
File /usr/local/Zope-2.1.6/lib/python/ZPublisher/mapply.py, line 160, in
mapply
(Object: addTutorial)
File /usr/local/Zope-2.1.6/lib/python/ZPublisher/Publish.py, line 102, in
call_object
(Object: addTutorial)
File
/usr/local/Zope-2.1.6/lib/python/Products/ZopeTutorial/TutorialTopic.py,
line 176, in addTutorial
File /usr/local/Zope-2.1.6/lib/python/OFS/DTMLMethod.py, line 150, in
__call__
(Object: setup)
File /usr/local/Zope-2.1.6/lib/python/DocumentTemplate/DT_String.py, line
502, in __call__
(Object: setup)
File /usr/local/Zope-2.1.6/lib/python/DocumentTemplate/DT_In.py, line 691,
in renderwob
(Object: sample_data)
File /usr/local/Zope-2.1.6/lib/python/DocumentTemplate/DT_Util.py, line 335,
in eval
(Object: insert(_.getitem('sequence-item')))
(Info: insert)
File string, line 0, in ?
File /usr/local/Zope-2.1.6/lib/python/Shared/DC/ZRDB/DA.py, line 430, in
__call__
(Object: insert)
File /usr/local/Zope-2.1.6/lib/python/Products/ZGadflyDA/db.py, line 178, in
query
File /usr/local/Zope-2.1.6/lib/python/Products/ZGadflyDA/gadfly/gadfly.py,
line 349, in execute
File /usr/local/Zope-2.1.6/lib/python/Products/ZGadflyDA/gadfly/sqlmod.py,
line 596, in relbind
File /usr/local/Zope-2.1.6/lib/python/Products/ZGadflyDA/gadfly/gfdb0.py,
line 206, in get_for_update
File /usr/local/Zope-2.1.6/lib/python/Products/ZGadflyDA/gadfly/gfdb0.py,
line 1051, in __getitem__
KeyError: (see above)

--

If anyone has tried out the tutorial on Zope 2.1.6 and manage to solve this
problem, pls tell me!:)

regards,
firestar


__
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Number of zope processes on Linux and OpenBSD

2000-07-07 Thread Ragnar Beer

Howdy! I have a question concerning the number of running zope 
processes: I used to run Zope under Linux and there was always more 
than a handful of zope processes running. Now I switched to OpenBSD 
and there is only one. How comes? I guess the more zope processes I 
have running the more requests I can satisfy?

--Ragnar

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

2000-07-07 Thread ulrich . schreiner



with zope 2.2.0a1 there was a problem with the tutorial and Gadfly

read the last chapter here, perhaps it meets your problem:
http://www.zope.org/Products/Zope/2.2.0a1/upgrading_to_220

/usc

Re: [Zope] Reusing standard_html_header/footer

2000-07-07 Thread Michael Gutmann

On Thu, 6 Jul 2000, Bill Anderson wrote:

 Michael Gutmann wrote:
  
...

 Not quite sure I understand what you are trying to do but

...
Well, okay, not exactly, since we're talking acquisition not inheritance.
But, the idea is the same. He wants to display the previous
standard_html_header, with some additional stuff added, in his SubFolder's
standard_html_header.

--Jeff

Right, at least you got my point. But I didn't get Bill's Mail, or 
else I would have tried to explain it to him. Did it come over the list??

A little confused,
Michael

-- 
Michael Gutmann M.A.
[EMAIL PROTECTED]
Universitaetsrechenzentrum Heinrich-Heine-Universitaet Duesseldorf

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

2000-07-07 Thread Michael Arndt

a) what do i have to to to use SSL and Zope ?
normaly i use Apache and Zope. Has anyone
Apache SSL or mod_ssl and Zope as Platform ?

b) User Admin:

if i define users i two disjunct Contexts of Zope,
can i somehow merge this accounts or does that mean they have to be
defined
at root context ?
Vice versa is it possible that two accounts with the same id
exist in different parts of the Zope tree without knowing of each other
?

Micha

-- 

Michael Arndt
science + computing gmbh
c/oCAE-Systemservice
Abt. I/FS-2, CAE Systeme, Visualisierung
Tel. +49 (841) 89-37421 Fax -35093
mail [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: [Zope-Annce] ANN: Forthcoming Zope Book

2000-07-07 Thread David Hodgkinson


Amos Latteier [EMAIL PROTECTED] writes:

 We're excited about the book and think that it will fill an important
 hole the current official Zope docs.

Most importantly, have you chosen an animal for the front cover yet?

-- 
Dave Hodgkinson, http://www.hodgkinson.org
Editor-in-chief, The Highway Star   http://www.deep-purple.com
  Apache, mod_perl, MySQL, Sybase hired gun for, well, hire
  -

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Number of zope processes on Linux and OpenBSD

2000-07-07 Thread Oleg Broytmann

On Fri, 7 Jul 2000, Ragnar Beer wrote:
 Howdy! I have a question concerning the number of running zope 
 processes: I used to run Zope under Linux and there was always more 
 than a handful of zope processes running. Now I switched to OpenBSD 
 and there is only one. How comes? I guess the more zope processes I 
 have running the more requests I can satisfy?

   This is because on linux /bin/ps shows ALL threads as processes; on
other unicies ps show only main thread.

Oleg.(All opinions are mine and not of my employer)
 
Oleg Broytmann  Foundation for Effective Policies  [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


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




[Zope] Re: [ZDP] Re: [Zope-Annce] ANN: Forthcoming Zope Book

2000-07-07 Thread Rik Hoekstra




 
  We're excited about the book and think that it will fill an important
  hole the current official Zope docs.
 
 Most importantly, have you chosen an animal for the front cover yet?
 

Aren't there any pictures of Zopes?

Rik

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




Re: [Zope] Re:Web Site newbie

2000-07-07 Thread Andy Gates

Message-ID: [EMAIL PROTECTED]
Priority: NORMAL
X-Mailer: Execmail for Win32 5.1 Build (9) 
MIME-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"

 Most stuff 90% of sites do can be done in Zope and ZServer is great for
 that. To serve from ZServer I think files have to be in Zope (but I might be
 wrong on that)...

Well, files could also be in an ordinary structure and referred to 
using the External FileSystem product, which creates a link in the Zope
Object Database to a folder on your machine.  I use this for legacy 
compatibility - to access an old folder of images that I can't (yet) 
move over to Zope only.

AndyG

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

2000-07-07 Thread wai

Hi All,

Using SQLSession v 0.2.9, hit by this problem :

Zope Error

 Zope has encountered an error while publishing this resource.

 AttributeError

 Sorry, a Zope error occurred.

!--
Traceback (innermost last):
  File E:\MYBOOK~2\lib\python\ZPublisher\Publish.py, line 214, in
publish_module
  File E:\MYBOOK~2\lib\python\ZPublisher\Publish.py, line 179, in publish
  File E:\MYBOOK~2\lib\python\Zope\__init__.py, line 202, in
zpublisher_exception_hook
(Object: ApplicationDefaultPermissions)
  File E:\MYBOOK~2\lib\python\ZPublisher\Publish.py, line 165, in publish
  File E:\MYBOOK~2\lib\python\ZPublisher\mapply.py, line 160, in mapply
(Object: index_html)
  File E:\MYBOOK~2\lib\python\ZPublisher\Publish.py, line 102, in
call_object
(Object: index_html)
  File E:\MYBOOK~2\lib\python\OFS\DTMLDocument.py, line 166, in __call__
(Object: index_html)
  File E:\MYBOOK~2\lib\python\DocumentTemplate\DT_String.py, line 502, in
__call__
(Object: index_html)
  File E:\MYBOOK~2\lib\python\OFS\DTMLMethod.py, line 146, in __call__
(Object: standard_html_header)
  File E:\MYBOOK~2\lib\python\DocumentTemplate\DT_String.py, line 502, in
__call__
(Object: standard_html_header)
  File E:\MYBOOK~2\lib\python\Products\SQLSession\SQLSession.py, line 287,
in __call__
(Object: Session)
  File E:\MYBOOK~2\lib\python\Products\SQLSession\SQLSession.py, line 320,
in newSession
(Object: Session)
AttributeError: path

--

And I had checked the SQLsession.py, the script stop at :
 response.setCookie(self.cookie_name, sessionName, path=self.path)

But I called the session with cookie.

Any idea what's wrong ??

Please help. Thanks

Wai


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

2000-07-07 Thread Andy Gates

Message-ID: [EMAIL PROTECTED]
Priority: NORMAL
X-Mailer: Execmail for Win32 5.1 Build (9) 
MIME-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"

 Is better to put some mor lines from Traceback Exception
 To see the modul and the line

Here it is:
Traceback (innermost last):
  File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 214, in 
publish_module
  File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 179, in publish
  File C:\PROGRA~1\WebSite\lib\python\Zope\__init__.py, line 202, in 
zpublisher_exception_hook
(Object: ElementWithAttributes)
  File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 165, in publish
  File C:\PROGRA~1\WebSite\lib\python\ZPublisher\mapply.py, line 160, in mapply
(Object: news_maintenance)
  File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 102, in call_object
(Object: news_maintenance)
  File C:\PROGRA~1\WebSite\lib\python\OFS\DTMLMethod.py, line 150, in __call__
(Object: news_maintenance)
  File C:\PROGRA~1\WebSite\lib\python\DocumentTemplate\DT_String.py, line 502, in 
__call__
(Object: news_maintenance)
  File C:\PROGRA~1\WebSite\lib\python\DocumentTemplate\DT_In.py, line 691, in renderwob
(Object: sql_news_search(story='%%'))
  File C:\PROGRA~1\WebSite\lib\python\DocumentTemplate\DT_Util.py, line 335, in eval
(Object: _.DateTime(startdate).isPast())
(Info: startdate)
  File lt;stringgt;, line 0, in ?
  File C:\PROGRA~1\WebSite\lib\python\DateTime\DateTime.py, line 545, in __init__
TypeError: (see above)

Any clues?

Andy

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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: [ZDP] Re: [Zope-Annce] ANN: Forthcoming Zope Book

2000-07-07 Thread David Hodgkinson


Rik Hoekstra [EMAIL PROTECTED] writes:

  
   We're excited about the book and think that it will fill an important
   hole the current official Zope docs.
  
  Most importantly, have you chosen an animal for the front cover yet?
  
 
 Aren't there any pictures of Zopes?

A basselope would be good.

-- 
Dave Hodgkinson, http://www.hodgkinson.org
Editor-in-chief, The Highway Star   http://www.deep-purple.com
  Apache, mod_perl, MySQL, Sybase hired gun for, well, hire
  -

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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: [squishdot] Re: Squishdot giving error DateTimeError?newbie

2000-07-07 Thread Chris Withers

[EMAIL PROTECTED] wrote:
 I am on zope 2.1.6
 In some post i saw that timezone can be changed. My timezone is India
 GMT+530. I was looking through the DateTime.py code where the
 timezones are listed.
   it is now giving Error:DateTimeError
ErrorValue:UnrecognisedTimeZone

This looks like a DateTime.py problem, not a Squishdot problem.
I'm going to chuck this in the collector in hope of a response sicne I'm
sure this isn't the first time someone has reported this problem.

 I donot know python, can we add my timezone to the list given.

That may be what needs doing, but probably as a source change...

 otherwise how do i change my system settings for a timezone which is
 compatible with squishdot.

I do GMT, and haven't had any problems, but that's not going to be
useful for you as anything but a stop-gap measure.

 I am being very let down, i very much wanted it to run, as this was
 the product which pulled me out of perl and got me into zope :-(

Don't worry, it'll get fixed soon, such is the joy of Open Source :-)

 can we run cron after midnight which opens a new instance of Squishdot
 and copies all the postings to this new Squish site.

You could, but that would be a seriously oversized sledgehammer for what
is probably a very small nut...

 Please help me out, otherwise i will have to go back to perl.

I wouldn't worry about that either, Perl is coming to Zope some time
soon...

good luck,

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] Stability - can you give us some advice?

2000-07-07 Thread J. Atwood

I have about 8 Zope websites of varying sizes and complexities. Early 
on when I was developing in Zope I had it hang a few times but since 
then (and I have done a lot of stuff for the last six months) I have 
really never had it hang. Two of the sites use PostgreSQL (6.5.3 and 
7.0) and four of them are served off of one instance and an old 
Pentium 166.

It has been my experience that Zope itself (non-betas which you 
should never be using in a production environment) is very stable and 
only hang due to OS issues or really bad DTML coding (loops). If the 
problems continue I would suggest trying a different OS environment 
(I am a very very happy RH Linux person).

J

At 1:50 AM -0300 7/7/2000, [EMAIL PROTECTED] wrote:
Hi,
I'm new to this list (to Zope too!)and I'm really impressed with its traffic.
This show us that this project is in active development.
In our company we are currently working to create a Web site with lots
of dynamic content, database access, webmail, etc..  so we decided 
to try Zope.
Although it's lack of documentation ( this would not be fair, with a search
engine we can dig out lots of useful info from the web) we experienced a
very fast development cycle. Now we're concerned about its stability. We
are almost finishing the first stage of project and some times Zope
hangs. It was  working ok, and then, all of a sudden, it just stops answers
requests. Last time it happend we changed a DTML Method to a DTML Document
and it worked again (if you like i'll try to tell you exactly what 
was happenning).
So, I'd like some advice to make it more stable. ( or tell me what i might
be doing wrong)

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




Re: [Zope] Is Zope slow?

2000-07-07 Thread J. Atwood

I have a lot of time and exposure to Tomcat so it made it easy for me 
to run those tests (BTW, now in production, on the same machine Zope 
is about 3 times faster!) but none really with  PHP or Mason. In the 
end of the day, though, as most of the people have been saying on 
this list, you really shouldn't be focusing on comparing the raw 
speed of two totally different applications with different feature 
sets. I would challenge you to find something as powerful /useful / 
extendable as Zope written in any language and if you did, we could 
run those benchmarks.

What I *would* suggest focusing on is can Zope provide you with the 
right amount of features and functionality and can you scale it? So, 
and god willing, your site that you build in Zope goes from 
0-1,000,000 hits a day, can you handle it? The answer is yes (a mix 
of Pentium, 256 MB Ram and fast drives with Linux will do that). What 
about if you double that or go to 10,000,000 a day? Well, that is 
where ZEO and load balancing will come in. I can personally tell you 
that you could set up four Pentium 300 MHz Zope installations running 
a ZEO instance behind a load balance (not nearly are complicated as 
it seems) and you would be able to handle most of your Yahoo dreams.

So, keep researching, asking the right questions and looking for 
those answers but don't get caught up in the benchmarking game too 
long, it is only one very small piece to the equation.

Good luck.

J

At 10:19 PM -0400 7/6/2000, Firestar wrote:
Thanks for your info. The benchmarks look impressive! However, what would be
interesting is how Zope performs compared to Apache+PHP or mod_perl/mason
and other open-source solutions...
If you happen (and have the time) to compare them, do tell me:)

regards,
firestar

--Original Message--
From: "J. Atwood" [EMAIL PROTECTED]
To: Firestar [EMAIL PROTECTED]
Sent: July 6, 2000 2:55:02 PM GMT
Subject: Re: [Zope] Is Zope slow?


No. Not when compared to other applications that do the same *type* of thing
(which there are very very few).

Check out an interesting set of benchmarks I ran against Zope and Tomcat
connecting to a PostgreSQL database.

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

J


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




Re: [Zope] Patch to DateTime.py

2000-07-07 Thread Rajil Saraswat

Hi,
 I am a newbie to zope and squish. My squishdot starts giving errors after
midnight. the offending error is Unrecognised Time Zone in DateTime.py
I am on GMT+530(India). As i donot know python, can you please tell where
i should add this timezone in DateTime.py, so this problem is resolved.

Thanks
Rajil Saraswat

On Fri, 7 Jul 2000, Curtis Maloney wrote:

 Greetings,
 
   In my current project, I have to print a lot of dates.  Fine, not a 
 problem... _.DateTime().strftime() is just the method, right?
 
   Wrong.
 
   The people who want this site want the local time, not UTC+0 that strftime 
 enforces.
 
   So, I created a tiny patch which adds  _.DateTime().strfltime(), which works 
 identically, except it passes LOCALTIME instead of GMTIME.
 
   It's tiny, it's simple, but it's REALLY HANDY!
 
 Have a better one,
   Curtis Maloney.
 
 dtml-var standard_work_disclaimer
 


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

2000-07-07 Thread Frederic Quin

Hi,

I am not sure to understand your problem but maybe you can use the following
meta HTML tag which redirect the user where you want...


head
meta http-equiv="Refresh" CONTENT="0 ; URL=new_url_html"
/head


If the DTML Method containing those lines is in a secured folder, you can add a
Proxy Manager Role to your method...


I Hope to be helpful
Fred

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Which PostGreSQL DA should I use?

2000-07-07 Thread Cary O'Brien

 On Fri, 07 Jul 2000, Eric L. Walstad wrote:
  OK, I am thinking about going from MySQL to PostgreSQL for its transactions
  and subqueries.  I am curious which DA I should use and why.  I see that I
  can choose from:
  
  1. SQLRelay
  2. ZPoPyDA
  3. ZPyGreSQLDA
  
  Which are you using and why did you choose it over the others?
  
 i have been asking the same Q too.  i am current;y using ZPygreSQLDa, and have
 been from the start.  i think there's no more development done on this  DA (
 imight be wrong though).
 

I wish there was.  For ZPyGreSQL, I would really like to see:

1) Thread-safe operation.  I.e., if desired, one database
   connection per thread.  Or better yet a pool of connections,
   allowing m threads, but n (nm) concurrent PostgreSQL queries.

2) A bit of introspection, i.e. showing the tables and columns.
   We're getting people who simply can't handle a command line,
   so they can't really run psql in a separate terminal window.
   Gadfly DA does this.

Any hints/takers.  I've looked over ZPyGreSQL pretty carefully -- it isn't
all that big.

 i wanted to try PoPy, but the last time i checked, i can't get the PoPy tar
 ball.  this is actively maintained, i think
 
 SQLRelay, i have compiled and installed, but i can't figure out how to use it. 
 i cant start the listener without an error.( can't bind something).  and i'm
 not too sure how how the connect string looks like if i have a user with no
 password.  but i think this may be the best solution, since we can specify the
 connection pool, and have a cache for results too.
 

Interesting.  Gotta look into this.

-- cary

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Which PostGreSQL DA should I use?

2000-07-07 Thread Oleg Broytmann

On Fri, 7 Jul 2000, Cary O'Brien wrote:
allowing m threads, but n (nm) concurrent PostgreSQL queries.

   It is impossible in PostgreSQL, and no DA could fix this.

Oleg.(All opinions are mine and not of my employer)
 
Oleg Broytmann  Foundation for Effective Policies  [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


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




RE: [Zope] Is Zope slow?

2000-07-07 Thread Coleman, Bryan

Was that Zap or Zope/Medusa. I have run some benchmarks that favored apache
serving the same "static" content that Zope/Medusa was serving.

- Bryan Patrick Coleman
  Questcon Technologies
  (336)273-2428
  [EMAIL PROTECTED]

 -Original Message-
 From: Andy McKay [SMTP:[EMAIL PROTECTED]]
 Sent: Thursday, July 06, 2000 10:15 AM
 To:   [EMAIL PROTECTED]
 Subject:  Re: [Zope] Is Zope slow?
 
   -maybe we could discuss network services/hoster_performance?
 
 This is more of a problem for most people. One evening whilst bored we
 calculated that Zope could happily serve enough people to fill up our
 pipe... so the bottle neck is our connection.
 
 Mind you we'd had a beer or two so calculations could be flawed.
 
 
  michael
  drawingincode
 
 
  ___
  Zope maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope
  **   No cross posts or HTML encoding!  **
  (Related lists -
   http://lists.zope.org/mailman/listinfo/zope-announce
   http://lists.zope.org/mailman/listinfo/zope-dev )
 
 
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )

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




Re: [Zope] Re: FSSession buglette

2000-07-07 Thread Pavlos Christoforou

On Fri, 7 Jul 2000, Paul Gresham wrote:

 Hi, Yep, I'm definitely running 0-4-0, I think the fact that I did
 something naughty caused the rename (and therefore the commit) to fail,
 when it expected to work. An exception in the commit then caused Zope to
 stop all commits. What is worrying is that someone much more naughty
 than I am, may just do something similar on our live system (Once this
 goes live)

Paul

When I was testing FSSession-0-4-0 before release I created all sorts of
weird situations and at least I got the impression that even under those
situations FSSession would behave ok. I suppose I could make it foolproof
by trying to serialize the contents everytime someone makes changes. This
would guarantee that no exception will be raised during commit, but as I
understand it it should be ok if an exception is raised during the first
phase of commit (ie during tpc_begin). Zope should remain in a consistent
state and the transaction machinery should clean up things ok, if
something bad happens during the first phase of commit. It is only if an
exception is raised in the second phase of commit that Zope refuses to
carry on more transactions. In any case please send me your setup that
creates such a problem with FSSession0.4.0 so I can look into it.

If you want to restrict the kind of objects that your users will store in
FSSession you could swap _dump and -load for the equivalent marshal ones.


Pavlos


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




[Zope] Problem with database packing (major data loss)

2000-07-07 Thread Richard Taylor



We have discovered a rather nasty problem. 

On Zope 2.1.6 if you you pack the database with '0' in the days box
and then pack it again with '1' in the days box bad things happen. In
our case the first pack resulted in a Data.fs of 17MBytes (not bad
from a started point of nearly 2GBytes) the second pack (which I
assumed would do nothing) resulted in a Data.fs of 3MBytes. Great I
thought, however it also broke most of my site. Some of the symptoms
are:

Accessing existing folders gives KeyError
Many of my ZClasses are turned into DTML Methods (that is the icon
next to them in the folder view is a DTML Method icon)
All the instances of the broken classes are broken.

 
Thankfully I kept backups before performing the packs.

This is repeatable on both the servers I run.

I am now nervous of packing but have no choice. 



Richard

PS. I still think Zope is great! I am just learning slowing how to run
it defensively


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] FYI - poss. reindex_object alleged 'bug' workaround

2000-07-07 Thread Jeff Sasmor

Zopers and PyCoders-

I was having a problem with ZCatalog-- namely, editing
the properties of a CatalogAware item (in a custom form) 
after creation resulted in no change to the indexed value in
the Catalog.

I know about reindex_object and was using that-- so it
wasn't just that I was leaving it out!  Hmmm.

I read the [EMAIL PROTECTED] list archives on zope.nipltd.com
(what a great resource, thanks!!!) and found some mentions that
this was broken in 2.1.6, which is what I am using.

ANYWAY, I found that 

dtml-call "_.this.reindex_object()"

solved the problem immediately (well, for me, anyway). 
Just thought I would pass this on so it would be archived for 
others with this problem (or at least something to try
in a moment of desperation!).

Why does this work?  I have some guesses about some of the 
PyCode in CatalogAwarenesss.py but I'm still too much of a
Python newbie to make any comments.


Jeff Sasmor
[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] Which PostGreSQL DA should I use?

2000-07-07 Thread kedai



-
 SQLRelay, i have compiled and installed, but i can't figure out how to use
it.
 i cant start the listener without an error.( can't bind something).  and
i'm
 not too sure how how the connect string looks like if i have a user with
no
 password.  but i think this may be the best solution, since we can specify
the
 connection pool, and have a cache for results too.


Interesting.  Gotta look into this.

please share some hints/tips on getting it working, would you?

-- cary


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

2000-07-07 Thread Brian Lloyd

   The people who want this site want the local time, not 
 UTC+0 that strftime 
 enforces.
 
   So, I created a tiny patch which adds  
 _.DateTime().strfltime(), which works 
 identically, except it passes LOCALTIME instead of GMTIME.
 
   It's tiny, it's simple, but it's REALLY HANDY!
 

Curtis - 

Please submit this to the Collector

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

...as a feature request w/patch. Patches posted via email 
tend to get lost in the rushing current of the lists :)


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




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




[Zope] Calculate difference between time input?

2000-07-07 Thread Peter Arvidsson

How do I calculate the difference between two times I get from a from?

Lets say time a = 09:45
and time b = 11:15

Then I want to calculate the difference. How do I calculate it? I'd also
like to know how to get the answers in differen formats. For example
caculating the input above I want to be able to get all of the following
results:
1:30 (One hour and thirty minutes)
1,5 (One and a half hour)
90 (Ninety minutes)

Help please :)


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




Re: [Zope] Problem with database packing (major data loss)

2000-07-07 Thread Martijn Pieters

On Fri, Jul 07, 2000 at 02:20:00PM +0100, Richard Taylor wrote:
 We have discovered a rather nasty problem. 
 
 On Zope 2.1.6 if you you pack the database with '0' in the days box
 and then pack it again with '1' in the days box bad things happen. In
 our case the first pack resulted in a Data.fs of 17MBytes (not bad
 from a started point of nearly 2GBytes) the second pack (which I
 assumed would do nothing) resulted in a Data.fs of 3MBytes. Great I
 thought, however it also broke most of my site. Some of the symptoms
 are:
 
 Accessing existing folders gives KeyError
 Many of my ZClasses are turned into DTML Methods (that is the icon
 next to them in the folder view is a DTML Method icon)
 All the instances of the broken classes are broken.
 
  
 Thankfully I kept backups before performing the packs.
 
 This is repeatable on both the servers I run.
 
 I am now nervous of packing but have no choice. 

This is a known problem, Jim Fulton checked a fix in several days ago. This
fix will be in 2.2.0b4, which should be out soon. The problem is in the second
pack, which packs to an earlier date than the previous pack.

When packing, Zope makes a backup of your Data.fs as well, renaming it
Data.fs.old. You can always put back this copy.

If you want to protect yourself from doing this again in 2.1.6, here is a
patch against lib/python/FileStorage.py:

--- FileStorage.py.orig Fri Jul  7 16:29:34 2000
+++ FileStorage.py  Fri Jul  7 16:29:16 2000
@@ -862,6 +862,12 @@
 
 return r
 
+def _redundant_pack(self, file, pos):
+file.seek(pos-8)
+p=u64(file.read(8))
+file.seek(p+16)
+return file.read(1) not in ' u'
+
 def pack(self, t, referencesf):
 """Copy data from the current database file to a packed file
 
@@ -900,6 +906,10 @@
 
 packpos, maxoid, ltid = read_index(
 file, name, index, vindex, tindex, stop)
+
+if self._redundant_pack(file, packpos):
+raise FileStorageError, (
+'The database has already been packed to a later time')
 
 rootl=[z64]
 pop=rootl.pop

-- 
Martijn Pieters
| Software Engineermailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
| ZopeStudio: http://www.zope.org/Products/ZopeStudio
-

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




Re: [Zope] Is Zope slow?

2000-07-07 Thread J. Atwood

 Well, i don't think my site will ever get that much hits:) Anyway, i check
 out Digicool website on this ZEO thing, and it seems that they charge abt
 $25,000 for this product alone(+consulting)? Not to belittle their effort,
 but that's a huge amount of money, considering that everything nowadays is
 "open-source":). Or did i interpret it wrongly? TIA.

ZEO is open source now. It used to be (a few months ago) that $25,000 but
now is completely open source (search for ZEO on Zope.org). It is in
Alpha/Beta and will be out soon. It probably one of the biggest things that
gets the littlest attention. It will bring Zope to a whole new level of
scaling the only 1,000,000 solutions offer now.

J


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




Re: [Zope] Calculate difference between time input?

2000-07-07 Thread Shane Hathaway

Peter Arvidsson wrote:
 
 How do I calculate the difference between two times I get from a from?
 
 Lets say time a = 09:45
 and time b = 11:15
 
 Then I want to calculate the difference. How do I calculate it? I'd also
 like to know how to get the answers in differen formats. For example
 caculating the input above I want to be able to get all of the following
 results:
 1:30 (One hour and thirty minutes)
 1,5 (One and a half hour)
 90 (Ninety minutes)

The mxDateTime package can do this.  You can access it through External
Methods.

Sorry there isn't an easier way yet. :-(

http://starship.python.net/~lemburg/mxDateTime.html

Shane

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




Re: [Zope] Problem with database packing (major data loss)

2000-07-07 Thread Richard Taylor

Brian Lloyd [EMAIL PROTECTED] writes:

  On Zope 2.1.6 if you you pack the database with '0' in the days box
  and then pack it again with '1' in the days box bad things happen. In
  our case the first pack resulted in a Data.fs of 17MBytes (not bad
  from a started point of nearly 2GBytes) the second pack (which I
  assumed would do nothing) resulted in a Data.fs of 3MBytes. Great I
  thought, however it also broke most of my site. Some of the symptoms
  are:
  
  Accessing existing folders gives KeyError
  Many of my ZClasses are turned into DTML Methods (that is the icon
  next to them in the folder view is a DTML Method icon)
  All the instances of the broken classes are broken.
  
   
  Thankfully I kept backups before performing the packs.
 
 Richard - 
 
 A notice was sent out to the list a week or so ago on this - 
 there is a bug in the packing machinery that (as you found) 
 doesn't correctly handle things when you pack to certain time 
 and then subsequently pack to an earlier time. The fix for 
 this is already checked in for 2.2.
 
 Brian Lloyd[EMAIL PROTECTED]
 Software Engineer  540.371.6909  
 Digital Creations  http://www.digicool.com 
 


Brian

You have my apology I did not spot the this notice.

I shall move to 2.2 just as soon as it is out of Beta testing.

Richard

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




[Zope] DTML method to add a folder and put image inside

2000-07-07 Thread John Verzani

Zope has me stumped.

I want to make a _simple_ form and process to add a folder then insert 
into that folder some properties and an image. Here is what I am
trying with my DTML method for processing the form request:


dtml-call "manage_addFolder(REQUEST['id'],REQUEST['title'])"
dtml-with "REQUEST['id']"
dtml-if image
  dtml-call "manage_addImage('image',image)"
/dtml-if

dtml-call "manage_addProperty('example',example,'text')"

/dtml-with

dtml-call "RESPONSE.redirect(URL1+'/manage_workspace')"


I thought by using the dtml-with and the folder id that the
subsequent manaage_add* would add to the newly created folder. I know
I'm on the right track for when I hardcode the folder name (replace
REQUEST['id'] with a string) what I want to do works.

Thanks for any help.


-- 

.  John Verzani  mailto:[EMAIL PROTECTED]  .
.  Dept. of Mathematics  http://www.math.csi.cuny.edu/~verzani .
.  City University of New York tel: (718) 982-3623 .
.  College of Staten Islandfax: (718) 982-3631 .
.  Staten Island, NY 10314 .


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

2000-07-07 Thread Gregory Haley

Hi,

I am trying to pass a column id through a ZMySQL method
call.  The thing looks like this:

UPDATE venapoll 
  SET dtml-sqlvar resp type=string = last_insert_id(+1)
WHERE poll_num = 3;

where resp is a value passed in by a dtml method and can
have the value of resp0, resp1, resp3, etc.  These are the
names of columns.  Zope is blowing chuncks, because the
parsed call is actually:

  SET 'resp1' = last_insert_id(+1)

and ZMySQL needs to have the value passed in as 

  SET resp1 = . . .

(i.e., without the quotes).

Has anyone had a problem with this?

TIA.

ciao!
greg.

Gregory Haley
venaca.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] Redirect Back

2000-07-07 Thread Chris McDonough

You may either use Javascript's history method or use
RESPONSE.REDIRECT(REQUEST['HTTP_REFERER']).  The former is preferred as
the latter isn't always accurate nor available.

 -Original Message-
 From: Aaron Williamson [mailto:[EMAIL PROTECTED]]
 Sent: Friday, July 07, 2000 11:45 AM
 To: [EMAIL PROTECTED]
 Subject: [Zope] Redirect Back
 
 
 Does anyone know if RESPONSE.redirect() can somehow be used 
 to send the
 user "back," like they clicked the back button on the browser?
 
 Thanks,
 
 Aaron Williamson
 Operation Mobilisation
 [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] Redirect Back

2000-07-07 Thread Chris McDonough

Oops, sorry, not RESPONSE.REDIRECT, instead RESPONSE.redirect.

 -Original Message-
 From: Chris McDonough [mailto:[EMAIL PROTECTED]]
 Sent: Friday, July 07, 2000 11:54 AM
 To: 'Aaron Williamson'; [EMAIL PROTECTED]
 Subject: RE: [Zope] Redirect Back
 
 
 You may either use Javascript's history method or use
 RESPONSE.REDIRECT(REQUEST['HTTP_REFERER']).  The former is 
 preferred as
 the latter isn't always accurate nor available.
 
  -Original Message-
  From: Aaron Williamson [mailto:[EMAIL PROTECTED]]
  Sent: Friday, July 07, 2000 11:45 AM
  To: [EMAIL PROTECTED]
  Subject: [Zope] Redirect Back
  
  
  Does anyone know if RESPONSE.redirect() can somehow be used 
  to send the
  user "back," like they clicked the back button on the browser?
  
  Thanks,
  
  Aaron Williamson
  Operation Mobilisation
  [EMAIL PROTECTED]
  
  
  ___
  Zope maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope
  **   No cross posts or HTML encoding!  **
  (Related lists - 
   http://lists.zope.org/mailman/listinfo/zope-announce
   http://lists.zope.org/mailman/listinfo/zope-dev )
  
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )
 

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

2000-07-07 Thread Svante Kleist


Has anybody tried to validate the Zope homepage? Like so:

 URL: http://validator.w3.org/check?uri=http%3A%2F%2Fwww.zope.org%2F 

My attention was drawn to this sad fact when I reported
(was I thought was) a bug in Mozilla:

 URL: http://bugzilla.mozilla.org/show_bug.cgi?id=44757 

Is Zope buggy, producing HTML like this?

Svante Kleist
NEMESIS systemDesign, Stockholm




___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] DTMLDocument content - html quoted or not

2000-07-07 Thread Aleksander Salwa


I have ZClass (called Artykul) which subclasses DTMLDocument.
This class has a method, used to view document, which appends some special
stuff to document's content. For some reasons I don't want to put this
stuff directly into document's data.
In mentioned method, to render document, I wrote:

dtml-var this

But this outputs html quoted text (so I see HTML and DTML tags in browser,
instead of formatting and variables).
When I render this object from another methods (external to this class),
everything works as usual.

Is this a bug or feature ? :)

_
Aleksander Salwa, [EMAIL PROTECTED]
An applicant for Zopista


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

2000-07-07 Thread kwan


hi,
I am using Zope 2.1.6 and Squishdot 0.4.1
Squishdot works greate and works the way as I want. However,
I cannot edit the permission setting for a squishdot site.
Whenever I try to change something I got AttributeError and the Error
value is
'managemanage_editForm'
So I tried to change the permission for individal roles, they works
except the acquire permission setting part. Here I got the same error
again.
These are the error code I got form the page,
!--
Traceback (innermost last):
 File C:\PROGRA~1\APACEWEB\lib\python\ZPublisher\Publish.py,
line 214, in publish_module
 File C:\PROGRA~1\APACEWEB\lib\python\ZPublisher\Publish.py,
line 179, in publish
 File C:\PROGRA~1\APACEWEB\lib\python\Zope\__init__.py, line
202, in zpublisher_exception_hook
 (Object: ElementWithAttributes)
 File C:\PROGRA~1\APACEWEB\lib\python\ZPublisher\Publish.py,
line 165, in publish
 File C:\PROGRA~1\APACEWEB\lib\python\ZPublisher\mapply.py,
line 160, in mapply
 (Object: manage_acquiredPermissions)
 File C:\PROGRA~1\APACEWEB\lib\python\ZPublisher\Publish.py,
line 102, in call_object
 (Object: manage_acquiredPermissions)
 File C:\PROGRA~1\APACEWEB\lib\python\AccessControl\Role.py,
line 193, in manage_acquiredPermissions
 (Object: ElementWithAttributes)
 File C:\PROGRA~1\APACEWEB\lib\python\AccessControl\Permission.py,
line 171, in setRoles
AttributeError: (see above)
-->
so, I look inside the setRoles function, it seems, 'self.data' contain
the name 'managemanage_editForm' which cause the error, am I right here?
I also look through the __init__() for squishdot, I couldn't see how it
pass the 'data' passes to Permisson object when it first instance.
Where should I look for to fix this 'managemanage_editForm' problems?
Kwan


[Zope] Problem with _[xyz]

2000-07-07 Thread Christian Zagrodnick

Hi all,


shouldn't dtml-var xyz and dtml-var "_['xyz']" return the same result?

Well - I don't know why but only the 1st is working.
(top.German.ActualPages is a folder; tThisIs... is a dtml-method)

1:
dtml-with "top.German.ActualPages"
dtml-var tThisIsTheXYZDocument
/dtml-with


2:
dtml-with "_['top.German.ActualPages']"
dtml-var tThisIsTheXYZDocument
/dtml-with


Of course I want to replace the 'top.German.ActualPages' with a variable...
but since it doesn't work with a hardcoded string it'll not work with a
variable.

Any hint?

Thanks


-- 
Christian Zagrodnick - Progressive Media Production
http://www.promp.de/   

Die Haftung ist auf das Gesellschaftsvermoegen beschraenkt.

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Number of zope processes on Linux and OpenBSD

2000-07-07 Thread Ron Bickers

I went the other way around and wondered why my single MySQL process on
FreeBSD was now a dozen or so on Linux.

As already mentioned, Linux assigns a process ID to every thread, so all
threads show in the process list.  On the BSDs (and probably most, if not
all other UNIX OSs), threads are not assigned PIDs, so they don't show.

Either way, Zope is running with multiple threads on both machines.

___

Ron Bickers
Logic Etc, Inc.
[EMAIL PROTECTED]


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
 Ragnar Beer
 Sent: Friday, July 07, 2000 2:55 AM
 To: [EMAIL PROTECTED]
 Subject: [Zope] Number of zope processes on Linux and OpenBSD


 Howdy! I have a question concerning the number of running zope
 processes: I used to run Zope under Linux and there was always more
 than a handful of zope processes running. Now I switched to OpenBSD
 and there is only one. How comes? I guess the more zope processes I
 have running the more requests I can satisfy?


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

2000-07-07 Thread Nils Jeppe

On Fri, 7 Jul 2000, Svante Kleist wrote:

 Has anybody tried to validate the Zope homepage? Like so:
  URL: http://validator.w3.org/check?uri=http%3A%2F%2Fwww.zope.org%2F 

I think this can be mostly attributed to the people who built zope.org. If
I validate some pretty plain standard page, I get nothing
except:

Error: Missing DOCTYPE declaration at start of document (explanation...)

...which arguably isn't really necessarry.

Of course, each product than includes rendered objects is only as good as
the html of its authors. But to say Zope generates terrible html is a bit
much, imho. ;-)



Nils




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

2000-07-07 Thread Ron Bickers

dtml-sqlvar does quoting of strings to aid in placing them in SQL queries.

Use just dtml-var resp instead of dtml-sqlvar ...

___

Ron Bickers
Logic Etc, Inc.
[EMAIL PROTECTED]


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Gregory Haley
 Sent: Friday, July 07, 2000 11:36 AM
 To: Zope
 Subject: [Zope] Unquoting a string.
 
 
 Hi,
 
 I am trying to pass a column id through a ZMySQL method
 call.  The thing looks like this:
 
 UPDATE venapoll 
   SET dtml-sqlvar resp type=string = last_insert_id(+1)
 WHERE poll_num = 3;
 
 where resp is a value passed in by a dtml method and can
 have the value of resp0, resp1, resp3, etc.  These are the
 names of columns.  Zope is blowing chuncks, because the
 parsed call is actually:
 
   SET 'resp1' = last_insert_id(+1)
 
 and ZMySQL needs to have the value passed in as 
 
   SET resp1 = . . .
 
 (i.e., without the quotes).
 
 Has anyone had a problem with this?


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




Re: [Zope] Problem with _[xyz]

2000-07-07 Thread Jim Washington

Hi, Christian

Christian Zagrodnick wrote:
 
 Hi all,
 
 shouldn't dtml-var xyz and dtml-var "_['xyz']" return the same result?

if xyz is a simple variable, yes.
 
 Well - I don't know why but only the 1st is working.
 (top.German.ActualPages is a folder; tThisIs... is a dtml-method)
 
 1:
 dtml-with "top.German.ActualPages"
 dtml-var tThisIsTheXYZDocument
 /dtml-with
 
 2:
 dtml-with "_['top.German.ActualPages']"
 dtml-var tThisIsTheXYZDocument
 /dtml-with

I may be wrong on this, but if the dots indicate subobjects, you may
want to do this

as Python sequence syntax: "_['top']['German']['ActualPages']"

or as "_['top'][aLanguage]['ActualPages']" assuming aLanguage is a
variable which may be e.g., 'German'

I hope this is a helpful hint.

-- Jim Washington
 
 Of course I want to replace the 'top.German.ActualPages' with a variable...
 but since it doesn't work with a hardcoded string it'll not work with a
 variable.
 
 Any hint?
 
 Thanks

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




Re: [Zope] http://www.zope.org: HORRIBLE HTML

2000-07-07 Thread Martijn Pieters

On Fri, Jul 07, 2000 at 06:35:36PM +0200, Svante Kleist wrote:
 Has anybody tried to validate the Zope homepage? Like so:
 
  URL: http://validator.w3.org/check?uri=http%3A%2F%2Fwww.zope.org%2F 
 
 My attention was drawn to this sad fact when I reported
 (was I thought was) a bug in Mozilla:
 
  URL: http://bugzilla.mozilla.org/show_bug.cgi?id=44757 
 
 Is Zope buggy, producing HTML like this?

This is entirely our (Zope.org website maintainers) fault. Zope.org in it's
current state has somewhat "evolved" over time as people had some spare time
to apply fixes in between jobs, which shows in the, ahem, dare I say "quality"
of the produced HTML.

That said, we did _try_ to bring up the HTML to succesfully validate through
W3C's tools, but as it turns out Netscape's CSS implementation is so buggy we
need to leave the /H2 end-tags to keep things working.. =(

-- 
Martijn Pieters
| Software Engineermailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
| ZopeStudio: http://www.zope.org/Products/ZopeStudio
-

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

2000-07-07 Thread Dieter Maurer

Terry Babbey writes:
  I am trying to build my object names and it is not working. Here is my
  code done in three ways and only one way works.
  #1 dtml-var "ProgCode+'AR'"
Use:

dtml-var "_[ProgCode + 'AR']"


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] FSSession used in Python???

2000-07-07 Thread Dan Narkiewicz

I want to write my own Product in python that uses FSSession to store a very 
minimum amount of information... For the life of me i cannot figure out how 
to correctly create an instance of an FSSession that can be manipulated 
inside my own python written Zope product... Any help would be.. well... 
helpful..

At the moment the code looks somethign like this:


-Start Python code-
from Products.FSSession.FSSession import FSSession

  --- a class definition ---
def FStest(self):
"""fssession test"""
self.a = FSSession()    error appears here
self.a.set('hey','there')
return 'done'
--End Python code--

-Start DTML---
dtml-var "Zope_object_name.test()"
-End DTML---


The error

Error Type: TypeError
Error Value: not enough arguments; expected 2, got 1





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


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




[Zope] Learn Zope

2000-07-07 Thread Paul Aviles

What is the best document to learn Zope?

THX


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

2000-07-07 Thread Alex Gould

Paul Aviles wrote:
 What is the best document to learn Zope?

Try some of the guides at:
http://www.zope.org/Documentation
hopefully there will soon be an actual book (this would be great for
me!)
http://www.zope.org/Wikis/Docs/ZopeBook

-- 
Building highways to reduce traffic is like 
loosening your belt to reduce obesity.

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

2000-07-07 Thread Frank Isaacs

I'm working on the tutorial in version 2.2b3 (I know, it's a beta, caveat
emptor...)

I did lesson 4, discussing the footer and putting the e-mail link to
"webmaster" in. Then I went to lesson 5, and the footer appeared to have
been changed back to the default footer (the zope gif image and link to
zope.org). Does the tutorial reset it? If not, how did it happen?

Thanks in advance -

-Frank

PS: And how about the code for the zope link? It seems to be invisible, but
it would be nice to be able to include it if you modify the standard footer.
(I suppose I could copy and paste from a rendered html page, but... isn't it
somewhere in the object hierarchy?)



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

2000-07-07 Thread Martijn Pieters

On Fri, Jul 07, 2000 at 04:40:37PM -0400, Frank Isaacs wrote:
 PS: And how about the code for the zope link? It seems to be invisible, but
 it would be nice to be able to include it if you modify the standard footer.
 (I suppose I could copy and paste from a rendered html page, but... isn't it
 somewhere in the object hierarchy?)

You mean the 'Powered by Zope' button? It's ZopeAttributionButton:

  dtml-var ZopeAttributionButton

-- 
Martijn Pieters
| Software Engineermailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
| ZopeStudio: http://www.zope.org/Products/ZopeStudio
-

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

2000-07-07 Thread FR Chalaoux

Hi Zopper,

The Use case
==

1/ Display file objets from a folder

2/ Select objets to delete

3/ Delete these objets

4/ Refresh the document

My solution is based on 2 DTML methods but it does not work for me. The
documents are not deleted and no refresh of the page.

Help is welcome.

FR.

DTML Method  delete_form

dtml-var standard_html_header
h2dtml-var title_or_id/h2
FORM ACTION="http://localhost:8080/Common/Documents/delete"
method="POST"
dtml-in "PARENTS[0].objectValues(['File'])" sort=id
INPUT TYPE="CHECKBOX" NAME="ids:list" VALUE="dtml-var id" dtml-var
idp
/dtml-in
INPUT TYPE="SUBMIT"
/form
dtml-var standard_html_footer

DTML Method delete
===
dtml-call "manage_delObjects(REQUEST['ids'])"
dtml-call "RESPONSE.redirect(URL1 + '/delete_form')"







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

2000-07-07 Thread Gregory Haley

Hi,

Yes, I had tried that, but, I had some little a syntax
problem that was causing zope to throw an error, and I
thought it was because it didn't like the use of dtml-var in
an sql call.  From the advice here, and in a second
response, I looked more closely at the error message and
discovered the syntax error.  : (

Thanks for helping out here.

ciao!
greg.

Gregory Haley
venaca.com


 
 Greg,
 
 Have you tried using just dtml-var instead of dtml-sqlvar?  The
 sqlvar version I think automatically adds the quotation marks.
 
 --Aaron Williamson

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

2000-07-07 Thread Andy McKay

And Javascripts back function is javascript:history.back()

so i think RESPONSE.redirect('javascript:history.back()')

- Original Message -
From: "Chris McDonough" [EMAIL PROTECTED]
To: "Chris McDonough" [EMAIL PROTECTED]; "'Aaron Williamson'"
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, July 07, 2000 8:56 AM
Subject: RE: [Zope] Redirect Back


 Oops, sorry, not RESPONSE.REDIRECT, instead RESPONSE.redirect.

  -Original Message-
  From: Chris McDonough [mailto:[EMAIL PROTECTED]]
  Sent: Friday, July 07, 2000 11:54 AM
  To: 'Aaron Williamson'; [EMAIL PROTECTED]
  Subject: RE: [Zope] Redirect Back
 
 
  You may either use Javascript's history method or use
  RESPONSE.REDIRECT(REQUEST['HTTP_REFERER']).  The former is
  preferred as
  the latter isn't always accurate nor available.
 
   -Original Message-
   From: Aaron Williamson [mailto:[EMAIL PROTECTED]]
   Sent: Friday, July 07, 2000 11:45 AM
   To: [EMAIL PROTECTED]
   Subject: [Zope] Redirect Back
  
  
   Does anyone know if RESPONSE.redirect() can somehow be used
   to send the
   user "back," like they clicked the back button on the browser?
  
   Thanks,
  
   Aaron Williamson
   Operation Mobilisation
   [EMAIL PROTECTED]
  
  
   ___
   Zope maillist  -  [EMAIL PROTECTED]
   http://lists.zope.org/mailman/listinfo/zope
   **   No cross posts or HTML encoding!  **
   (Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )
  
 
  ___
  Zope maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope
  **   No cross posts or HTML encoding!  **
  (Related lists -
   http://lists.zope.org/mailman/listinfo/zope-announce
   http://lists.zope.org/mailman/listinfo/zope-dev )
 

 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   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] C:\Program Files\WebSiteC:\Program Files\WebSite\bin\python.exeC:\Program FC:\Program F

2000-07-07 Thread Jonathan DESP

Hi,

I'm getting a problem, I don't understand what it is, my friend and me
didnot find the problem too.

It's not a problem of size, because I have it on my computer, and I can
easily handle that amount of size.

Also, it's not the size limit inside Zope, because I have another
data.fs, and it's about 60 000, and all work fine. and it's not the zope
files around, because I run under windows, and my server run under
linux. so, when I upload the data.fs in my new zope in my computer, the
files are not the same, but I assure you that my zope in my local
machine is clean. but the proplem is still there. so I think it's in the
core of this accurate data.fs 36 000.

here you can read --

C:\Program Files\WebSite"C:\Program Files\WebSite\bin\python.exe"
"C:\Program F
iles\WebSite\z2.py" -D
Traceback (innermost last):
  File "C:\Program Files\WebSite\z2.py", line 449, in ?
exec "import "+MODULE in {}
  File "string", line 1, in ?
  File "C:\Program Files\WebSite\lib\python\Zope\__init__.py", line 109,
in ?
DB=ZODB.FileStorage.FileStorage(Globals.BobobaseName)
  File "C:\Program Files\WebSite\lib\python\ZODB\FileStorage.py", line
301, in _
_init__
self._pos, self._oid, tid = read_index(
  File "C:\Program Files\WebSite\lib\python\ZODB\FileStorage.py", line
1358, in
read_index
name, pos)
  File "C:\Program Files\WebSite\lib\python\ZODB\FileStorage.py", line
218, in p
anic
raise CorruptedTransactionError, message
ZODB.FileStorage.CorruptedTransactionError: C:\Program
Files\WebSite/var/Data.fs
 data record exceeds transaction record at 34224435

C:\Program Files\WebSite

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




Re: [Zope] Problem with database packing (major data loss)

2000-07-07 Thread Bill Anderson

Nigel Head wrote:
 
 Brian, FWIW, I have a follow-on problem (CVS version from last night) ... I can
 now never pack at all as it always complains that a pack to a later date has
 already been done. I did a complete fresh install and tried a pack as the very
 first thing ... same problem.
 
 Any ideas ?  Anybody else have this problem or is it just me ... ?

I have a simliar problem in the CVS version. New isntall, copied over
Data.fs, go to pack, and it makes the complaint that it won't pack for
the same reasons you give. Methinks they are related somehow.


-- 
"Linux: the operating system with a CLUE...
Command Line User Environment".

seen in a posting on comp.software.testing

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