[Zope] Installation help

2010-04-14 Thread Dhilip S
Hi.
I'm beginner to zope. I want to install zope and try to work on it. Please
give me the related link and steps to follow the zope installation and
tutorial for beginner

-- 
with regards,
Dhilip.S
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Script (python) config

2009-05-18 Thread Joseph Thomas (s)
We upgraded from zope 2.9 to 2.10 and in the process upgraded plone as
well.  There's script that simply returns a list of groups to which a
user belongs. In the old system both users in the system and not in the
system (ie ids not in zope) would get HTTP 200 when invoking the script
thru a URL (obviously the non-system users would get an empty list)..

 

Now when system users invoke the script the script returns the list of
groups to which they belong, however, when a user not in the system
invokes the script it returns a 401. Is there some
authentication/security setting that we're missing that's preventing
non-system users invoking the script? We may have overlooked some small
thing (file system permissions, ZMI permissions, authentication settings
etc) when configuring things in the upgraded environmentany ideas
would help.

 

Thanks

 

 



Consider our environment; please print this e-mail only if truly
necessary. Thank you! ___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] sending a encrypted login URL

2009-03-05 Thread Joseph Thomas (s)
Thanks, could you elaborate a bit, I'm somewhat new zope/plone:

I assume we'd need a shared key on both on ore j2ee server and zope, and
did you need to create any changes to Plone PAS?



-Original Message-
From: Dieter Maurer [mailto:die...@handshake.de] 
Sent: Thursday, March 05, 2009 1:55 PM
To: Joseph Thomas (s)
Cc: zope@zope.org
Subject: Re: [Zope] sending a encrypted login URL

Joseph Thomas (s) wrote at 2009-3-4 10:29 -0600:
>We'd like to construct a zope login URL of the form on another server:
>http://zope.domain:port/context/logged_in?__ac_name=uzz&__ac_passwo
r
>d=xxx&submit=Log+in
>where the ac_name and ac_password parameters are encrypted using zope
>public key (?) and have the parameters decrypted when zope receives the
>request and login the user.
>Is there an API or some way to encrypt the username and password on the
>3rd party app server and configure zope so that it treats the
parameters
>as encrypted values rather than plaintext?

We are doing this using the Python package "M2Crypto.EVP"
for the encryption/decryption.



-- 
Dieter
Consider our environment; please print this e-mail only if truly
necessary. Thank you! 
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] FW: sending a encrypted login URL

2009-03-04 Thread Joseph Thomas (s)


-Original Message-
From: Joseph Thomas (s) 
Sent: Wednesday, March 04, 2009 10:50 AM
To: 'li...@zopyx.com'
Subject: RE: [Zope] sending a encrypted login URL

I think I get what you're suggesting, but let me clarify.

I actually wanted the sensitive portions of URL to be encrypted..because it 
will be link on a page that says "login to zope"..but I wouldn't want the user 
or a snooper to be able to view the page source and figure out the URL pattern 
and the username/password.

SSL will ensure that the transport between the browser and the zope server will 
be encrypted using PKI, but I really want to obfuscate the user name and 
password parameters in the login URL. So that that if some1 where to view the 
source they'd see  garbled username/password parameters.

I suppose I could use the PKI to encrypt the username/password with my zope 
server's public key (but is there a API to do this on a J2EE container) and 
then have my zope server decrypt using its private key (but how would zope know 
that the username/password parameters are 2 be treated as encrypted data)?
-Original Message-
From: Andreas Jung [mailto:li...@zopyx.com] 
Sent: Wednesday, March 04, 2009 10:38 AM
To: Joseph Thomas (s)
Cc: zope@zope.org
Subject: Re: [Zope] sending a encrypted login URL

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Use SSL and you're done.

- -aj

On 04.03.2009 17:29 Uhr, Joseph Thomas (s) wrote:
> We'd like to construct a zope login URL of the form on another server:
> 
>  
> 
> http://zope.domain:port/context/logged_in?__ac_name=uzz&__ac_password=xxx&submit=Log+in
> <http://zope.domain:port/context/logged_in?__ac_name=uzz&__ac_password=xxx&submit=Log+in>
> 
>  
> 
>  
> 
> where the ac_name and ac_password parameters are encrypted using zope
> public key (?) and have the parameters decrypted when zope receives the
> request and login the user.
> 
>  
> 
> Is there an API or some way to encrypt the username and password on the
> 3^rd party app server and configure zope so that it treats the
> parameters as encrypted values rather than plaintext?
> 
>  
> 
> Joseph Thomas
> 
> College of American Pathologists
> 
> http://www.cap.org <http://www.cap.org/>
> 
>  
> 
> 
> 
> 
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )


