RE: [Zope] Favorites

2000-09-26 Thread rishi


Thank dewd but  doesn't give the info I'am looking for.
I allready tried that and a lot more.
I did get a asp script for this but I can't implement it into zope.


-Original Message-
From: Tino Wildenhain [mailto:[EMAIL PROTECTED]]
Sent: dinsdag 26 september 2000 8:27
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [Zope] Favorites


Hi rishi,

rishi wrote:
>
...
> The following tihng is going on; they are uploading the bookmark file
> manualy, by exporting from IE or NS. There is a util called
> "ImportExportFavorites", a javascript syntax that gets the bookmarks and
> post them to the server.

One has to have a glance at it to say more.

> --" javascript:window.external.ImportExportFavorites(false,'your server
> adress') "--
>
> when I use this util, it will send it's data tru the http_user_agent
called
> "favorites",
> is there a posible way for grabbing the data it is sending into zope ?
> it will send a file called 'img.fav'
Depends. It would always helpful, if you make a dtml_method with just





to see whats going on.

HTH
Tino


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

2000-09-26 Thread Simon Coles

>We host zope using mutliple installations of zope.

Yes, that's what we do for our "Professional" Zope hosting.

For "FreeZope", you just get your own folder, and it lives under 
http://freezope.nipltd.net/yourplace. We have a standard list of 
products, and we don't allow people any more.


>  It is better this way
>because then the clients can control which products they have installed, they
>can tweak their products without bothering anyone else, they can stop and
>restart zope whenever they please...the basically have full control.   You
>can't do that with more than one client using the same instance.

All the advantages you mention, plus you can let them upgrade their 
Zope version when they need it. We want to upgrade FreeZope to 2.2.x 
at the moment, and its something we need to be cautious about. There 
are a lot of people on FreeZope, and the move to 2.2 can break a fair 
number of things. Given its this painful on a free service, I'd hate 
to be trying to upgrade a shared server that had paying clients.


>Yes it does use a fair bit of memory, but you would expect your client to pay
>for it accordingly.

Its also requires a fair number of configuration steps (raise the OS 
account, install Zope, configure Apache, configure MySQL, setup DNS, 
setup log analysis etc.), which takes time - although we'll probably 
automate some or all of this at some point.

If you allow your customers shell access to the machine you also need 
much greater security awareness than you'd have for just a normal 
firewalled web server.



Simon
-- 
- My opinions are my own, NIP's opinions are theirs --
Simon J. Coles Email: [EMAIL PROTECTED]
New Information Paradigms  Work Phone: +44 1344 753703
http://www.nipltd.com/ Work Fax:   +44 1344 753742
=== Life is too precious to take seriously ===

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

2000-09-26 Thread Chris Withers

> Suzette Ramsden wrote:
> >
> > I have had this same problem downloading squishdot zip files and I don't
> > know if it is something I am doing.
> > When I attempt to unzip the file, I keep getting:
> > "error reading header after processing 0 entries"

I've seen this happen due to a couple of things:

1. An archive not being completely downloaded (check the file size in
Bytes matches that listed on the download site)

2. Windoze giving the downloaded file the wrong extension. This can get
particularly tricky when Windoze plays it's game of hiding file
extensions it thinks it knows about. Check the whole file extension
matches that from the download site (usually .tar.gz)

cheers,

Chris

You are usign WinZip, aren't you?

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

2000-09-26 Thread Phil Harris

rishi,

What does the ASP script look like?

Send me a copy privately if you want, I'll scan through and see if I can
make any suggestions.

Phil (ex. ASP thingy 8¬))
[EMAIL PROTECTED]

- Original Message -
From: "rishi" <[EMAIL PROTECTED]>
To: "'Tino Wildenhain'" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, September 26, 2000 8:29 AM
Subject: RE: [Zope] Favorites


>
> Thank dewd but  doesn't give the info I'am looking for.
> I allready tried that and a lot more.
> I did get a asp script for this but I can't implement it into zope.
>
>
> -Original Message-
> From: Tino Wildenhain [mailto:[EMAIL PROTECTED]]
> Sent: dinsdag 26 september 2000 8:27
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: [Zope] Favorites
>
>
> Hi rishi,
>
> rishi wrote:
> >
> ...
> > The following tihng is going on; they are uploading the bookmark file
> > manualy, by exporting from IE or NS. There is a util called
> > "ImportExportFavorites", a javascript syntax that gets the bookmarks and
> > post them to the server.
>
> One has to have a glance at it to say more.
>
> > --" javascript:window.external.ImportExportFavorites(false,'your server
> > adress') "--
> >
> > when I use this util, it will send it's data tru the http_user_agent
> called
> > "favorites",
> > is there a posible way for grabbing the data it is sending into zope ?
> > it will send a file called 'img.fav'
> Depends. It would always helpful, if you make a dtml_method with just
>
> 
> 
> 
>
> to see whats going on.
>
> HTH
> Tino
>
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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] Use of the :records variable type and ZSQL methods

2000-09-26 Thread Rik Hoekstra



Calvin Parker wrote:
> 
> > > Error Type: Bad Request
> > > Error Value: ['Field1', 'Field2']
> > >
> > > Here is the code I used and sqlTest is the ZSQL Method that
> > just inserts the
> > > two fields into a test DB:
> > >
> > > 
> > > 
> > > 
> > >
> > > What am I doing wrong?
> > >
> >
> > you'll have to feed a named argument to your Zsql method (that is in its
> > definition). In this case that would be testlist. Then it should work as
> > expected
> >
> 
> Here is the Z SQL Method.  It takes the arguments Field1 and Field2.
> 

that's where the problem is: in your REQUEST there _are_ no Field1 and
Field2: they are in the testlist (pseudo) dictionary.




Make you method (something like):


 INSERT INTO Test_Fields
 (Field1,Field2)
 VALUES
 (
 ,
 
 )
 



>Am I calling testlist incorrectly?  I have tried forcing the namespace with
>the dtml-with tag, but it doesn't seem to be making any difference.  Are the
>arguments field in the Method what you are refering to when you say named
>argument?

I think so (terminology is a bit confusing here). ZSQL methods only take
named arguments. There has been quite a bit of threads on this on the
list. SO you might want to search the archives for them.