- -- 
ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany
Web: www.zopyx.com - Email: i...@zopyx.com - Phone +49 - 7071 - 793376
Registergericht: Amtsgericht Stuttgart, Handelsregister A 381535
Geschäftsführer/Gesellschafter: ZOPYX Limited, Birmingham, UK
- 
E-Publishing, Python, Zope & Plone development, Consulting

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkmurnAACgkQCJIWIbr9KYylKQCgn3WWP5SzGrrAQbJIQXv7Bfac
3fwAoIiI4iwtVBFVRg7jtZu5Vgy5fw3f
=MHol
-END PGP SIGNATURE-
Consider our environment; please print this e-mail only if truly
necessary. Thank you! 
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] sending a encrypted login URL

2009-03-04 Thread Joseph Thomas (s)
We'd like to construct a zope login URL of the form on another server:

 

http://zope.domain:port/context/logged_in?__ac_name=uzz&__ac_passwor
d=xxx&submit=Log+in

 

 

where the ac_name and ac_password parameters are encrypted using zope
public key (?) and have the parameters decrypted when zope receives the
request and login the user.

 

Is there an API or some way to encrypt the username and password on the
3rd party app server and configure zope so that it treats the parameters
as encrypted values rather than plaintext?

 

Joseph Thomas

College of American Pathologists

http://www.cap.org  

 



Consider our environment; please print this e-mail only if truly
necessary. Thank you! ___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] What am I getting with a plone windows installer?

2009-01-26 Thread Joseph Thomas (s)
 

I recently installed plone from plone.org, just curious what's the
difference between the python installation that's bundle with plone
and/or zope and a stand-alone python installation?

 

Can I use the bundled python installation as the base for other
applications that need python, like wxPython?

Joseph Thomas

College of American Pathologists

http://www.cap.org  

 



Consider our environment; please print this e-mail only if truly
necessary. Thank you! ___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Error in python method...

2009-01-13 Thread Joseph Thomas (s)
Its not zope perse, but Plone that we're customizing. I may be able to sell 
zope 3/Grok etc but it all hinges on plone support on the underlying app server 
or framework. Is plone ready to run on Grok? 
-Original Message-
From: Jeff Peterson [mailto:jeff.peter...@crary.com] 
Sent: Tuesday, January 13, 2009 1:36 PM
To: li...@zopyx.com; Joseph Thomas (s)
Cc: zope@zope.org
Subject: RE: [Zope] Error in python method...

Agreed, if you are going through the learning curve anyway, may as well be the 
new way.  Grok, in fact, may take less time to get into for basic apps.

--
Jeffrey D Peterson
Webmaster
Crary Industries, Inc.


-Original Message-
From: zope-boun...@zope.org [mailto:zope-boun...@zope.org] On Behalf Of Andreas 
Jung
Sent: Tuesday, January 13, 2009 10:54 AM
To: Joseph Thomas (s)
Cc: zope@zope.org
Subject: Re: [Zope] Error in python method...

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

If you are new to Zope and/or interested in Zope, you are possibly more 
interested in using GROK (grok.zope.org) for getting started with Zope instead 
of using the "old" Zope 2 system.

- -aj