In this case the named argument would have to be testlist, as this is
the argument REQUEST contains.

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] WorldPilot has the bits...

2000-09-26 Thread John Chandler

> > Any ideas how the sync would be done?
> > 
> 
> WorldPilot has the ability to do this, allegedly.

WorldPilot's Palm side of things was still broken last I checked (last week,
IIRC) - it was complaining of login errors, though you could login happily
through other means. Get the freshest version of the software you can as it
might be fixed now.


John

--
 John Chandler  /  Software Developer  /  New Information Paradigms Ltd
   [ Linux in the office, AmigaOS in the home, PalmOS in the pocket ]

 The opinions above aren't those of my company...
   ...but then, they aren't really mine either.

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

2000-09-26 Thread a . wacknitz

Hello all,

after updating to Zope-2.2.0 I have problems with ZSQL methods.
It seems as if the namespace of ZSQL methods has changed sind Zope-2.1.x.
I cannot access the AUTHENTICATED_USER object anymore - it is not known to
ZSQL methods:

gives an "Missing input variable, AUTHENTICATED_USER" error
and

gives "error type:  NameError
   error value: AUTHENTICATED_USER"

The security mechanism of my application heavily depends on this object!
What has happened to the ZSQL methods? I have already updated to Zope-2.2.2
but with no luck so far.

Any help is greatly appreciated,
Andreas
**
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 )




[Zope] Newbie-question on ZCatalog

2000-09-26 Thread Marc Breitenreicher

Hi,

I'm trying to build a Catalog with a report table just as the one on
http://classic.zope.org:8080/Collector/tableBrowse?cfDescAndTitle=catalog

That's a table with document-title, date and the first 30 words of the
document-content.

My problem: how can I insert the content into the ZSearch report-file?
Is there a simple way just like finding out the document-url 
( here it is  )?

Thanks for your help

Marc

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] RedHat site mentions Zope (SuSE too!)

2000-09-26 Thread Joachim Werner

I checked:

Zope 2.1.6 is shipped with the DeLuxe and Server versions of RedHat 7.0, but
not with the Standard edition. They have split Zope into a couple of separate
packages. On the web page they mention Zope a couple of times!

BTW:

Zope (also the 2.1.6) is also on the SuSE 7.0 (Professional) distribution. So
Zope is now on most of the major distributions (RedHat, SuSE, Debian)!



Am Die, 26 Sep 2000 schrieb John:
> Yes I saw that too, but when I went to check the package list (to see 
> what version it was) there was no mention of it.
> John Leach
> 
> 
> 
> >> Original Message <<
> 
> On 9/25/00, 4:51:04 PM, Stephan Richter <[EMAIL PROTECTED]> wrote regarding 
> [Zope] RedHat site mentions Zope:
> 
> 
> > Hello everyone,
> 
> > I just saw on www.redhat.com the following:
> 
> > Features for the developer:
> > ...
> > "Popular web application development tools like PHP and Zope"
> 
> > Link: http://www.redhat.com/products/software/linux/rhl7_standard.html
> 
> > Wow, pretty cool. It is only a five bullet list! I guess Zope is winning
> > acceptance rapidly.
> 
> > Regards,
> > Stephan
> > --
> > Stephan Richter
> > CBU - Physics and Chemistry Student
> > 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 maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
-- 
Iuveno - Smart Communication


Joachim Werner


_

Marie-Curie-Straße 6
85055 Ingolstadt

Tel.: +49 841/90 14-325 (Fax -322)
Mobil: +49 179/39 60 327
E-Mail: [EMAIL PROTECTED][EMAIL PROTECTED]
WWW: www.iuveno.de/www.iuveno-net.de



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




[Zope] ZClass + ZSQLmethods bug in 2.2.2?

2000-09-26 Thread Alexander Schonfeld
Hi,

I've seen lots of ZSQLmethods patches and such and tried a few of them
under 2.1.6, but thought upgrading to 2.2.2 would fix this problem.  It
didn't.

Basically:
1. Create a ZClass
2. Inside create a DTML method and ZSQLmethod
3. from the dtml method call the ZSQLmethod
4. do a  

5. get a Unauthorized error no matter what the access privileges
are set to

This is with the "MySQLda".  Is there a newer MySQLda somewhere that
fixes this?  Or some patch (that works with 2.2.2???)?!

Running 2.2.2 from source... now with less hair...
Sincerely,

Alex.


Zope Error
Zope has encountered an error while publishing this resource. 

Unauthorized

You are not authorized to access sqlGetValue. 
Traceback (innermost last):
  File /Zope-2.2.2/lib/python/ZPublisher/Publish.py, line 222, in
publish_module
  File /Zope-2.2.2/lib/python/ZPublisher/Publish.py, line 187, in
publish
  File /Zope-2.2.2/lib/python/ZPublisher/Publish.py, line 171, in publish
  File /Zope-2.2.2/lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: testmeth)
  File /Zope-2.2.2/lib/python/ZPublisher/Publish.py, line 112, in call_object
(Object: testmeth)
  File /Zope-2.2.2/lib/python/OFS/DTMLMethod.py, line 172, in __call__
(Object: testmeth)
  File /Zope-2.2.2/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__
(Object: testmeth)
  File /Zope-2.2.2/lib/python/DocumentTemplate/DT_With.py, line 146, in render
(Object: testcrp)
  File /Zope-2.2.2/lib/python/OFS/DTMLMethod.py, line 168, in __call__
(Object: craptest)
  File /Zope-2.2.2/lib/python/DocumentTemplate/DT_String.py, line 528, in __call__
(Object: craptest)
  File /Zope-2.2.2/lib/python/DocumentTemplate/DT_In.py, line 633, in renderwob
(Object: 
sqlGetValue(tableId='Artist',columnId='Name',keyId='3f69016017c39d5da0a1d60d0a98dbed55d46414'))
  File /Zope-2.2.2/lib/python/DocumentTemplate/DT_Util.py, line 331, in eval
(Object: 
sqlGetValue(tableId='Artist',columnId='Name',keyId='3f69016017c39d5da0a1d60d0a98dbed55d46414'))
(Info: sqlGetValue)
  File /Zope-2.2.2/lib/python/OFS/DTMLMethod.py, line 194, in validate
(Object: testmeth)
  File /Zope-2.2.2/lib/python/AccessControl/SecurityManager.py, line 139, in validate
  File /Zope-2.2.2/lib/python/AccessControl/ZopeSecurityPolicy.py, line 209, in 
validate
Unauthorized: (see above)

 
1010011010101001101010100110101010011010
0  Digital Garage$B!!%G%8%?%khttp://www.zope.ne.jp/ http://www.garage.co.jp



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

2000-09-26 Thread Christopher J. Kucera

Greetings!

I know I saw this discussed a long time ago, but I completely failed
to find the thread anywhere, so here goes . . .

We're running a somewhat older release of Zope with ZOracleDA, and
we've run up against a 1000-record limit when returning data for
reports, etc.  I know that this is intended behavior (careful_range
in DT_Util.py), but I'm wondering what the reasoning is, and if I
should be even considering playing around with this (I'm assuming
it was put in there for *some* reason . . . :)

Thanks in advance for your help!
-CJ

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

2000-09-26 Thread Petru Paler

On Tue, 26 Sep 2000, Christopher J. Kucera wrote:

> We're running a somewhat older release of Zope with ZOracleDA, and
> we've run up against a 1000-record limit when returning data for
> reports, etc.  I know that this is intended behavior (careful_range
> in DT_Util.py), but I'm wondering what the reasoning is, and if I
> should be even considering playing around with this (I'm assuming
> it was put in there for *some* reason . . . :)

Take a look at the "Advanced" tab of your SQL methods...

Petru



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

2000-09-26 Thread Christopher J. Kucera

D'oh . . .

The sad part is that I remember now that I've actually
*done* that before.  :P  Next time I'll try getting some
sleep before I send out an email like that. :)

Thanks for the help!
-CJ

Petru Paler wrote:
> 
> On Tue, 26 Sep 2000, Christopher J. Kucera wrote:
> 
> > We're running a somewhat older release of Zope with ZOracleDA, and
> > we've run up against a 1000-record limit when returning data for
> > reports, etc.  I know that this is intended behavior (careful_range
> > in DT_Util.py), but I'm wondering what the reasoning is, and if I
> > should be even considering playing around with this (I'm assuming
> > it was put in there for *some* reason . . . :)
> 
> Take a look at the "Advanced" tab of your SQL methods...

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] trouble with SiteAccess; can't manage subtree mapped to inaccessible domain name

2000-09-26 Thread ethan mindlace fremen

Fred Yankowski wrote:

> I'm glad to have SiteAccess.  In combination with the Apache ProxyPass
> method  it's been
> working well to host several domains from the same Zope/Zserver
> instance.  Very cool.  It _did_ take me while to realize that I needed
> version 2 of SiteAccess to work with Zope 2.
>  only has links to version
> 1 of SiteAccess, which threw me off for a while.

Ok, well, SiteAccess2 is now the only "canonical" version.  The only way
to get to SiteAccess1 is by going to SiteAccess2 and selecting the old
version.

Hope that helps,

mindlace
Zopatista Community Liason

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

2000-09-26 Thread ethan mindlace fremen

Hung Jung Lu wrote:

> I just ran across this website: http://webcompare.internet.com/
> 
> Interesting that I did not see anything on Zope. Shouldn't we write
> something to [EMAIL PROTECTED] and let them know about Zope?
> 
> (Look also under
>   http://serverwatch.internet.com/appservers.html

Thanks for letting us know about this.  I'm looking into getting Zope
mentioned here...

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




[Zope] ZFormulator -- how to make an SQL insert?

2000-09-26 Thread Mike Renfro

I looked in the archives for anything concerning this, and came up
empty. I have zformulator set up with postgres, and it appears to work
fine, except that I've not found the zen to make it actually do an SQL
insert -- I know the GetSQL method will extract the proper code, but
am I missing something trivial that'll let me actually execute the SQL
code? Thanks.

-- 
Mike Renfro  / R&D Engineer, Center for Manufacturing Research,
931 372-3601 / Tennessee Technological University -- [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] PyGreSQLDA

2000-09-26 Thread Leichtman, David J


Has anyone had significant speed issues using the PyGreSQLDA? It seems like
I'm only getting one DB connection at a time. Is this an issue with the DA,
with Zope, or am I doing something wrong? I have a pgsql db running just
fine, and in Zope I have a connection instantiated at the top level that all
of my ZSQL methods use. Shouldn't it still be able to establish multiple
connections, though? I guess I'm confused as to how it works. Thought I was
using it right, but if I execute a query through Zope it takes a few
milliseconds unhindered. However, if multiple people try to run a query at
the same time, it usually takes a few seconds, as if only one person were
connected at a time.

I'd love elucidation from someone educated on this subject, as I am most
certainly not :)

~ Dave

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

2000-09-26 Thread Ryan Booz





Hey gang,

I'm posting this question here because I know a while back some people
had mentioned they were using Zope.  I'm trying to start using it,
getting used to the DTML and all the other stuff.  I can get it running
with my Apache server, and that's all well and good.  But I have these
two questions which I can't seem to find answers to in current Zope
documents and help.

1.  How do I get the server process to run as a daemon?  I've tried the
one script for an rc process I found on a site, but my server just hangs
and I never get a command prompt back.  All other processes I've ever
run at startup are either designed to be daemons, or have a specific
switch to add to the program name.

2.  OK, this is kind of two part.  First, where does Zope actually store
all of the directories and files you create for a site.  If I have a
fake directory as the "trigger" for the persistent CGI process, than
where does it actually store this pages I'm creating?  As an example,
following the install instructions that comes with Zope, I've set Apache
to send every request for /zope to the FastCGI process running in the
background.  That directory does not exist in my htdocs directory.
Where is this stuff going?

Two, can I get Zope to answer the general requests for a site (like
www.bms.school my internal server and fake domain.)  Rather than having
to specify a directory, it would just send all requests to Zope.  But to
take that one step further, if I had user accounts set up with the
/~username convention, would this stuff be able to pass through Zope and
actually go to those directories?  I don't think I'm making this
question clear, but I don't know how else to state it right now.