On 13.01.2009 17:36 Uhr, Joseph Thomas (s) wrote:
> 
> *I'm going thru the online zope book (2.6) and trying out the simple
> interest rate calculator web application under the section*:
> 
> 
> *Creating a Basic Zope Application Using Page Templates and 
> Scripts*
> 
> 
> 
> *http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/BasicObje
> ct.stx*
> 
> 
> *I'll attach the error log:*
> 
> 
> * *
> 
> *Time*
> 
>   
> 
> 2009/01/13 09:57:11.072 US/Central
> 
> *User Name (User Id)*
> 
>   
> 
> admin (admin)
> 
> *Request URL*
> 
>   
> 
> http://localhost:8080/interest/interestRateDisplay
> 
> *Exception Type*
> 
>   
> 
> AttributeError
> 
> *Exception Value*
> 
>   
> 
> calculateCompoundingInterest
> 
> Traceback (innermost last):
> 
> * Module ZPublisher.Publish, line 119, in publish
> * Module ZPublisher.mapply, line 88, in mapply
> * Module ZPublisher.Publish, line 42, in call_object
> * Module Shared.DC.Scripts.Bindings, line 313, in __call__
> * Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
> * Module Products.PageTemplates.ZopePageTemplate, line 330, in _exec
> * Module Products.PageTemplates.ZopePageTemplate, line 427, in pt_render
> * Module Products.PageTemplates.PageTemplate, line 89, in pt_render
> * Module zope.pagetemplate.pagetemplate, line 117, in pt_render
> * Module zope.tal.talinterpreter, line 271, in __call__
> * Module zope.tal.talinterpreter, line 346, in interpret
> * Module zope.tal.talinterpreter, line 623, in do_insertText_tal
> * Module Products.PageTemplates.Expressions, line 228, in evaluateText
> * Module zope.tales.tales, line 696, in evaluate
>   *URL: /interest/interestRateDisplay*
>   *Line 10, Column 4*
>   *Expression:here.calculateCompoundingInterest(principal, interest_rate,
>   periods, years)>*
>   *Names:*
> 
> ·{'container': ,
> 
> · 'context': ,
> 
> · 'default': ,
> 
> · 'here': ,
> 
> · 'loop': {},
> 
> · 'nothing': None,
> 
> · 'options': {'args': ()},
> 
> · 'repeat':  object at 0x06EB1A08>,
> 
> · 'request':  URL=http://localhost:8080/interest/interestRateDisplay>,
> 
> · 'root': ,
> 
> · 'template':  /interest/interestRateDisplay>,
> 
> · 'traverse_subpath': [],
> 
>  'user': }
> 
> * Module Products.PageTemplates.ZRPythonExpr, line 49, in __call__
>   __traceback_info__: here.calculateCompoundingInterest(principal,
>   interest_rate, periods, years)
> * Module PythonExpr, line 1, in 
> 
> AttributeError: calculateCompoundingInterest
> 
> 
>   *form*
> 
> *interest_rate*
> 
>   
> 
> 12.0
> 
> *years*
> 
>   
> 
> 12
> 
> *periods*
> 
>   
> 
> 4
> 
> *principal*
> 
>   
> 
> 2.0
> 
> 
> * *
> 
> 
> * *
> 
> 
> *Does this indicate an error with my python script?*
> 
> 
> * *
> 
>  
> 
>  
> 
> Joseph Thomas
> 
> College of American Pathologists
> 
> http://www.cap.org <http://www.cap.org/>
> 
>  
> 
> 
>

[Zope] Error in python method...

2009-01-13 Thread Joseph Thomas (s)

I'm going thru the online zope book (2.6) and trying out the simple
interest rate calculator web application under the section: 


Creating a Basic Zope Application Using Page Templates and Scripts


http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/BasicObject.
stx


I'll attach the error log:


 

Time

2009/01/13 09:57:11.072 US/Central

User Name (User Id)

admin (admin)

Request URL

http://localhost:8080/interest/interestRateDisplay

Exception Type

AttributeError

Exception Value

calculateCompoundingInterest

Traceback (innermost last): 

*   Module ZPublisher.Publish, line 119, in publish
*   Module ZPublisher.mapply, line 88, in mapply
*   Module ZPublisher.Publish, line 42, in call_object
*   Module Shared.DC.Scripts.Bindings, line 313, in __call__
*   Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
*   Module Products.PageTemplates.ZopePageTemplate, line 330, in
_exec
*   Module Products.PageTemplates.ZopePageTemplate, line 427, in
pt_render
*   Module Products.PageTemplates.PageTemplate, line 89, in
pt_render
*   Module zope.pagetemplate.pagetemplate, line 117, in pt_render
*   Module zope.tal.talinterpreter, line 271, in __call__
*   Module zope.tal.talinterpreter, line 346, in interpret
*   Module zope.tal.talinterpreter, line 623, in do_insertText_tal
*   Module Products.PageTemplates.Expressions, line 228, in
evaluateText
*   Module zope.tales.tales, line 696, in evaluate
URL: /interest/interestRateDisplay
Line 10, Column 4
Expression: 
Names:

*{'container': ,
* 'context': ,
* 'default': ,
* 'here': ,
* 'loop': {},
* 'nothing': None,
* 'options': {'args': ()},
* 'repeat':
,
* 'request': http://localhost:8080/interest/interestRateDisplay>,
* 'root': ,
* 'template': ,
* 'traverse_subpath': [],
 'user': }

*   Module Products.PageTemplates.ZRPythonExpr, line 49, in __call__
__traceback_info__: here.calculateCompoundingInterest(principal,
interest_rate, periods, years)
*   Module PythonExpr, line 1, in 

AttributeError: calculateCompoundingInterest 


form

interest_rate

12.0

years

12

periods

4

principal

2.0


 


 


Does this indicate an error with my python script?


 


 

 

Joseph Thomas

College of American Pathologists

http://www.cap.org  

 



Consider our environment; please print this e-mail only if truly
necessary. Thank you! ___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Please Help - Extracting Info From ZEXP File

2007-04-13 Thread s
I just took over a website that was done in Zope/Plone. The person formerly
responsible for it was not helpful to the client or me in the transition
process. Basically he emailed a ZEXP file to me, told me it contains
everything I need, and washed his hands of the whole project. I was able to
"grab" nearly all the html, css, and javascript files through the web before
he removed the site from his server, but now I realize a few pages were
missed. So, it seems the only possibility of restoring those missed pages is
if 1) everything really is in that ZEXP file and 2) I can find a way to "get
to it." I know nothing about Zope/Plone and, no offense to anyone, do not
plan on adding it to my repertoire of knowledge in the near future. I just
want the "normal" HTML content as it would've been displayed for these
certain pages that were not grabbed before he removed the site. Is this
possible? If so, could someone please spell out exactly how I can go about
retrieving this information from the ZEXP file?

 

Sincerely,

Shawn

Spinner at networthyinc dot com

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


[Zope] ODBC database adapter for zope2.8.1 on windows

2005-10-10 Thread Sreekanth S Rameshaiah
Dear Friends,
Is there any good ODBC database adapter for zope2.8.1 on windows?
Thanks and Regards,
 - sree
-- 


Sreekanth S Rameshaiah
Executive Director
Mahiti Infotech Pvt. Ltd.
Ph: +91 98455 12611
www.mahiti.org
www.mahiti.org/Team/Sreekanth

"First they ignore you, then they laugh at you, then they fight you, 
then you win." -- Mahathma Gandhi

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


[Zope] Description Strings in Archetypes

2005-04-11 Thread S . D .
I'm running Archetypes 1.3.2-final in Plone 2.0.5 (Mac OS X Server). I added the
Article example from ArchExamples to the available items list in a Plone site.
It works fine except for the fact that when you look at a list of Articles
inside a given folder, each item's Description is taken from the Description
string of the containing folder rather than the Description attached to that
individual Article.

For example, if I create a folder named "Foo" whose Description field reads
"Place your foo in this folder," that description is attached to each of the
Articles you see when you look at the folder listing.

Apparently, the Description info is being taken from the wrong "Description."
How can I adjust Archetypes to find and display the correct, Article-specific
Description?

Thanks!

Scott

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


Re: [Zope] Persistent Objects

2005-04-08 Thread Roy S. Rapoport
On Fri, Apr 08, 2005 at 07:13:11PM +0200, Lennart Regebro wrote:
> In that case I would just store the information as usual in the ZODB,
> that is, the data is persistent across server restarts, but call a
> method that updates it when you log in (or simply have a button to do
> it).

That works. 

> Actually, it does, :) But mainly, it solves a lot of things that were
> problematic with Zope. All development is (currently, this will
> change) done on the file system, no more tricky Python Scripts for
> example.

Hmm.  Wouldn't this allow for massively simpler integration with CVS, then?

> It also allows you to do more things in pure Python, and then "wrap"
> it in Zope configuration stuff. That makes test driven development
> easier, and also reusing pure python stuff gets easier.

Nifty!

> 
> Read a bit about it, and see what you think:
> http://www.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/FrontPage/Zope3Book
> 
> Zope2 is still good. Zope 3 is just better, in many ways, although it
> still lacks in third-party product support.

I'm a bit concerned about my perception of Zope 3's flux.  I was especially
dismayed to see, in the Z3 book,
---
 Zope 3 will come with an advanced ZODB to Filesystem synchronization tool,
similar to CVS. This will allow people to make local copies of their sites
work on it and check in the changes and much more. This recipe will explain
how to effectively use this tool.

Note: This chapter will not be included in the first version of the book,
since Zope X3 3.0.0 will not ship with it and it is not actively maintained
at this point. 
---

The first paragraph was great.  The second wasn't :)

-roy
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Persistent Objects

2005-04-08 Thread Roy S. Rapoport
On Fri, Apr 08, 2005 at 06:48:49PM +0200, Lennart Regebro wrote:
> But "for the life of the server" is rather unusual... What are the
> objects you are doing, more specifically?