Thanks a bunch,
Ryan Booz
Belleville Mennonite School






[Zope] Re: Zope Question

2000-09-26 Thread Chris McDonough


- Original Message -
From: "Ryan Booz" <[EMAIL PROTECTED]>
To: "Comp Ed List" <[EMAIL PROTECTED]>
Sent: Monday, September 25, 2000 3:03 PM
Subject: Zope Question


> Hey gang,
>
> I'm posting this question here because I know a while back some people
> had mentioned they were using Zope.  I'm trying to start using it,
> getting used to the DTML and all the other stuff.  I can get it running
> with my Apache server, and that's all well and good.  But I have these
> two questions which I can't seem to find answers to in current Zope
> documents and help.
>
> 1.  How do I get the server process to run as a daemon?  I've tried the
> one script for an rc process I found on a site, but my server just hangs
> and I never get a command prompt back.  All other processes I've ever
> run at startup are either designed to be daemons, or have a specific
> switch to add to the program name.

Removing the -D (debug) switch from the z2 line in start.py will cause Zope
to release control of the terminal from which it was started.

> 2.  OK, this is kind of two part.  First, where does Zope actually store
> all of the directories and files you create for a site.  If I have a
> fake directory as the "trigger" for the persistent CGI process, than
> where does it actually store this pages I'm creating?  As an example,
> following the install instructions that comes with Zope, I've set Apache
> to send every request for /zope to the FastCGI process running in the
> background.  That directory does not exist in my htdocs directory.
> Where is this stuff going?

In the "ZODB" (Zope Object Database).  See
http://www.zope.org/Members/mcdonc/HowTos/gainenlightenment for
some nuggets.  This is a tough one to wrap your head around when you first
get started.


>
> Two, can I get Zope to answer the general requests for a site (like
> www.bms.school my internal server and fake domain.)  Rather than having
> to specify a directory, it would just send all requests to Zope.  But to
> take that one step further, if I had user accounts set up with the
> /~username convention, would this stuff be able to pass through Zope and
> actually go to those directories?  I don't think I'm making this
> question clear, but I don't know how else to state it right now.

See the SiteAccess product on Zope.org


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




Re: [Zope] PyGreSQLDA

2000-09-26 Thread Oleg Broytmann

On Tue, 26 Sep 2000, Leichtman, David J wrote:
> Has anyone had significant speed issues using the PyGreSQLDA? It seems like
> I'm only getting one DB connection at a time. Is this an issue with the DA,
> with Zope, or am I doing something wrong? I have a pgsql db running just

   I have 3 connections just fine. Sometimes Zope timeouts a connection,
but when someone touches it, Zope reopens the connection automatically. No
problem thus far.

Oleg.
 
 Oleg Broytmannhttp://phd.pp.ru/[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] Zope Dies with FastCGI

2000-09-26 Thread Ronald L. Roeber

I have the following set-up under which Zope occasionally dies.

Zope 2.2.2 (same happened with 2.2.0 and 2.2.1)
RedHat Linux 6.2
Apache 1.3.12 - with fastcgi/2.2.8 and OpenSSL/0.95a 

I'm running Zope with Fastcgi and using Apache rewrite rules to redirect
all URLs that 
contain "manage" to https. 

It seems to work fine except on occasion Zope will die with the
following error:

"ZServer uncaptured python exception, closing channel  (socket.error:(32, 'Broken pipe')
[path_to_Zope/Zserver/medusa/asynchat.py|initiate_send||211]
[path_to_Zope/Zserver/medusa/asynchat.py|send|274])

This doesn't always mean the server is dead but it is the only error I
can trap with 
debug turned on. I am starting the Zope server with the -Z option. 

Ideas. I'm about ready to start making the server more widely available
but cannot if
the server is unreliable.

Ideas, strategies, options? 

TIA

Ron Roeber





___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] ZFormulator -- how to make an SQL insert?

2000-09-26 Thread Martijn Faassen

Mike Renfro wrote:
> I looked in the archives for anything concerning this, and came up
> empty. I have zformulator set up with postgres, and it appears to work
> fine, except that I've not found the zen to make it actually do an SQL
> insert -- I know the GetSQL method will extract the proper code, but
> am I missing something trivial that'll let me actually execute the SQL
> code? Thanks.

Hm, I've been sadly neglecting ZFormulator for a long time. I will
have some time to work with it again next month, though.

I'm surprised it actually works with Zope 2.2; I had some bug reports.

You cannot do an actual SQL insert with ZFormulator yet, though it
wouldn't be too hard to put some code around it to do. Right now
ZFormulator only shows the SQL statement. I believe I had some patches
contributed that do enable this, which I've been neglecting as well. :(

Regards,

Martijn


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Nasty subtle security bug - Me Too

2000-09-26 Thread Martijn Faassen

Shane Hathaway wrote:
> Martijn Faassen wrote:
> > General problem description:
> > 
> >   For a ZClass instance/external methods that is only viewable by
> >   users with a particular role, the view operation fails if that role
> >   is only added to a user in a place deeper in the folder tree than the
> >   folder where the External Method/ZClass instance was defined. This
> >   occurs when the 'view' is occuring in the acquisition context of the
> >   folder.
> > 
> >   It succeeds if the role is added to the user in a folder higher in the
> >   tree, at or above the folder where the external method or ZClass instance
> >   is defined.
> 
> This sounds 100% correct.  When checking security, acquisition context
> is ignored.  What matters is *containment* (which is also accessed
> through the acquisition machinery, but in a special way: aq_inner).  A
> user can only access objects that are defined in a container where the
> user is granted access.

How come it does work with DTML methods then?

I can access a DTML method 'foo' defined in the root folder that is
only accessible with role A, even if role A is only added to me in
a subfolder (from this subfolder).

> You probably don't really want to change it to use context instead.  It
> would open a mile-wide security hole.

Depends on how you reason. I was reasoning context based -- I should
be able to execute something in the context of the current folder, if
I have the right role to do it. That's exactly how it works with DTML methods,
so I didn't expect external methods to be different.

If you're opening a mile-wide security hole with external methods, then
why not with DTML methods?