We're porting a web application to manage a collection of DNS and DHCP
servers.  At startup time, we talk to each of these DNS and DHCP servers to
ask them what zones they know about (in the case of the DNS servers) and
what pools of addresses they use (in the case of the DHCP servers).  This
information changes rarely, and costs some time to acquire.  

Actually having said this just now, I'd say a better solution for us would
be to actually initialize an object when the user logs in -- we can
tolerate that delay, and that gives us a relatively fresh snapshot of the
current situation.  Don't know how that changes things.  It feels like it
should make it easier.

> (Although, if you aren't planning to use any third-party products, you
> might actually want to look into using Zope3 instead, which is way
> cooler, but a tad more complicated to get started with).

Hmm.  I'd be willing to use Z3, I think -- I haven't done Zope development
for about 6-9 months, but all my previous experience has been on 2.x.  The
other people involved in this are all brand new to Zope.  Why should I use
Z3? Does it have better documentation? :)

-roy
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Persistent Objects

2005-04-08 Thread Roy S. Rapoport
On Fri, Apr 08, 2005 at 11:30:23AM +0200, bruno modulix wrote:
> Look into Product, ZODB, and acquisition !-)

Excellent.  It looks like persistence may not be an issue here, actually,
since I think the persistence I want -- hang around for the life of the
Zope server -- is built in anyway, right?

So what's a decent source these days for 'how to write a product'
documentation? The Zope Developers Guide is in 2.4.

-roy
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Persistent Objects

2005-04-08 Thread Roy S. Rapoport
On Fri, Apr 08, 2005 at 12:00:45PM +0200, Lennart Regebro wrote:
> Is this persistent even among server restarts, or persistent per
> request, or persistent per session? (the answer is different for all
> of them, and usually, in Zope, "persistent" means "persistent over
> server restarts").

Ah, sorry.  In this case, it's persistent for the life of the server, so we
expect to re-initialize it when Zope restarts.  Oh, and it'd be nice to
give it a .reinit() capability too, if the user wants to refresh :)

-roy
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Persistent Objects

2005-04-08 Thread Roy S. Rapoport
A coworker of mine wrote his own web server framework from scratch for an
internal application.  We're looking to migrate this application to Zope
(thank God!).  The only question we need to deal with is:  

The reason he wrote his own webserver rather than use CGIs is that there
was some processing that needed to happen to initialize a system state --
basically, create an object that knows about the configuration of some
things.  In his model, this object is created at the beginning and is
simply shared among the various Python objects/modules that are invoked when
responding to user requests.

How can I create such a persistent object that, say, a python script object
or a page template could access?

(Sure, handholding on this would be nice, but what I'm actually expecting
is answers along the lines of "look into ")

-roy
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] ZClass authorization problem (You are not authorized to access manage_changeProperties)

2000-08-07 Thread Gaspard, Bradley S

I have created a new ZClass which contains a dtml method that first clones
an object and then edits it's properties:





When I fill out the 'add' form and try to create a new instance I am
presented with the error message (as a user with
a manager role):

You are not authorized to access manage_changeProperties

I am able to successfully create an instance if I am the superuser.

How do I fix this??

Brad




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

2000-08-01 Thread Gaspard, Bradley S

I have what I fear is a very basic question ... 

I want to write an external method that first determines all of the objects
in a folder that posses a certain property.
I know how to find the object ids but once I do that how do I then determine
which contain the property I am searching for??

Thanks for any help.

Brad




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




[Zope] Using MySQL with ODBC causes re-authentification of Zope on WIN2000

2000-07-25 Thread Richard S Herrington


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

...snip...snip...




...snip...snip

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

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

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


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

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

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

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

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

   Epictetus (50-138 A.D.) 

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

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

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


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




[Zope] Adding an XMLDocument instance Programmatically

2000-07-24 Thread Gaspard, Bradley S

I am trying to write a python method which will programmatically create an
instance of an (existing) XML document.  (I am using Zope2.1.6 and
XMLDocument 1.0a6)  I am able to add an XML document by selecting the
XMLDocument from the available objects ... so XMLDocument is installed
correctly.

Essentially I have taken the 'add' method of XMLDocument and tried to turn
it into an external method.  [I was able to successfully do this for the
Parrot product so hopfully I am on the right track]

I can' t seem to get beyond importing Document (cannot import name
Document).  Do I need to import other modules?  Is this the best/only way to
do this??  Appreciate any help.

from Products.XMLDocument import Document