> >   The view operation fails with a reauthentication request in Zope 2.1.6
> >   (so authentication exception raised presumably).
> > 
> >   In Zope 2.2.2 the failure is a NameError for External Methods, and
> >   reauthentication for ZClass instances.
> > 
> > Am I missing something terribly obvious, or is this a rather huge bug
> > that's been unnoticed for a long time? I assume it *must* be a bug as
> > DTML methods behave in a different way. I also want it to be a bug, as
> > I don't like this behavior. It makes it very hard to delegate
> > responsibility.
> 
> The difference is a result of the change in the way security is
> handled.  It now gets a NameError because the name lookups skip over
> entries to which you're disallowed access.  That logic can be very
> puzzling, but you might try the ZDebug product which helps you make
> sense of it.

Okay, I'll try that.

I still don't see why DTML methods are different. Could you explain that?
That's what initially caused much of my confusion; the DTML methods
behave as expected, but call external methods that *don't*, which have
*exactly* the same security settings.

Note that this policy does make acquisition rather useless for delegating
of responsibility, unless you're either using DTML only, or are coding for
anonymous only.

Regards,

Martijn


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




[Zope] Bug or feature? :-)

2000-09-26 Thread Jeff Hoffman

Hello, Zopers.

Try this:

Create a DTML Method in Zope. Give it an id of 'target', and give it the
following body:

  Woohoo!

Now manage the folder that it is contained in. Instant tab augmentation!
:-)

--Jeff

---
Jeff K. Hoffman   704.849.0731 x108
Chief Technology Officer  mailto:[EMAIL PROTECTED]
Going Virtual, L.L.C. http://www.goingv.com/


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




Re: [Zope] Nasty subtle security bug - Me Too

2000-09-26 Thread Shane Hathaway

On Tue, 26 Sep 2000, Martijn Faassen wrote:

> Shane Hathaway wrote:
> > Martijn Faassen wrote:
> > > General problem description:
> > > 
> > >   For a ZClass instance/external methods that is only viewable by
> > >   users with a particular role, the view operation fails if that role
> > >   is only added to a user in a place deeper in the folder tree than the
> > >   folder where the External Method/ZClass instance was defined. This
> > >   occurs when the 'view' is occuring in the acquisition context of the
> > >   folder.
> > > 
> > >   It succeeds if the role is added to the user in a folder higher in the
> > >   tree, at or above the folder where the external method or ZClass instance
> > >   is defined.
> > 
> > This sounds 100% correct.  When checking security, acquisition context
> > is ignored.  What matters is *containment* (which is also accessed
> > through the acquisition machinery, but in a special way: aq_inner).  A
> > user can only access objects that are defined in a container where the
> > user is granted access.
> 
> How come it does work with DTML methods then?
> 
> I can access a DTML method 'foo' defined in the root folder that is
> only accessible with role A, even if role A is only added to me in
> a subfolder (from this subfolder).

Let's say I'm user Joe and I have a role "Employee" that allows me certain
functions throughout the site.  A role "DepartmentManager" is also
available, but I only have that role where it is given to me as a local
role in the "accounting" folder.

Let's say there's another folder on the site called "hr", for human
resources.  If security were context-dependent rather than
containment-dependent then I could just access

http://www.somesite.com/intranet/accounting/intranet/hr/manage

and I'd have "DepartmentManager" privileges in the "hr" folder.  Oops!  
(Note that there is only one "intranet" folder.  This URL uses acquisition
trickery.)

(More info in my reply to your next message...)

> Note that this policy does make acquisition rather useless for delegating
> of responsibility, unless you're either using DTML only, or are coding for
> anonymous only.

Tell us what kind of security you're trying to set up, and we can probably
help you find the right way to do it.

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] Zope.org FYI

2000-09-26 Thread Martijn Pieters

On Mon, Sep 25, 2000 at 04:02:00PM -0400, Shane Hathaway wrote:
> Zope.org has been having some problems with memory leaks and "ghosts". 
> Please excuse the occasional interruption.
> 
> Also, /Members is now a new kind of BTreeFolder.  An update to the
> BTreeFolder product will soon be released.  With this change, some DTML
> installed on zope.org may have problems if it contains the expression
> "Members.".  Just change the DTML to "Members['']".

Shane has updated the BTreeFolder used on Zope.org that implements
__getitem__ and the above caveat no longer applies.

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

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




Re: [Zope] Bug or feature? :-)

2000-09-26 Thread Andy McKay

Nice.

Sorry I dont think that counts as a feature :) You could do a world of hurt
with that.

> Hello, Zopers.
>
> Try this:
>
> Create a DTML Method in Zope. Give it an id of 'target', and give it the
> following body:
>
>   Woohoo!
>
> Now manage the folder that it is contained in. Instant tab augmentation!
> :-)
>
> --Jeff
>
> ---
> Jeff K. Hoffman   704.849.0731 x108
> Chief Technology Officer
mailto:[EMAIL PROTECTED]
> Going Virtual, L.L.C. http://www.goingv.com/
>
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>


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

2000-09-26 Thread brian

You don't even need the "Woohoo!" body.  I'd be hard pressed to call that
a feature, even though it is kinda cool.

-
  Brian Wisti ([EMAIL PROTECTED])
  http://www.COOLNAMEHERE.com

On Tue, 26 Sep 2000, Jeff Hoffman wrote:

> Hello, Zopers.
> 
> Try this:
> 
> Create a DTML Method in Zope. Give it an id of 'target', and give it the
> following body:
> 
>   Woohoo!
> 
> Now manage the folder that it is contained in. Instant tab augmentation!
> :-)
> 
> --Jeff
> 
> ---
> Jeff K. Hoffman   704.849.0731 x108
> Chief Technology Officer  mailto:[EMAIL PROTECTED]
> Going Virtual, L.L.C. http://www.goingv.com/
> 
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
> 


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

2000-09-26 Thread mario

Quoting Martijn Pieters <[EMAIL PROTECTED]>:

> On Mon, Sep 25, 2000 at 01:52:26PM -0300, Mario Olimpio de Menezes
> wrote:
> > I did an upgrade last week, from zope 2.1.6 to 2.2.1, using
> > Debian packages.
> > Almost everything was correct, but site access no longer works.
> 
> Zope 2.2 requires SiteAccess 2 to work. 

Well, 
I forgot to say that, but of course, I'm using SiteAccess 2.
Any other suggestion?
Thanks!

[]s
Mario O.de Menezes"Many are the plans in a man's heart, but
IPEN-CNEN/SP is the Lord's purpose that prevails"
http://curiango.ipen.br/~mario Prov. 19.21
   http://www.revistalinux.com.br

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

2000-09-26 Thread Martijn Pieters

On Tue, Sep 26, 2000 at 12:14:19PM -0400, Ryan Booz wrote:
> I'm posting this question here because I know a while back some people
> had mentioned they were using Zope.  I'm trying to start using it,
> getting used to the DTML and all the other stuff.  I can get it running
> with my Apache server, and that's all well and good.  But I have these
> two questions which I can't seem to find answers to in current Zope
> documents and help.
> 
> 1.  How do I get the server process to run as a daemon?  I've tried the
> one script for an rc process I found on a site, but my server just hangs
> and I never get a command prompt back.  All other processes I've ever
> run at startup are either designed to be daemons, or have a specific
> switch to add to the program name.

Out of the box Zope starts up in debug mode. Remove the -D flag from the
start script (aptly named 'start') and you'll be dandy. Run 'python z2.py
-h' for more startup options.

> 2.  OK, this is kind of two part.  First, where does Zope actually store
> all of the directories and files you create for a site.  If I have a
> fake directory as the "trigger" for the persistent CGI process, than
> where does it actually store this pages I'm creating?  As an example,
> following the install instructions that comes with Zope, I've set Apache
> to send every request for /zope to the FastCGI process running in the
> background.  That directory does not exist in my htdocs directory.
> Where is this stuff going?

The Apache server can do much more than serving HTML pages form a disk.
Using FastCGI, Apache runs all requests starting with the /zope URL
throuhg FastCGI, which returns not HTML files but the results of the
REQUEST passed through to the Zope server. No file system has a look in on
that process.

In fact, you can run Zope without Apache as well. If you didn't touch the
z2.py startup parameters, then you can point your browser at port 8080 of
you server and see your Zope server there.

Now, do you ask, where does Zope get's it's pages from? You still don't
see a directory... Zope doesn't serve files, but Objects. (You may want to
read up on Object Oriented theory here, there is some good intro material
on Zope.org as well). These objects are stored in a Object Database, the
ZODB. The default storage is in a file called Data.fs, which you'll find
in the var subdirectory. Nuke that file and you have lost all your
objects.

> Two, can I get Zope to answer the general requests for a site (like
> www.bms.school my internal server and fake domain.)  Rather than having
> to specify a directory, it would just send all requests to Zope.  But to
> take that one step further, if I had user accounts set up with the
> /~username convention, would this stuff be able to pass through Zope and
> actually go to those directories?  I don't think I'm making this
> question clear, but I don't know how else to state it right now.

Zope doesn't serve files, at least not out of the box. There is a product
called LocalFS that may help you accomplish this with just Zope.

You can also use Apache with some Rewrite rules to combine the
'namespaces' into one; / is Zope, but /~username is a subdirectory of a
homedirectory. Again, there are several How-To's on Zope.org that will
help you with this.

Hope this helps!

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

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




[Zope] String manipulation

2000-09-26 Thread jensebaer



Hi all,
 
how can I manage it to cut a string.
 
for example:
 
a string property (testtext) with 500 
words.
 
but only want to give out 20 characters of tis 
text.
 
Thank you
 
 Jens


Re: [Zope] String manipulation

2000-09-26 Thread Phil Harris

Jens,

You have a few options:

1.Cut the string, 

hth

Phil (ex. twinky-salesman)
[EMAIL PROTECTED]

- Original Message -
From: jensebaer
To: [EMAIL PROTECTED]
Sent: Tuesday, September 26, 2000 8:28 PM
Subject: [Zope] String manipulation


Hi all,

how can I manage it to cut a string.

for example:

a string property (testtext) with 500 words.

but only want to give out 20 characters of tis text.

Thank you

 Jens


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

2000-09-26 Thread Martijn Pieters

On Tue, Sep 26, 2000 at 03:55:58PM -0300, [EMAIL PROTECTED] wrote:
> Quoting Martijn Pieters <[EMAIL PROTECTED]>:
> 
> > On Mon, Sep 25, 2000 at 01:52:26PM -0300, Mario Olimpio de Menezes
> > wrote:
> > >   I did an upgrade last week, from zope 2.1.6 to 2.2.1, using
> > > Debian packages.
> > >   Almost everything was correct, but site access no longer works.
> > 
> > Zope 2.2 requires SiteAccess 2 to work. 
> 
> Well, 
>   I forgot to say that, but of course, I'm using SiteAccess 2.
>   Any other suggestion?
>   Thanks!

Looking over your mail again, it seems that there is already an AccessRule
registered, but it is of the wrong type. You can't remove it with the Add
interface, because that triggers the error.

Instead, you'll have to do this in your Zope root directory (I am assuming
that the MOnitor client is running at it's default port of 8099):

cat access
# copy everything after the first ':'. This is your monitor password.

python ZServer/medusa/monitor_client.py localhost 8099
# paste the monitor password

import Zope
from Products.SiteAccess.AccessRule import manage_addAccessRule
app=Zope.app()
manage_addAccessRule(app)
get_transaction().commit()

The Access Rule is now cleared.

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

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




[Zope] String manipulation

2000-09-26 Thread Spicklemire, Jerry

"how can I manage it to cut a string.

for example:

a string property (testtext) with 500 words.

but only want to give out 20 characters of tis text."

Python sequence slicing syntax can be done with DTML, like so:




wher the '[:20]' means from the begining of the string, through the 20th
"slice". 
One thing to be aware of is that the positions start counting at 0, and are
best thought of as falling "between" the individual characters, like so:

 a b c d e f g
0 1 2 3 4 5 6 7

So the 20th position ('slice') is just past the 19th character, if the first
character is counted as 0.

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

2000-09-26 Thread Ramiro Brito Willmersdorf