def add(self, id, title='', file='', REQUEST=None, submit=None):
"""
Add a XML Document object with the contents of file.
"""
ob=Document()
ob.title=title
ob.id=id
if file: ob.parse(file)
id=self._setObject(id, ob)
if REQUEST is not None:
try: u=self.DestinationURL()
except: u=REQUEST['URL1']
if submit==" Add and Edit ": u="%s/%s" % (u,quote(id))
REQUEST.RESPONSE.redirect(u+'/manage_main')
return ''

I appologize in advance if I have missed something obvious.

Brad


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

2000-07-11 Thread Sean S. Rowe

Still not working.  I am using version 2.1.6 and compiled using 'python -O
wo_pcgi.py'.  In addition, the QuickStart guide works, which seems to use
Zope.

Is it possible Apache is somehow handling the request and I need to direct
it to pass authentication variables?

Thanks,

Sean.

> hi sean,
>
> the zpasswd is run like this:
>
> python zpasswd.py access
>
> the password creation is in dialog form.
>
> jens
>
> p.s.: please don't send HTML-formatted mail to the list
>
>
> on 7/11/00 14:55, Sean S. Rowe at [EMAIL PROTECTED] wrote:
>
> Hello.
>
> I'm new to Zope and have just installed it on a server running BSD.  I
built
> the source and everything went fine.  I went to localhost:8080 bypassing
> Apache and the welcome screen came up as it was supposed to.
>
> However, I cannot logon to the manage section of Zope.  My password is
> always wrong.  I changed my password with the following: 'python
zpasswd.pyo
> -p new_password access'.  Nothing I do seems to work and the only info I
can
> find is on running with Apache not Zserver.  Any help would be greatly
> appreciated.
>
> Thank you,
>
> Sean S. Rowe
> Output Technology Corporation
>
>
>


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

2000-07-11 Thread Sean S. Rowe



Hello.
 
I'm new to Zope and have just installed it on a 
server running BSD.  I built the source and everything went fine.  I 
went to localhost:8080 bypassing Apache and the welcome screen came up as it was 
supposed to.
 
However, I cannot logon to the manage section of 
Zope.  My password is always wrong.  I changed my password with the 
following: 'python zpasswd.pyo -p new_password access'.  Nothing I do seems 
to work and the only info I can find is on running with Apache not 
Zserver.  Any help would be greatly appreciated.
 
Thank you,
 
Sean S. Rowe
Output Technology 
Corporation


[Zope] Newbe question concerning using python classes and external methods

2000-07-06 Thread Gaspard, Bradley S

All,

I am a new Zope user and I guess I'm missing something fundemental that I
haven't been able to glean from the documentation and various "How-to's".
As a learning tool I am trying to implement one of Brian Lloyd's examples I
found on the Web implementing a GuestBook.  

I suspect what I don't understand is how to write the external method that
would make use of this class (The one I have been playing with follows the
class definitions).  Anyhow, I've created an an external method and call
(e.g. ) after which the guestBookForm is displayed.  After
filling out the form and submitting it Zope does not seem able to find the
signGuestBook method.  What am I doing wrong??

Other than mostly trivial examples, I haven't been able to find many
complete (working) examples of using external methods.

Thanks in advance for any help.


"""Module guestbook: a simple guestbook application"""

class GuestBook:
  """A guestbook object that provides both the forms
 and the handling of submitted form data."""

  def __init__(self, title, filename):
self.title=title
self.filename=filename

  def guestbookForm(self):
"""Return the guestbook from to the user"""
return """
  %s
  
  %s
  Please sign our guestbook!
  
  
  Name: 
  Email: 
  
  
  
  """ % (self.title, self.title)

  def successPage(self):
"""Return a page to thank the user on success"""
return """
  %s
  
  Thank You!
  Thank you for signing %s!
  
  """ % (self.title, self.title)

  def signGuestBook(self, name, email='not specified'):
"""Handle a submitted guestbook form"""

# Open a file to save the guestbook entry
try: 
  file=open(self.filename, 'a')
except IOError:
  file=open(self.filename, 'w')
entry='Guestbook entry: %s %s\n' % (name, email)
file.write(entry)
file.close()
return self.successPage()





External method

import sys
sys.path.append('/usr/local/src/Zope-2.1.6-linux2-x86/lib/python/Shard/jscap
e/winsat')

import guestbook

def AddGuest(self):
  myGuestBook=guestbook.GuestBook('My GuestBook', 'guestbookdata.txt')
  return myGuestBook.guestbookForm()




Brad


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