Hi, 

Yesterday I posted the message below, and I'm happy to inform all
that the problem was basically just my advanced braindeath.

I decided to triple check everything today, after a good night of sleep, (and a
so so day of real work) and found out that the variable I could swear was being
used inside the external method wasn't really.  It would be referenced only
after the location where the exception was triggered, so it being undefined
didn't trigger an error as I had naïvely expected.  I just had forgotten to set
it explicitly in the page that called the external method.

The good news is that the exception machinery then seems to work exactly as one
would expect, and quite wonderfully at that.

Many thanks to all those that developed such a great system,

Ramiro.

> Hi,
> 
> I have a DTML document with the following structure:
> 
> 
> 
>
>Report that everything was ok and wait for ack.
> 
>   
> 
>Warn about problem found by external method.
> 
> 
> 
> 
> and it works wonderfully, to be honest I thought it was quite uncanny to define
> and raise an exception inside the python module, and having it caught by the
> DTML document.
> 
> Now, to improve the treatment of errors I need to refer, inside the
>  block, to some variables that were defined in the REQUEST
> variable (I'm pretty confident of this  because I used them inside the external
> method), but it seems that the original REQUEST variable is no longer set
> inside the  block.  Is this correct? What actually happens (in
> simple terms, please :) when an exception is thrown?
> 
> I also tried the very few other tricks I know with DTML ( "_.namespace..."> outside the  block, plus some other voodoo) but
> couldn't get it to work, either.
> 
> Should I return these values as error values with the exception?  I can do it
> if this is the only option, but I'm already using the return value for
> information related to external method things, and I'd rather not mix the two
> ``domains'', so to speak.
> 
> Many thanks for any tips,
 
-- 
Ramiro Brito Willmersdorf[EMAIL PROTECTED]  
GPG key: http://www.demec.ufpe.br/~rbw/GPG/gpg_key.txt

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

2000-09-26 Thread Bak @ kedai

On Wed, 27 Sep 2000, Spicklemire, Jerry wrote:
> "how can I manage it to cut a string.
>
> for example:
>
> a string property (testtext) with 500 words.
>
> but only want to give out 20 characters of tis text."
>
> Python sequence slicing syntax can be done with DTML, like so:
>
> 
> 
>
> wher the '[:20]' means from the begining of the string, through the 20th
> "slice".
> One thing to be aware of is that the positions start counting at 0, and are
> best thought of as falling "between" the individual characters, like so:
>
>a b c d e f g
>   0 1 2 3 4 5 6 7
>
> So the 20th position ('slice') is just past the 19th character, if the
> first character is counted as 0.

or.. i think 2.2.x has size as in


correct me if i'm wrong though
--


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

I will follow you! ..Damage Inc


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

2000-09-26 Thread Kapil Thangavelu

"Leichtman, David J" wrote:
> 
> Has anyone had significant speed issues using the PyGreSQLDA? It seems like
> I'm only getting one DB connection at a time. Is this an issue with the DA,
> with Zope, or am I doing something wrong? I have a pgsql db running just
> fine, and in Zope I have a connection instantiated at the top level that all
> of my ZSQL methods use. Shouldn't it still be able to establish multiple
> connections, though? I guess I'm confused as to how it works. Thought I was
> using it right, but if I execute a query through Zope it takes a few
> milliseconds unhindered. However, if multiple people try to run a query at
> the same time, it usually takes a few seconds, as if only one person were
> connected at a time.
> 
> I'd love elucidation from someone educated on this subject, as I am most
> certainly not :)

ZPYGre is not threadsafe, so with it and all non-threadsafe da's zope
uses a lock around access. (Thunked.py)

The solution is to just use multiple DA connections and let postgres
sort out the concurrency issues.


Cheers

Kapil

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




Re: [Zope] Re: Download Problem

2000-09-26 Thread Kapil Thangavelu

Shane Hathaway wrote:
> 
> Suzette Ramsden wrote:
> >
> > I have had this same problem downloading squishdot zip files and I don't
> > know if it is something I am doing.
> > When I attempt to unzip the file, I keep getting:
> > "error reading header after processing 0 entries"
> 
> What archiver are you using?  I'm guessing you're talking about some
> product I wrote, all of which are "tar.gz" files, not "zip" files.
> WinZip can read them, however.
> 
> Shane


I've seen this problem before. ie mangles the file name and winzip
doesn't seem to like .tar.gz extensions (i think?) . just rename it with
.tgz extension and winzip will be happy.

Cheers


Kapil

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




Re: [Zope] PyGreSQLDA

2000-09-26 Thread Bak @ kedai


> ZPYGre is not threadsafe, so with it and all non-threadsafe da's zope
> uses a lock around access. (Thunked.py)
>
> The solution is to just use multiple DA connections and let postgres
> sort out the concurrency issues.
>

i'm not clear about "use multiple DA connections".  let's say i have several 
sql methods.  it is meant for one particular app.  do i create a few  db 
connections and assign them to different sql methods?

anybody know whether PoPy is threadsafe already?

thanks and sorry to be a bone head :)
>
> Cheers
>
> Kapil
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )

-- 

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

Get the tables!


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

2000-09-26 Thread Rob Miller


Is anyone using the Apache/mod_proxy/SiteAccess method of using Zope with
the ability to access a given virtual host both with and without SSL
encryption?  If so, can you give me some pointers on how to accomplish
this?  I'd like to use SSL for all of my management activity but have the
main site be available for non-encrypted viewing.  The 'SiteRoot', though,
will only rewrite the URLs with either 'http' or 'https', and isn't smart
enough to do one or the other depending on the form of the original
request.

Is what I want to do even possible, or will I have to resort to using some
sort of PCGI solution to accomplish my goal?

thanks,

rob

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] RedHat site mentions Zope (SuSE too!)

2000-09-26 Thread Kevin Teague

Oops, hit ALT+Enter when trying to paste in the URL at the end of that
last message:

http://www.stormix.com/partners/technical/index_html

-- 
  Kevin Teague, Zopista
  http://www.stormix.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] RedHat site mentions Zope (SuSE too!)

2000-09-26 Thread Kevin Teague

Joachim Werner wrote:
> 
> I checked:
> 
> Zope 2.1.6 is shipped with the DeLuxe and Server versions of RedHat 7.0, but
> not with the Standard edition. They have split Zope into a couple of separate
> packages. On the web page they mention Zope a couple of times!
> 
> BTW:
> 
> Zope (also the 2.1.6) is also on the SuSE 7.0 (Professional) distribution. So
> Zope is now on most of the major distributions (RedHat, SuSE, Debian)!

We also included Zope 2.1.6 is also included in the new Storm Linux 2000
(which is based on Debian). We liked Zope so much, we put it on all of
our editions (Starter, Open, and Deluxe) :)

We also mention Zope on the list of included packages on the outside of
Deluxe box.

And we use Zope to power our web site:


-- 
  Kevin Teague, Zopista
  http://www.stormix.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] RedHat site mentions Zope (SuSE too!)

2000-09-26 Thread Chris McDonough

Not only that, they put Zope in at least one of their magazine ads!  :-)

Reading Linux Journal, did a doubletake when I saw the swollen Z.

- Original Message -
From: "Kevin Teague" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 27, 2000 12:05 AM
Subject: Re: [Zope] RedHat site mentions Zope (SuSE too!)


> Joachim Werner wrote:
> >
> > I checked:
> >
> > Zope 2.1.6 is shipped with the DeLuxe and Server versions of RedHat 7.0,
but
> > not with the Standard edition. They have split Zope into a couple of
separate
> > packages. On the web page they mention Zope a couple of times!
> >
> > BTW:
> >
> > Zope (also the 2.1.6) is also on the SuSE 7.0 (Professional)
distribution. So
> > Zope is now on most of the major distributions (RedHat, SuSE, Debian)!
>
> We also included Zope 2.1.6 is also included in the new Storm Linux 2000
> (which is based on Debian). We liked Zope so much, we put it on all of
> our editions (Starter, Open, and Deluxe) :)
>
> We also mention Zope on the list of included packages on the outside of
> Deluxe box.
>
> And we use Zope to power our web site:
>
>
> --
>   Kevin Teague, Zopista
>   http://www.stormix.com
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>
>


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




Re: [Zope] secure management with Site Access?

2000-09-26 Thread Rob Miller


David Elkins writes:

> Have you tried setting up something like zope.domain.com with the https
> SiteRoot and Apache pointing directly at manage?

Pointing a virtual host directly at manage I can do, but where do I put the
SiteRoot?  If I put an https SiteRoot in a directory, then plain ol'
unencrypted access won't be happening... all of the URLs inside the site
will point to 'https://' instead of 'http://', right?  Or am I missing
something?

> You could additional add
> in a rewrite/proxy command to redirect to the SSL side for
> www.domain.com/manage.

Again, getting Apache to do the right thing I've got figured out.  It's
just the SiteRoot causing the problem; all of the links inside the folder
with the SiteRoot will be either 'http' or 'https', but I'm looking for
some solution that will allow either, depending on the previous REQUEST.  I
know that SiteRoot is basically a special kind of access rule, maybe a
smarter access rule can be used instead of a SiteRoot...

Thanks for your feedback, and please let me know if there's something that
I'm not seeing.

rob

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

2000-09-26 Thread Alastair Burt

John Chandler <[EMAIL PROTECTED]> writes:

> > > Any ideas how the sync would be done?
> > > 
> > 
> > WorldPilot has the ability to do this, allegedly.
> 
> WorldPilot's Palm side of things was still broken last I checked (last week,
> IIRC) - it was complaining of login errors, though you could login happily
> through other means. Get the freshest version of the software you can as it
> might be fixed now.

The CVS version works better.  I have got it to synch memos, todos and
addresses with no problem.  The calendar entries get transferred but when
they appear on the web page the times and dates are awry.

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

2000-09-26 Thread Kapil Thangavelu

"Bak @ kedai" wrote:
> 
> > ZPYGre is not threadsafe, so with it and all non-threadsafe da's zope
> > uses a lock around access. (Thunked.py)
> >
> > The solution is to just use multiple DA connections and let postgres
> > sort out the concurrency issues.
> >
> 
> i'm not clear about "use multiple DA connections".  let's say i have several
> sql methods.  it is meant for one particular app.  do i create a few  db
> connections and assign them to different sql methods?

i would factor your sql methods into logical groups and give dedicated
connections to groups which might have signifigant concurrent access.
Giving dedicated connections to every method is not productive as you
just increase concurrency problens on the db side. 

an example might be a dedicated connection for user related info,
sessions, etc. and another for a news system.

> anybody know whether PoPy is threadsafe already?

some reference regarding threadsafety as defined by the python dbi from
the db-sig group.

BEGIN REF
Integer constant stating the level of thread safety the interface
supports. Possible values are: 
  0
= Threads may not share the module.
  1
= Threads may share the module, but not connections.
  2
= Threads may share the module and connections.
  3
= Threads may share the module, connections and cursors.


 Sharing in the above context means that two threads may use a
resource without wrapping it using a mutex semaphore to
 implement resource locking. Note that you cannot always make
external resources thread safe by managing access using a
 mutex: the resource may rely on global variables or other
external sources that are beyond your control. 
END REF

First this is in regards to the underlying python lib that drives the
DA. both PyGre and PoPy are thread safety 1. Words have been said to the
effect that the developers of PoPy would like to raise the thread safety
of PoPy to 2. I'm not sure if D'arcy(author PyGre) has any such plans,
however he is a contributor to Postgres and does maintain PyGre.  PyGre
did not use to conform to the python DBI, since it was written to
support the features of Postgres, there is a now a wrapper around it
provide this abstraction. PoPy was built to support the python DBI. I
bring this info up because the DA for PyGre is dated and does not appear
to be supported, but its important to realize that this DA is just a
thin wrapper around the underlying db access lib, and for Postgres both
of these are being worked on.

if you really want a thread safe DA you're going to have to look towards
the commercial DBs. rumor has it that someone at DC is writing a new
Oracle adaptor.

> thanks and sorry to be a bone head :)

no worries, if people never asked than we would all be learning by trial
and error.

> > Cheers
> >
> > Kapil
> >

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