Re: [Zope] Problem with Z Psycopg

2005-04-05 Thread Lutz Steinborn
Hi,

try to ask frederico [EMAIL PROTECTED] the maintainer zpsycopg/da
directly.
We use postgresql 8.0.1 and psycopg 1.1.18 with out
this problems.

best regards

Lutz


On Mon, 4 Apr 2005 15:15:17 -0700
Jason Leach <[EMAIL PROTECTED]> wrote:

> I'm having a problem with Z Psycopg.  From time to time (quite
> often) it looses the connection with the database and I get:
>Site Error
>An error was encountered while publishing this resource.
>Error Type: OperationalError
>Error Value: no connection to the server
> 
> Then I have to login then close and open the connection.  It
> then works for a while before bailing again.
> 
> Does anyone know what would be causing this?
> 
> Zope Version (Zope 2.7.3-0, python 2.3.4, linux2)
> Python Version 2.3.4 (#1, Oct 13 2004, 21:44:19) [GCC 2.95.4
> 20011002(Debian prerelease)]
> And ZPsycopg is version 1.11
> 



-- 
Lutz Steinborn   mailto:[EMAIL PROTECTED]
4c AGTel +49 6092 999592
Stefan-George-Ring 8 Fax +49 89 99341 399
81929 Münchenhttp://www.4c-shopping.de
 http://www.4c-wohnen.de
 http://www.4c-parfum.de

___
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] Re: login page problem

2005-04-05 Thread prabuddha ray
HI Cliff,
  I was hoping another reply eagerly. hope you dint give up on me.

I've got some clarifications given below.

On Mon, 04 Apr 2005 16:08:50 +0100, Cliff Ford <[EMAIL PROTECTED]> wrote:
> I am abstracting bits of your email below in case anyone else wants to
> join in.
>
> If you are going to use Plone I can't offer advice - I have looked at
> Plone on three separate occasions, and recently read The Definitive
> Guide to Plone, and have stil decided not to use it. I only say this to
> make it clear that many applications are built without CMS and Plone.
>

I had no idea about this. i knew that zope acts as a app server and
plone is the front end tool.
In fact I'm building the store's site as a plone site in zope. As a
matter of fact i've not done much specific in plone . just built 2
tabpanes.
I configured the exUserFolder using the mysql database and as expected
it built up a seperate login system. so i believe it'll work on itself
without plone.
One problem that concerns next query is that it took only one table
for user details whereas i had one more table for district.

>
> Two separate tables with User information is awkward! The user folders I
> know of expect user information to come from one source. So you either
> have to create two folders, each with its own acl_users (provided by one
> of the User Folder Products), or you have to hack the User Folder
> product to put in a Union select statement in place of a simple Select.
> d quarters.

let me explain the login page flow. a dropdown list of districts is
available on load. on selecting a  district the page reloads and the
available users are listed in 2nd dropdown list.
after selecting the user the password is to be given. So that way i
need both the 'district' and the 'userdetail' table. actually the
district table has district code ,name and other stores related nfo.
userdetail table is linked using this district code.

>
> You have not said whether the people in the different districts do
> completely different things with different forms, or identical things
> but specifying the district. If the former then it is no big deal to
> create the folders manually, although it can be done programmtically.
> You could set a Local Role equal to the district name and get that role
> for users from the database. That way, users can only enter their own
> district folder. If the latter, then you could retrieve the Username and
> District from the User object for use in the forms (include the District
> as a role).
>

users are of different level like store-in-charge, sys mgmt group,
vendors and normal users.
they are in all the districts. so depending on the user level diffrent
set of menu page are to be generated ie. users of same level in
diferent districts do same thing.
In earlier ASP version I handled this in the login page handler ASP
page and wanted to use the same logic here.
district shouldn't be the user role , 'userlevel' will act as user role here.
but the folders would be districtwise, I suppose.

honestly I'm little bogged out by the exuserFolder feature, its using
Dtml all the way and I'm sticking to ZPTs and script pythons.


> Try working on the rest of your application to build up ZPT and Python
> experience. As I said, managing users is tricky. Also, be aware that
> Zope experts advise developers to produce file system based Products.
> There are lots of simple Products that you can use and browse the code
> to see how they work.
>
> Cliff
>

I completely understand this. but the problem remains the same . how
do i customise these products acccording to my needs.

hope this helps you in helping me. waiting for your reply.
-- 
Share the vision of difference with ME
___
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] Does anyone care whether we deprecate ZClasses?

2005-04-05 Thread Andreas Jung

--On Dienstag, 5. April 2005 16:38 Uhr -0400 Jake <[EMAIL PROTECTED]> wrote:
And that is probably the best arguement for keeping them around longer.
We should get to the point: if some people depend on ZClasses then they 
should
take over some responsibility in maintaining them in future releases. It 
can not be
that a "feature" regarded as obsolete (from the majority) and almost 
unmaintained and
untouched since  ages holds up further releases. I agree with Jim that they 
should be
officially deprecated - means they could be removed in Zope 2.10. We could 
leave them
longer if they should work in further releases without further work. If 
there are serious
problems in  further releases with ZClasses holding up a new release we 
should kick them.
So if you depend on ZClasseslearn how they are implemented and maintain 
them in the
future. But from the prospective of limited resource it is not reasonable 
to spend much
time on ZClasses in the future.

-aj




pgpe8HOYVqLUR.pgp
Description: PGP signature
___
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] Programatically setting advanced settings in zsql methods

2005-04-05 Thread Jeff Gentry

On Wed, 6 Apr 2005, Chris Withers wrote:
> Check out how it's implemented in the CMF's FSZSQLMethods

To this and others who responded, thanks for the pointers.  I assumed that
it was going to be possible (since the ZMI does it ...) but didn't know
where to look for that, and google searches on what I figured to be good
search terms wasn't very fruitful.

danke
-J

___
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] Re: CMFSin time errors

2005-04-05 Thread alan runyan
MILLER Eva wrote:
Hi,
I'm getting some errors with certain feeds, but not others, in CMFSin. 
The errors seem to have something to do with the portaltime and 
localized time. Someone suggested changing the permissions for anonymous 
to fix this. Doing that made all my feeds malfunction, so that's not the 
right answer.

I know CMFSin is old and it seems to be getting flaky. But I really need 
an aggregator for my project, and it doesn't seem like there's anything 
much better out there right now.

SyntaxError: Tue, 05 Apr 2005 14:21:06 EDT
in the ZMI click Help -> Zope API -> DateTime read the information
about DateTime; its very picky about the parsing of strings.  I cant
remember if that is a valid time for RSS.
--
Alan Runyan
http://www.enfoldsystems.com/
p. +1.713.942.2377
f. +1.832.201.8856
___
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] Programatically setting advanced settings in zsql methods

2005-04-05 Thread Chris Withers
J Cameron Cooper wrote:
Of course. You can do anything the ZMI does. If you look at how it's 
done there, you will eventually come to the method manage_advanced. You 
can see it online:

http://svn.zope.org/Zope/trunk/lib/python/Shared/DC/ZRDB/DA.py?rev=24751&view=auto 

I suppose you could also just set the property 'max_rows_' if that's all 
you're interested in.
Check out how it's implemented in the CMF's FSZSQLMethods
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk
___
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] Product creation difficulty

2005-04-05 Thread Chris Withers
Pete Taylor wrote:
Does anyone have a recommendation for a Product creation guide/tutorial
they've used and made work, preferably one with examples and explanations of
_ac_permissions?
Look at the Zope Book in Plope.com. Manipulating _ac_permissions 
directly is NOT the thing to do nowadays...

  Module AccessControl.ZopeGuards, line 300, in load_module
Unauthorized: You are not allowed to access 'XMLRPCClient' in this context
Look at Products/PythonScripts/standard.py for examples for how to allow 
this import...

cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk
___
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] Re: login page problem

2005-04-05 Thread Chris Withers
Dieter Maurer wrote:
exUserFolder has built in caching (positive and negative caches),
Dunno what that means, but SUF supports caching via standard 
RAMCacheManagers or ZSQL method caching.

directly integrates with the MembershipTool
What does that entail? SUF should quite happilly replace the userfolder 
in a CMF site...

and support
unlimited additional properties on user objects...
Well, SUF does, although I don't know if I ever released that version 
due to broken zope.org, it's available to whoever asks for it though...

cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk
___
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] Problem with Z Psycopg

2005-04-05 Thread Jason Leach
On Apr 5, 2005 1:03 PM, Dieter Maurer <[EMAIL PROTECTED]> wrote:
> Jason Leach wrote at 2005-4-4 15:15 -0700:
> >I'm having a problem with Z Psycopg.  From time to time (quite often)
> >it looses the connection with the database and I get:
> >   Site Error
> >   An error was encountered while publishing this resource.
> >   Error Type: OperationalError
> >   Error Value: no connection to the server
> 
> Usually, this means that the postgres server process died...

Probably the case.

> >Then I have to login then close and open the connection.  It then
> >works for a while before bailing again.
> 
> I do not have to do this because "ZPsycopgDA" automatically
> reconnects when an "OperationalError" is raised.
> Thus, this is strange.

In my case it will not reconnect. It just keeps giving the OpperationalError.
___
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] Re: Plone/Zope on Debian Sarge

2005-04-05 Thread Andreas Pakulat
On 05.Apr 2005 - 13:49:04, Derrick Hudson wrote:
> On Tue, Apr 05, 2005 at 07:34:14PM +0200, Andreas Pakulat wrote:
> | On 05.Apr 2005 - 12:01:14, Derrick Hudson wrote:
> | > On Mon, Apr 04, 2005 at 02:02:43PM +0100, Chris Withers wrote:
> | > but before that began the packages were just fine.  It would seem,
> | > too, that the bit-rot will recede in the near future.  In the
> | > meantime, I would recommend using the upstream source for
> | > installation.
> | 
> | As I said, if you install zope27 you get a message what to do next to
> | get the instance up and running. The same with plone. The only
> | drawback at the moment is, that you need to change the zope.conf to
> | get some packages to work with zope27.
> 
> It's good to see someone with a mainly positive experience using the
> newer packages.

That's a bit too much to say... I used 2.6 packages back in 2003 and
until Debian decided to support multiple instances in its 2.6 packages
everything worked fine. Thus I installed 2.7 in my home when I
restarted my work on the website... I just had an argument on
debian-user-german with somebody who basically said "why does Plone
state it's easy to install and works out of the box, when it doesn't".
He tried with apt-get install plone and after some forth and back I
decided to try it out myself and found that he just didn't read the
debconf-message. So it's basically only the installation experience,
nevertheless this was really good - I seldom find such messages in a
debconf during installation of a package. The normal case from my
experience is that the maintainers just expect the user to go to
/usr/share/doc/ and read README.Debian. 

> If you're interested, take a look at

I'm not working with Zope anymore, I'm not even working on those
websites anymore...

> | This will probably change when
> | Debian finally drops zope26
> 
> Or when people finish organizing and implementing a way to support
> multiple versions of zope (which, IMO, is necessary).

I think the 2.6 and 2.7 packages in Debian can quite good coexist, I
mean if you're using those 3 extra product-lines in the conf of
zope2.7 and install all the new Products (that don't work with
zope2.6) into the instance-home it shouldn't be much of a problem.
Of course there coud be a problem with those FileSystem-Products that
store the data in the filesystem, you probably cannot share those with 
the 2 versions, but then it's still easy to have a copy of the
product-folder for each version of zope...

> | (I don't understand why they keep it
> | anyway...)
> 
> I believe they keep it just because it is already there and we are
> near a stable release (and there is no immediate path to safely drop
> it).  More-or-less the same reason python 2.1 and 2.2 are still in
> debian (but won't be in etch).

Ok, I guess I did not get that there was no zope maintainer for a long
time. Because Zope2.7 is not there since some months (I mean
upstream), but for a rather long time... 

> People who are currently using 2.6 will need 2.6 in sarge when it is
> released, and they'll also need 2.7 so they can work on migrating.
> Then 2.7, 2.8 and 3.1 will need to co-exist so people can migrate from
> 2.7 to one of the others and so that individual projects/sites can be
> migrated independently (without needing new hardware or installing
> from source).

Maybe I'm just to used to installing from source, but for upgrading
purposes I would still do it with the source package... I tried to
upgrade the 2.6 instance with the debian 2.7 package, but I messed
up. Doing it with the source package was somehow easier - even though
this probably wasn't a problem of the packages themselves, but of my
knowledge (or better the lack of). Then I read the zope-ml's and found
that a common advice is to use the source packages...

So far for my story, and I do think the debian packages for zope are
quite good (as debian packages are in general ;-)

> PS - did you mean to continue this discuss off- list?

Did I? I don't think so, but maybe you set a header that caused my
mutt to do a CC - anyway the fcc-hook for the mail was active, so I
don't have a copy of it anymore (ML-mails go to /dev/null here).

I'm putting it back on list now.

Andreas

-- 
You will not be elected to public office this year.


-- 
Zum Abmelden eine Mail mit Betreff unsubscribe an [EMAIL PROTECTED] senden.
http://www.dzug.org/mailinglisten/zope/archive/2005/2005-04/1112728442930

Bitte die Policy beachten: http://www.dzug.org/kommunikation#regeln


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


RES: [Zope] Programatically setting advanced settings in zsql methods

2005-04-05 Thread Jose Henrique dos Reis
Jeff,

Take a look at manage_advanced method in lib\python\Shared\DC\ZRDB\DA.py.

Zenrique

-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] nome de Jeff
Gentry
Enviada em: terça-feira, 5 de abril de 2005 16:29
Para: zope@zope.org
Assunto: [Zope] Programatically setting advanced settings in zsql
methods


Hello ...

I have a python based product where I am creating a few zsql methods at
the time of instantiation.  I recently realized that there is the default
1000 row maximum limit on query rows.  While this can be changed through
the management interface, I am trying to figure out how to do this when I
create the SQL method in the python code.  Is this possible?

Thanks
-Jeff

___
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 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] RSS feed: post-processing?

2005-04-05 Thread MILLER Eva
Hi,

OK, let me see if I can do that...

I've already figured out that a python script/external method solution
is what I'm after. But how to make it work?

Anyone know about Greasemonkey in Firefox? Basically, it embeds a handy
link in Web pages that have ISBN numbers in them (unique identifier for
a book). When you configure Greasemonkey right, it checks for the book
in your local catalog and returns a link to that book in your local
library catalog. The trick is to use the same idea, but inside of Plone
with an RSS feed that displays current bestsellers or other book-related
stuff where there's an ISBN included.

Here's the sort of python script I need, to the best of my knowledge,
though the first function I can't use (it checks against an Amazon
Wishlist--I don't want anything to be dependent on Amazon or a
particular browser). Jon Udell provided it, and he's the one who wrote
the LibraryLookup bookmarklet that does something similar to what I
want:

import amazon, re, urllib2

wishes = amazon.searchByWishlist('BNQ1T3SLPJS7');

def rss( items ):
 return """

LibraryLookup reminders
http://www.amazon.com
Remind me when books on my Amazon wishlist become
available at the library
%s

 """ % items

def isAvailable ( isbn ):
 url = 'http://ksclib.keene.edu/search/i=%s' % isbn
 page = urllib2.urlopen(url).read()
 return re.search ( 'AVAILABLE', page ) is not None

items = ''

for wish in wishes:
 isbn = wish.Asin
 if (  ( re.match( '\d{7,9}[\d|X]', isbn ) is not None) and
isAvailable(isbn) ):
   items += """

%s
%s
%s
\n  """ %  ( wish.ProductName, wish.URL, wish.Authors.Author )

output = rss ( items )

name = 'libraryReminders.xml'

f = open(name,'w')
f.write(output)
f.close()

So, I need to simplify this script (get rid of the wishlist stuff),
create an external method for it, then figure out how to get the
template in CMFSin to call the external method. I've never done any of
this before (which probably explains why I have a hard time describing
my problem better).

The CMFSin template I need to alter looks like this, and I'm not sure
exactly where or how to call the method:

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
http://www.w3.org/1999/xhtml"; xml:lang="en-US"
  lang="en-US"
  metal:use-macro="here/main_template/macros/master"
  i18n:domain="plone">

  

Disable the tabs

  

  


Title or id








  
 







   There are currently no items in this feed.







-Original Message-
From: Chris Withers [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 04, 2005 6:12 AM
To: MILLER Eva
Cc: zope@zope.org
Subject: Re: [Zope] RSS feed: post-processing?


Sorry Eva,

You'll need to explain your problem more succintly for people to be able

to help. If you really do need to scrape the urls from the text, then a 
combination of python's xml handling and regular expressions is probably

what you're after, best done in an external method and not a python 
script...

cheers,

Chris

MILLER Eva wrote:

> Hello,
> 
> I've been puzzling over something but can't figure out a solution. I
> have an RSS feed providing the content behind all the links on this  
> page: http://demo.plinkit.org/interestsideas/goodreads/booklists.
> 
> There's a nice bookmarklet tool in the world called LibraryLookup that
> lets you check whether a book you find on Amazon or something is in  
> your library's catalog by scraping up the ISBN and launching an ISBN  
> catalog search. It's a javascript, really. I thought I would adapt
this
> 
> to create a little add-on for the stuff the bestsellers RSS brings 
> back
> 
> to my site. What I need to do is pluck out the ISBNs in the links on a
> page like this one:  
>
http://demo.plinkit.org/interestsideas/goodreads/sinList?synmap=Hardcove
> rFiction
> 
> The ISBNs are all in the URLs for the book titles
> ("isbn=Some10digitNumberHere"). How would I look for a piece of text
in
> 
> that shape, i.e., isbn=5893193390, then, if it's there, copy and paste
> that piece of information into the LibraryLookup javascript I have.
The
> 
> end result should be that, if there's an ISBN in a feed result, an 
> extra link
> appears for each entry that says something like "Check the catalog,"  
> which you can click to look that book up in your own library's
catalog.
> 
> I've been staring at the template that formats the RSS feed to figure
> out whether any TAL expression would work for this. I've been playing

> with a short Python script, then wondering how to call it within that

> template, but I think I have to use regular expressions to do it.
> 
> I'm sorry to be so lost on this, but I guess I am. I'd love to do
> something cool like this for our little Plinkit libraries. Can anyone

> help? I'll take anything from a broad strategy to ac

Re: [Zope] Programatically setting advanced settings in zsql methods

2005-04-05 Thread J Cameron Cooper
Jeff Gentry wrote:
Hello ...
I have a python based product where I am creating a few zsql methods at
the time of instantiation.  I recently realized that there is the default
1000 row maximum limit on query rows.  While this can be changed through
the management interface, I am trying to figure out how to do this when I
create the SQL method in the python code.  Is this possible?
Of course. You can do anything the ZMI does. If you look at how it's 
done there, you will eventually come to the method manage_advanced. You 
can see it online:

http://svn.zope.org/Zope/trunk/lib/python/Shared/DC/ZRDB/DA.py?rev=24751&view=auto
I suppose you could also just set the property 'max_rows_' if that's all 
you're interested in.

		--jcc
___
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] Problem with Z Psycopg

2005-04-05 Thread Barry Pederson
Dieter Maurer wrote:
> Jason Leach wrote at 2005-4-4 15:15 -0700:
> 
>>I'm having a problem with Z Psycopg.  From time to time (quite often)
>>it looses the connection with the database and I get:
>>  Site Error
>>  An error was encountered while publishing this resource.
>>  Error Type: OperationalError
>>  Error Value: no connection to the server
> 
> 
> Usually, this means that the postgres server process died...

I checked my pgsql logs, and it seemed like the zope connection was dying first,
and then later on pgsql showed an unexpected EOF.  So I don't think it's the
postgres server dying first.


>>Then I have to login then close and open the connection.  It then
>>works for a while before bailing again.
> 
> 
> I do not have to do this because "ZPsycopgDA" automatically
> reconnects when an "OperationalError" is raised.
> Thus, this is strange.

Like I mentioned in another post - it looks like that feature was removed in the
ZpsycopgDA that comes with psycopg 1.1.11 or 1.1.12  I've tried patching the
auto-reconnect back in, and so far so good.  Looks like a couple connections
recently died, but the site is still going OK.

Barry
___
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] Set MIME type using ZPT

2005-04-05 Thread Tino Wildenhain
Am Dienstag, den 05.04.2005, 13:11 -0700 schrieb srikanth:
> Hi,
> 
>   I am using an external method to load an Image from the harddrive. The
> external method is as follows:
> 
> from email.MIMEImage import MIMEImage
> ##parameters=filename
> def getDocument(filename):
>   fname = '/mnt/'+filename;
>   input = open(fname,'r')
>   content = MIMEImage( input.read( ) )
>   input.close( )
>   return content
> 
> 
> When I try to display the content in the webpage what I actually got is
> all raw data of the file rather the image. 
> So how can I convert the raw data to be dispalyed as image in the
> webpage. I am using ZPT to display the web page (image). If its dtml I
> could have used  tag is there any equivalent to that in ZPT.

This is not a domain for templating languages like DTML or ZPT.
Images are read seperately by the client (get a sniffer like
shanes tcpwatch or tcpflow and see whats going on there)
So your external method has to set the headers.
Unfortunalely you open a huge security hole with your solution
and by not reading the python documentation carefully ;)
fname = '/mnt/'+filename; <---
if I put a filename like "../etc/passwd" I start to have fun.

Ah, and image data for web pages are raw. So you dont need
mimeimage alltogether. Just open().read() 
Again, if you want performance, you should use:

from ZPublisher.Iterators import filestream_iterator

return filestream_iterator(filenameondisk,'rb')

Regards
Tino


___
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] Re: login page problem

2005-04-05 Thread Paul Winkler
On Tue, Apr 05, 2005 at 09:32:04PM +0200, Dieter Maurer wrote:
> exUserFolder has built in caching (positive and negative caches),

I guess that by "negative cache" you mean something like
a cache of failed user lookups?
Nice.

-- 

Paul Winkler
http://www.slinkp.com
___
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] "segregated" users

2005-04-05 Thread Dennis Allison

Certainly possible, but you'll need to do a bit of application specific 
coding.

On Tue, 5 Apr 2005, Tim Evans wrote:

> I apologize if this issue is something that has been discussed before,
> but I searched the archives to no avail.
> 
> I'm evaluating zope for a project, and I have some questions regarding
> the extensibility of the user security model.
> 
> The company I work for would like to provide documents to clients via
> the web, and only allow one particular client (or group of users from
> the same client) access to those documents.  I don't want any user to
> be able to detect the presence of any other user.  I essentially want
> several "sites", one for each client, with a group of administrative
> users responsible for maintaining these sites and publishing content
> to all of them.
> 
> What this would require is a group of administrators that can see all
> sites, as well as restricted users with privileges to exactly one
> site.
> 
> I'd also like to avoid having a role for each site, as that could get
> ugly for almost 1000 clients.  It would also be great if we could
> designate a user to administer only one site, so that they could only
> publish data to one client.
> 
> I guess I want "zope-level" users and "application-level" users.  Is
> this something that sane people do?
> 
> I don't really need a step-by-step, just a "yes, that is possible" or
> a "no, you're an idiot" before I start digging in to try and do it.
> 
> 
> Tim
> ___
> 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 )
> 

-- 
Dennis Allison * Computer Systems Laboratory * Gates 227
   * Stanford University *  Stanford CA  94305
   * (650) 723-9213 * (650) 723-0033 fax
   * [EMAIL PROTECTED]
   * [EMAIL PROTECTED]


___
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] "segregated" users

2005-04-05 Thread Tim Evans
I apologize if this issue is something that has been discussed before,
but I searched the archives to no avail.

I'm evaluating zope for a project, and I have some questions regarding
the extensibility of the user security model.

The company I work for would like to provide documents to clients via
the web, and only allow one particular client (or group of users from
the same client) access to those documents.  I don't want any user to
be able to detect the presence of any other user.  I essentially want
several "sites", one for each client, with a group of administrative
users responsible for maintaining these sites and publishing content
to all of them.

What this would require is a group of administrators that can see all
sites, as well as restricted users with privileges to exactly one
site.

I'd also like to avoid having a role for each site, as that could get
ugly for almost 1000 clients.  It would also be great if we could
designate a user to administer only one site, so that they could only
publish data to one client.

I guess I want "zope-level" users and "application-level" users.  Is
this something that sane people do?

I don't really need a step-by-step, just a "yes, that is possible" or
a "no, you're an idiot" before I start digging in to try and do it.


Tim
___
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] Multiple Browser Id Managers question

2005-04-05 Thread Chris McDonough
That sentence in the Zope Book should likely be removed.  It is
inaccurate.  It is possible to continue to add browser id managers
wherever you'd like.  Doing so doesn't do anything "bad" (except maybe
confuse people).

On Tue, 2005-04-05 at 15:46, David H wrote:
> Hi Zope List,
> 
> The current SESSION Chapter in the Zope Book 2.7 says the following:
> 
> " ... once you've instantiated one browser id manager or if you keep the 
> default browser id manager, you will not be able to instantiate another 
> browser id manager in a place where the new browser id manager can 
> acquire the original browser id manager via its containment path"
> 
> But I find that I *can* add additional Browser Id Managers in folders 
> that can acquire the original browser id manager - without deleting the 
> default copy in Zope root. 
> Any thought ideas on this?  Does the principal still stand, e.g. "Not 
> good to put a browser id manager in a place that can also acquire 
> another browser id manager?
> 
> 
> Thanks,
> David
> 
> ___
> 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 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] Problem with Z Psycopg

2005-04-05 Thread Jeff Gentry

On Tue, 5 Apr 2005, Dieter Maurer wrote:
> >I'm having a problem with Z Psycopg.  From time to time (quite often)
> >it looses the connection with the database and I get:
> >   Site Error
> >   An error was encountered while publishing this resource.
> >   Error Type: OperationalError
> >   Error Value: no connection to the server
> Usually, this means that the postgres server process died...

I did run into something recently where the local firewall was killing the
connection to the DB server due to a timeout, so one of the local admin
types wrote a small zsql method that gets hit by a cronjob about once an
hour or so.

Granted the end effect is the same (zope thinks that the DB server has
died) but in this case it was the connection itself.

___
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] Does anyone care whether we deprecate ZClasses?

2005-04-05 Thread Jake
And that is probably the best arguement for keeping them around longer.

Until the documentation has caught up to the new features, it seems a bit
ahead of schedule to start dropping support for them.

Jake
-- 
http://www.ZopeZone.com


Dieter Maurer said:
> Lennart Regebro wrote at 2005-4-5 11:48 +0200:
>>On the Paris sprint, one thing that was noted was how ironic it was
>>that the release of 2.8, which includes support for the new
>>recommended development paradigm, was held up becuase we neeeded to
>>support an old non-recommended one. :-)
>
> "ZClasses" feature prominently in the Zope book.
>
> Seems they are more recommended than the new development paradigm (which
> does not yet feature at all in the Zope book).
>
>
> --
> Dieter
> ___
> 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 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] Re: login page problem

2005-04-05 Thread Dieter Maurer
Chris Withers wrote at 2005-4-5 13:54 +0100:
>Dieter Maurer wrote:
>> "exUserFolder" is something like the big brother of
>> "SimpleUserFolder" -- much more complex but also much more flexible...
>
>I dispute that ;-)

That is usual with us two ;-)

>I don't know of anything you can do with XUF that can't be done with SUF...

exUserFolder has built in caching (positive and negative caches),
directly integrates with the MembershipTool and support
unlimited additional properties on user objects...

-- 
Dieter
___
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] Problem with Z Psycopg

2005-04-05 Thread Dieter Maurer
Barry Pederson wrote at 2005-4-4 22:15 -0500:
> ...
>Not sure, but I can report seeing the same thing on a different setup
>
>   FreeBSD 4.8
>   Zope 2.7.5
>   Python 2.3.5
>   psycopg 1.1.18 (linked to PostgreSQL 8.0.1 client library)
>
>   (PostgreSQL server is also 8.0.1, but on FreeBSD 5.2.1)
>
>On the very same machine I also have
>
>   Zope 2.6.1
>   Python 2.1.3
>   psysopg 1.0.6 (linked to an older PostgreSQL 7.2 client library)
>
>running simultaneously, connecting to the very same DBs, but it hasn't 
>had the same connection problems.
>
>I was wondering if it might be something with psycopg and the new pgsql 
>8.0.1 library.

Almost looks like a PostgreSQL 8.0.1 client library bug...


-- 
Dieter
___
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] Set MIME type using ZPT

2005-04-05 Thread Dieter Maurer
srikanth wrote at 2005-4-5 13:11 -0700:
>  I am using an external method to load an Image from the harddrive. The
>external method is as follows:
>
>from email.MIMEImage import MIMEImage
>##parameters=filename
>def getDocument(filename):
>  fname = '/mnt/'+filename;
>   input = open(fname,'r')
>   content = MIMEImage( input.read( ) )
>   input.close( )
>   return content
>
>
>When I try to display the content in the webpage what I actually got is
>all raw data of the file rather the image. 
>So how can I convert the raw data to be dispalyed as image in the
>webpage. I am using ZPT to display the web page (image).

Apparently, you do not yet fully understand HTML and ZPT.

HTML (and therefore ZPT) is *NOT* intended to present
binary data (such as images).

I expect you do not understand "MIMEImage" as well.
I do not know what it is for but almost surely, it is not
for presentation via HTTP...

>If its dtml I
>could have used  tag is there any equivalent to that in ZPT.

And it would not work. "dtml-mime" is for construction of an "email" message
from DTML and not for a webpage presentation.


Step back. Read a good book about Web publishing, HTML and HTTP.
Learn about how to present binary information in web pages
(i.e. via HTTP) -- you will need the "Content-Type" header
of HTTP responses.
Read about Zope's "REQUEST" and "RESPONSE" objects (in the Zope book or

  )


You will *not* need a ZPT (nor DTML) for presentation
of binary content. You use then only for textual content.

-- 
Dieter
___
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] Problem with Z Psycopg

2005-04-05 Thread Dieter Maurer
Jason Leach wrote at 2005-4-4 15:15 -0700:
>I'm having a problem with Z Psycopg.  From time to time (quite often)
>it looses the connection with the database and I get:
>   Site Error
>   An error was encountered while publishing this resource.
>   Error Type: OperationalError
>   Error Value: no connection to the server

Usually, this means that the postgres server process died...

>Then I have to login then close and open the connection.  It then
>works for a while before bailing again.

I do not have to do this because "ZPsycopgDA" automatically
reconnects when an "OperationalError" is raised.
Thus, this is strange.

-- 
Dieter
___
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] Does anyone care whether we deprecate ZClasses?

2005-04-05 Thread Dieter Maurer
Lennart Regebro wrote at 2005-4-5 11:48 +0200:
>On the Paris sprint, one thing that was noted was how ironic it was
>that the release of 2.8, which includes support for the new
>recommended development paradigm, was held up becuase we neeeded to
>support an old non-recommended one. :-)

"ZClasses" feature prominently in the Zope book.

Seems they are more recommended than the new development paradigm (which
does not yet feature at all in the Zope book).


-- 
Dieter
___
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] Multiple Browser Id Managers question

2005-04-05 Thread David H
Hi Zope List,
The current SESSION Chapter in the Zope Book 2.7 says the following:
" ... once you've instantiated one browser id manager or if you keep the 
default browser id manager, you will not be able to instantiate another 
browser id manager in a place where the new browser id manager can 
acquire the original browser id manager via its containment path"

But I find that I *can* add additional Browser Id Managers in folders 
that can acquire the original browser id manager - without deleting the 
default copy in Zope root. 
Any thought ideas on this?  Does the principal still stand, e.g. "Not 
good to put a browser id manager in a place that can also acquire 
another browser id manager?

Thanks,
David
___
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] Programatically setting advanced settings in zsql methods

2005-04-05 Thread Jeff Gentry
Hello ...

I have a python based product where I am creating a few zsql methods at
the time of instantiation.  I recently realized that there is the default
1000 row maximum limit on query rows.  While this can be changed through
the management interface, I am trying to figure out how to do this when I
create the SQL method in the python code.  Is this possible?

Thanks
-Jeff

___
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] Re: CMFSin time errors

2005-04-05 Thread Michael Haubenwallner
MILLER Eva wrote:
Hi,
I'm getting some errors with certain feeds, but not others, in CMFSin.
The errors seem to have something to do with the portaltime and
localized time. Someone suggested changing the permissions for anonymous
to fix this. Doing that made all my feeds malfunction, so that's not the
right answer.
I know CMFSin is old and it seems to be getting flaky. But I really need
an aggregator for my project, and it doesn't seem like there's anything
much better out there right now.
Here's what happens when I use a feed from National Public Radio
(http://www.npr.org/rss/rss.php?topicId=3). I know the feed is working.
CMFSin's debug panel shows the results of the feed very plainly. The
problem is in the display of the feed (which is either Zope or Plone's
fault, though I can't tell which right now):
Traceback (innermost last):
  Module ZPublisher.Publish, line 101, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 39, in call_object
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.CMFCore.FSPageTemplate, line 191, in _exec
  Module Products.CMFCore.FSPageTemplate, line 124, in pt_render
  Module Products.PageTemplates.PageTemplate, line 96, in pt_render
   - 
  Module TAL.TALInterpreter, line 190, in __call__
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 671, in do_useMacro
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 702, in do_defineSlot
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 650, in do_defineMacro
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 694, in do_defineSlot
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 613, in do_loop_tal
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 637, in do_condition
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 484, in do_insertText_tal
  Module Products.PageTemplates.TALES, line 227, in evaluateText
  Module Products.PageTemplates.TALES, line 221, in evaluate
   - Line 35, Column 92
   - Expression: 
   - Names:
  {'container': ,
   'context': ,
   'default': ,
   'here': ,
   'loop': ,
   'modules':
,
   'nothing': None,
   'options': {'args': ()},
   'repeat': ,
   'request': http://demo.plinkit.org/interestsideas/headlines/sinList>,
   'root': ,
   'template': ,
   'traverse_subpath': [],
   'user': Anonymous User}
  Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
   - __traceback_info__: here.toPortalTime(obj['date'])
  Module Python expression "here.toPortalTime(obj['date'])", line 1, in

  Module Products.CMFCore.FSPythonScript, line 104, in __call__
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.CMFCore.FSPythonScript, line 160, in _exec
  Module None, line 5, in toPortalTime
   - 
   - Line 5
  Module Products.CMFCore.FSPythonScript, line 104, in __call__
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.CMFCore.FSPythonScript, line 160, in _exec
  Module None, line 4, in toLocalizedTime
   - 
   - Line 4
  Module Products.CMFPlone.PloneUtilities, line 118, in localized_time
  Module DateTime.DateTime, line 522, in __init__
  Module DateTime.DateTime, line 745, in _parse_args
  Module DateTime.DateTime, line 1032, in _parse
SyntaxError: Tue, 05 Apr 2005 14:21:06 EDT
Seems toLocalizedTime cannot handle that Dateformat (SyntaxError: Tue, 
05 Apr 2005 14:21:06 EDT). You could alter the template to just show the 
original date values for now and investigate how to correct the date 
translation.

Michael
--
http://zope.org/Members/d2m
http://planetzope.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 )


[Zope] Product creation difficulty

2005-04-05 Thread Pete Taylor
Does anyone have a recommendation for a Product creation guide/tutorial
they've used and made work, preferably one with examples and explanations of
_ac_permissions?  I've tried three or four, all of which work after a
fashion...  I have a very simple class that I've been using to test product
creation.  It's basically just an xmlrpc connection returned as a class
instance (which serves no real purpose currently since importing xmlrpclib
isn't exactly difficult to do in a method).  I've logged in as my admin
user, so rights to the site shouldn't be a problem, which makes me think
it's got to be security in the module itself that i'm not establishing
correctly.  The problem is that every time I actually try to instantiate an
instance of the class and make use of the object's methods, I get the
following traceback:

Traceback (innermost last):
  Module ZPublisher.Publish, line 101, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 39, in call_object
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.PythonScripts.PythonScript, line 323, in _exec
  Module None, line 1, in testrpc
   - 
   - Line 1
  Module AccessControl.ZopeGuards, line 237, in guarded_import
  Module AccessControl.ZopeGuards, line 300, in load_module
Unauthorized: You are not allowed to access 'XMLRPCClient' in this context

I'd be more than happy to copy in blocks of code if it seems like it will
help, but all things considered, I'd be happier just to know where best to
look.  I've looked at the ZDG, the Zope Book 2.7, and a number of "Python
Product Creation" tutorials...  but since they're all geared toward getting
a product to initialize and such (which works great), and it's a security
error I'm getting, I don't really know where to go next.  

Thanks all,

Pete Taylor
THIG Systems
(desk) 352.333.1722
(cell) 352.359.0073





CONFIDENTIAL NOTICE: This email including any attachments, contains 
confidential information belonging to the sender. It may also be 
privileged or otherwise protected by work product immunity or other 
legal rules. This information is intended only for the use of the 
individual or entity named above.  If you are not the intended 
recipient, you are hereby notified that any disclosure, copying, 
distribution or the taking of any action in reliance on the contents 
of this emailed information is strictly prohibited.  If you have 
received this email in error, please immediately notify us by 
reply email of the error and then delete this email immediately.
___
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] CMFSin time errors

2005-04-05 Thread MILLER Eva
Title: CMFSin time errors






Hi,


I'm getting some errors with certain feeds, but not others, in CMFSin. The errors seem to have something to do with the portaltime and localized time. Someone suggested changing the permissions for anonymous to fix this. Doing that made all my feeds malfunction, so that's not the right answer.

I know CMFSin is old and it seems to be getting flaky. But I really need an aggregator for my project, and it doesn't seem like there's anything much better out there right now.

Here's what happens when I use a feed from National Public Radio (http://www.npr.org/rss/rss.php?topicId=3). I know the feed is working. CMFSin's debug panel shows the results of the feed very plainly. The problem is in the display of the feed (which is either Zope or Plone's fault, though I can't tell which right now):

Traceback (innermost last):
  Module ZPublisher.Publish, line 101, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 39, in call_object
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.CMFCore.FSPageTemplate, line 191, in _exec
  Module Products.CMFCore.FSPageTemplate, line 124, in pt_render
  Module Products.PageTemplates.PageTemplate, line 96, in pt_render
   - 
  Module TAL.TALInterpreter, line 190, in __call__
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 671, in do_useMacro
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 702, in do_defineSlot
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 650, in do_defineMacro
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 694, in do_defineSlot
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 613, in do_loop_tal
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 637, in do_condition
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 484, in do_insertText_tal
  Module Products.PageTemplates.TALES, line 227, in evaluateText
  Module Products.PageTemplates.TALES, line 221, in evaluate
   - Line 35, Column 92
   - _expression_: 
   - Names:
  {'container': ,
   'context': ,
   'default': ,
   'here': ,
   'loop': ,
   'modules': ,
   'nothing': None,
   'options': {'args': ()},
   'repeat': ,
   'request': http://demo.plinkit.org/interestsideas/headlines/sinList>,
   'root': ,
   'template': ,
   'traverse_subpath': [],
   'user': Anonymous User}
  Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
   - __traceback_info__: here.toPortalTime(obj['date'])
  Module Python _expression_ "here.toPortalTime(obj['date'])", line 1, in <_expression_>
  Module Products.CMFCore.FSPythonScript, line 104, in __call__
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.CMFCore.FSPythonScript, line 160, in _exec
  Module None, line 5, in toPortalTime
   - 
   - Line 5
  Module Products.CMFCore.FSPythonScript, line 104, in __call__
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.CMFCore.FSPythonScript, line 160, in _exec
  Module None, line 4, in toLocalizedTime
   - 
   - Line 4
  Module Products.CMFPlone.PloneUtilities, line 118, in localized_time
  Module DateTime.DateTime, line 522, in __init__
  Module DateTime.DateTime, line 745, in _parse_args
  Module DateTime.DateTime, line 1032, in _parse
SyntaxError: Tue, 05 Apr 2005 14:21:06 EDT


Thanks,

Eva Miller, Librarian



___
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] Problem with Z Psycopg

2005-04-05 Thread Barry Pederson
Jason Leach wrote:
> I'm having a problem with Z Psycopg.  From time to time (quite often)
> it looses the connection with the database and I get:
>Site Error
>An error was encountered while publishing this resource.
>Error Type: OperationalError
>Error Value: no connection to the server

Garth B. wrote:
> I have the same problem, but I eventually "corrected" it, by forcibly
> closing the connection each time prior to running the queries.
> Fortunately, my scenario uses page caching to reduce the number of hits
> to the db so the additional effort of reopening the connection is neglible.
>
> I'd sure like to know what the problem is, though...


I've been looking at the differences between ZPsycopg that comes with 1.0.x and
1.1.x, and it looks like the older ZPsycopg had code to automatically reconnect
on an OperationalError (in db.py, the DB.query() method), but the corresponding
method in the newer ZPsycopg doesn't have that.  Looks like it was removed in
1.1.11 or 1.1.12

I'm trying this patch to see if it gets back the reliability my old setup had -
although I'm not sure what other bad stuff this could cause

--

--- db.py.original  Fri Oct 29 19:19:27 2004
+++ db.py   Tue Apr  5 12:56:46 2005
@@ -222,7 +222,12 @@
 result = c.fetchall()
 desc = c.description
 self.failures = 0
-
+
+except psycopg.OperationalError, err:
+if hasattr(self, 'db'):
+del c; del self.db
+return self.query(query_string, max_rows, query_data)
+
 except StandardError, err:
 self._abort()
 raise err

--

Barry
___
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] (Security) Hotfix_20050405 Released (URL correction)

2005-04-05 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Overview

  Zope Corporation has released a Zope hotfix product addressing a
  potential vulnerability discovered during a recent security audit
  of Zope 2.7 and 2.8.

Affected Versions

  The hotfix affects versions 2.7.5 and earlier of Zope on the 2.7
  release line, as well as versions 2.8a1 and 2.8a2 on the upcoming 2.8
  release line.  The vulnerability will be resolved in versions 2.7.6
  and 2.8b1.  We recommend that any site which permits untrusted users
  to write PythonScripts apply this hotfix, and upgrade to a fixed
  version of Zope as it becomes available.

Further Information

  Please see the "product README",
http://www.zope.org/Products/Zope/Hotfix-2005-04-05/Hotfix-20050405/README.txt
  for details on the vulnerability, and for instructions on installing
  the hotfix.

Downloading the Hotfix

  - "Unix tarball",
http://www.zope.org/Products/Zope/Hotfix-2005-04-05/Hotfix-20050405/Hotfix_20050405.tar.gz

  - "Windows ZIP archive",
http://www.zope.org/Products/Zope/Hotfix-2005-04-05/Hotfix-20050405/Hotfix_20050405.zip


Apologies for the earlier typoed URLs.

Tres Seaver.
- --
===
Tres Seaver[EMAIL PROTECTED]
Zope Corporation  "Zope Dealers"   http://www.zope.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCUtIhGqWXf00rNCgRAitxAJ9Vualp5LLSrMQb1T799UWKa1UJoQCgmCJ2
EqH0Sj4RN0V8o1ldX6C1g90=
=1lBU
-END PGP SIGNATURE-
___
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] Re: Plone/Zope on Debian Sarge

2005-04-05 Thread Andreas Pakulat
On 05.Apr 2005 - 12:01:14, Derrick Hudson wrote:
> On Mon, Apr 04, 2005 at 02:02:43PM +0100, Chris Withers wrote:
> | The moral of this whole story seems to shine through:
> | 
> | Don't install Zope from OS packages like debian, they never get it right 
> | and you will just end up getting confused ;-)
> 
> The current situation is filled with bit-rot,

?? bit-rot?

> but before that began the packages were just fine.  It would seem,
> too, that the bit-rot will recede in the near future.  In the
> meantime, I would recommend using the upstream source for
> installation.

As I said, if you install zope27 you get a message what to do next to
get the instance up and running. The same with plone. The only
drawback at the moment is, that you need to change the zope.conf to
get some packages to work with zope27. This will probably change when
Debian finally drops zope26 (I don't understand why they keep it
anyway...)

Andreas

-- 
Tuesday After Lunch is the cosmic time of the week.
___
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] (Security) Hotfix_20050405 Released

2005-04-05 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Overview

  Zope Corporation has released a Zope hotfix product addressing a
  potential vulnerability discovered during a recent security audit
  of Zope 2.7 and 2.8.

Affected Versions

  The hotfix affects versions 2.7.5 and earlier of Zope on the 2.7
  release line, as well as versions 2.8a1 and 2.8a2 on the upcoming 2.8
  release line.  The vulnerability will be resolved in versions 2.7.6
  and 2.8b1.  We recommend that any site which permits untrusted users
  to write PythonScripts apply this hotfix, and upgrade to a fixed
  version of Zope as it becomes available.

Further Information

  Please see the "product README",
http://www.zope.org/Products/Zope/Hotfix-2005-04-05/Hotfix-200405/README.txt
  for details on the vulnerability, and for instructions on installing
  the hotfix.

Downloading the Hotfix

  - "Unix tarball",
http://www.zope.org/Products/Zope/Hotfix-2005-04-05/Hotfix-200405/Hotfix_20050405.tar.gz

  - "Windows ZIP archive",
http://www.zope.org/Products/Zope/Hotfix-2005-04-05/Hotfix-200405/Hotfix_20050405.zip


Tres Seaver.
- --
===
Tres Seaver[EMAIL PROTECTED]
Zope Corporation  "Zope Dealers"   http://www.zope.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCUsvGGqWXf00rNCgRAt3qAJ42sH4BIPP9+S1g+ZnpwS9YopcggQCfYnvw
hXfT3SOxuL1y1adv5zmv3v8=
=smRT
-END PGP SIGNATURE-
___
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] Re: Plone/Zope on Debian Sarge

2005-04-05 Thread Derrick Hudson
On Mon, Apr 04, 2005 at 02:02:43PM +0100, Chris Withers wrote:
| The moral of this whole story seems to shine through:
| 
| Don't install Zope from OS packages like debian, they never get it right 
| and you will just end up getting confused ;-)

Never say never.  The problem with debian is the former zope
maintainers are no longer maintaining the packages and only very
recently has a replacement stepped up to update the packages and
resolve the outstanding issues.  The current situation is filled with
bit-rot, but before that began the packages were just fine.  It would
seem, too, that the bit-rot will recede in the near future.  In the
meantime, I would recommend using the upstream source for
installation.

-D

-- 
\begin{humor}
Disclaimer:
If I receive a message from you, you are agreeing that:
   1. I am by definition, "the intended recipient"
   2. All information in the email is mine to do with as I see fit and make
such financial profit, political mileage, or good joke as it lends
itself to. In particular, I may quote it on USENET or the WWW.
   3. I may take the contents as representing the views of your company.
   4. This overrides any disclaimer or statement of confidentiality that may
be included on your message
\end{humor}
 
www: http://dman13.dyndns.org/~dman/jabber: [EMAIL PROTECTED]


signature.asc
Description: Digital signature
___
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] Re: Software Patents and Content Management Systems

2005-04-05 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Florent Guillaume wrote:

> Linus Torvalds and others have suggested that from a legal point of view
> it is a bad idea to read through existing patents to see if some apply
> to your software, because it shows you were aware of being infringing on
> them.

Under US law, knowing infringement triples the damages.  Lobbying is one
thing, but one we in the US can't help with (for the current EU
jockeying, anway).

Contributing to a "prior art" portfolio which enables attacks on such
patents might be another useful tactic.


Tres.
- --
===
Tres Seaver[EMAIL PROTECTED]
Zope Corporation  "Zope Dealers"   http://www.zope.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCUpz2GqWXf00rNCgRAo+sAJ4idDZX7t6riVx9YF/cFmsQz47uWACfRnBU
61l/nyktbbT9Ghi6/ZcvUP4=
=yFnV
-END PGP SIGNATURE-

___
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] Problem with Z Psycopg

2005-04-05 Thread Garth B.
I have the same problem, but I eventually "corrected" it, by forcibly
closing the connection each time prior to running the queries. 
Fortunately, my scenario uses page caching to reduce the number of hits
to the db so the additional effort of reopening the connection is
neglible.

I'd sure like to know what the problem is, though...

RHEL
Zope 2.7.3
Python 2.3.4
psycopg 1.1.18
PostgreSQL 7.3___
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] Re: login page problem

2005-04-05 Thread Chris Withers
Dieter Maurer wrote:
"exUserFolder" is something like the big brother of
"SimpleUserFolder" -- much more complex but also much more flexible...
I dispute that ;-)
I don't know of anything you can do with XUF that can't be done with SUF...
Chris
--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk
___
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] Software Patents and Content Management Systems

2005-04-05 Thread Florent Guillaume
Lennart Regebro  <[EMAIL PROTECTED]> wrote:
> > I am sorry for this excessive crossposting, but it is urgent and
> > important.
> 
> I agree.
> 
> > Please consider the listed patent descriptions in context of your
> > favorite Zope CMS and give feedback to Holger Blasum or Dirk Steuwer
> > from FFII. Clarify to them to which extent your favorite Zope CMS could
> > be affected by the given patent.
> 
> The name of a patent doesn't really say much. You now asked people,
> who mostly are not knowledgeable about patents, to read through a
> whole bunch of patents, and say if these may be applicable to their
> CMSs. I find that request quite unreasonable. Judging from the english
> titles alone, all the patents are applicable to anything that uses
> Zope, but I assume this is not what you need to know, as you surely
> are aware of that already.
> 
> A description (in english) of what the patents actually try to patent
> would probably be more useful. It is quite often very hard to figure
> that out from the patents itself, unless you are a patent clerk, which
> I'm not, and besides there are no links to the patents, so it is
> impossible to do anyway.
> 
> A list of what is actually supposed to be patented would be possible
> for us poor non-lawyers to actually go through and see if they are
> relevant.

Linus Torvalds and others have suggested that from a legal point of view
it is a bad idea to read through existing patents to see if some apply
to your software, because it shows you were aware of being infringing on
them.

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)   CTO, Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   [EMAIL PROTECTED]
___
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] Software Patents and Content Management Systems

2005-04-05 Thread Jan Ulrich Hasecke
Lennart Regebro schrieb:
> The name of a patent doesn't really say much. You now asked people,
> who mostly are not knowledgeable about patents, to read through a
> whole bunch of patents, and say if these may be applicable to their
> CMSs. I find that request quite unreasonable. Judging from the english
> titles alone, all the patents are applicable to anything that uses
> Zope, but I assume this is not what you need to know, as you surely
> are aware of that already.

Yes, the description is not too informative. I am sorry.

You will find further information by going to

http://depatisnet.dpma.de

Try the english UI.

Query for the Patent-Number given in the short list and then open the
PDF. There you will find a more detailed description of the patent in
English.

I will try to find the address of the european patent office.

juh

-- 
DZUG e.V. Telefon: +49 (0)3496/309 49 7
Schalaunische Strasse 6  Telefax: +49 (0)3496 309 91 18
06366 Köthen http://www.dzug.org http://www.zope.de
><°<  ><°<  ><°<  ><°<  ><°<  ><°<  Zope rocks!


signature.asc
Description: Digital signature
___
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] Does anyone care whether we deprecate ZClasses?

2005-04-05 Thread Jake
Lennart Regebro said:
> Anyway, my main question is: You who are using ZClasses, can't you
> just stay on Zope2.8 or 2.9, if Zope 2.10 would not contain ZClass
> support?

That is possible, but it would be nice to be able to transition out of
ZClasses through 2.8 -> 2.9 -> 2.10 as opposed to there being a drop off
cliff.

I think the idea of creating a ZCLass based pluging/product for 2.10
sounds like a good one. That was it can be rolled out of the ZOpe core and
maintained by those of us who care.

Jake

-- 
http://www.ZopeZone.com



___
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] Software Patents and Content Management Systems

2005-04-05 Thread Lennart Regebro
On Apr 5, 2005 12:53 PM, Jan Ulrich Hasecke <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I am sorry for this excessive crossposting, but it is urgent and
> important.

I agree.

> Please consider the listed patent descriptions in context of your
> favorite Zope CMS and give feedback to Holger Blasum or Dirk Steuwer
> from FFII. Clarify to them to which extent your favorite Zope CMS could
> be affected by the given patent.

The name of a patent doesn't really say much. You now asked people,
who mostly are not knowledgeable about patents, to read through a
whole bunch of patents, and say if these may be applicable to their
CMSs. I find that request quite unreasonable. Judging from the english
titles alone, all the patents are applicable to anything that uses
Zope, but I assume this is not what you need to know, as you surely
are aware of that already.

A description (in english) of what the patents actually try to patent
would probably be more useful. It is quite often very hard to figure
that out from the patents itself, unless you are a patent clerk, which
I'm not, and besides there are no links to the patents, so it is
impossible to do anyway.

A list of what is actually supposed to be patented would be possible
for us poor non-lawyers to actually go through and see if they are
relevant.

-- 
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.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 )


[Zope] Software Patents and Content Management Systems

2005-04-05 Thread Jan Ulrich Hasecke
Hi,

I am sorry for this excessive crossposting, but it is urgent and
important.

The ffii.org made a list of cms-related patents. They need some feedback
from people actively using or developing Content Management Systems to
qualify the patents.

Please note that there is an ongoing legislative process in the european
parliament. Time is running short and the patent-holding companies are
doing an aggressive lobbying. 

Please consider the listed patent descriptions in context of your
favorite Zope CMS and give feedback to Holger Blasum or Dirk Steuwer
from FFII. Clarify to them to which extent your favorite Zope CMS could
be affected by the given patent.

Please reply to me, Dirk Steuwer and Holger Blasum

Thanks for your help!

juh

And here are the links!

THIS IS THE LIST! English and German descriptions
http://wiki.ffii.org/CMSPatente04De -> gefundene Patente, found patents

PDF-Version with english and german descriptions
http://www.stop-swpat.de/docs/Patente_CMS.pdf 

Some other Links 
GUI-patents webshop.ffii.org 

other Links:
http://nibiru.borg.metux.de:7000/wiki/index.php/Patentverletzer/Datenbank/Vorgeschlagen
http://swpat.ffii.org/vreji/pikta/index.de.html
http://gauss.ffii.org/


P.S. There is an urgent call to action on www.nosoftwarepatents.com from
the sponsors of this anti-patent-site, which is now run by the FFII.
Lobbying against Software patents needs money. If you want to help,
please contact the given email-address listed here:
http://www.nosoftwarepatents.com/phpBB2/viewtopic.php?t=474

-- 
DZUG e.V. Telefon: +49 (0)3496/309 49 7
Schalaunische Strasse 6  Telefax: +49 (0)3496 309 91 18
06366 Köthen http://www.dzug.org http://www.zope.de
><°<  ><°<  ><°<  ><°<  ><°<  ><°<  Zope rocks!


signature.asc
Description: Digital signature
___
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] Re: Potential PythonScript bug

2005-04-05 Thread Chris Withers
Ira Sher wrote:
migrated out since then, PluginIndexes and ZCTextIndex I can't grab
These both ship as part of Zope, you shouldn't even by trying to install 
them!

cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk
___
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] Does anyone care whether we deprecate ZClasses?

2005-04-05 Thread Lennart Regebro
On the Paris sprint, one thing that was noted was how ironic it was
that the release of 2.8, which includes support for the new
recommended development paradigm, was held up becuase we neeeded to
support an old non-recommended one. :-)


Anyway, my main question is: You who are using ZClasses, can't you
just stay on Zope2.8 or 2.9, if Zope 2.10 would not contain ZClass
support? The main features of 2.8 is support for the component
architecture, and for zope 2.9 and 2.10 this will be even more true:
there will most likely be very few new features besides this. With 2.9
or 2.10 the idea is that you can use both  ZClasses, *and* write
products that work under Zope3. I'm not even sure there will be a
2.10, and in any case you won't really have much need of it.

I think it's a good idea to deprecate ZClasses if only to get people
to start moving over to the Zope3 based development paradigm.
___
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] Re: login page problem

2005-04-05 Thread prabuddha ray
Hi list,
 I've got some clarifications given below.

On Mon, 04 Apr 2005 16:08:50 +0100, Cliff Ford <[EMAIL PROTECTED]> wrote:
> I am abstracting bits of your email below in case anyone else wants to 
> join in.
> 
> If you are going to use Plone I can't offer advice - I have looked at 
> Plone on three separate occasions, and recently read The Definitive 
> Guide to Plone, and have stil decided not to use it. I only say this to 
> make it clear that many applications are built without CMS and Plone.
> 

I had no idea about this. i knew that zope acts as a app server and
plone is the front end tool.
In fact I'm building the store's site as a plone site in zope. As a
matter of fact i've not done much specific in plone . just built 2
tabpanes.
I configured the exUserFolder using the mysql database and as expected
it built up a seperate login system. so i believe it'll work on itself
without plone.
One problem that concerns next query is that it took only one table
for user details whereas i had one more table for district.

> 
> Two separate tables with User information is awkward! The user folders I 
> know of expect user information to come from one source. So you either 
> have to create two folders, each with its own acl_users (provided by one 
> of the User Folder Products), or you have to hack the User Folder 
> product to put in a Union select statement in place of a simple Select.
> d quarters.

let me explain the login page flow. a dropdown list of districts is
available on load. on selecting a  district the page reloads and the
available users are listed in 2nd dropdown list.
after selecting the user the password is to be given. So that way i
need both the 'district' and the 'userdetail' table. actually the
district table has district code ,name and other stores related nfo.
userdetail table is linked using this district code.

> 
> You have not said whether the people in the different districts do 
> completely different things with different forms, or identical things 
> but specifying the district. If the former then it is no big deal to 
> create the folders manually, although it can be done programmtically. 
> You could set a Local Role equal to the district name and get that role 
> for users from the database. That way, users can only enter their own 
> district folder. If the latter, then you could retrieve the Username and 
> District from the User object for use in the forms (include the District 
> as a role).
> 

users are of different level like store-in-charge, sys mgmt group,
vendors and normal users.
they are in all the districts. so depending on the user level diffrent
set of menu page are to be generated ie. users of same level in
diferent districts do same thing.
In earlier ASP version I handled this in the login page handler ASP
page and wanted to use the same logic here.
district shouldn't be the user role , 'userlevel' will act as user role here.
but the folders would be districtwise, I suppose.

honestly I'm little bogged out by the exuserFolder feature, its using
Dtml all the way and I'm sticking to ZPTs and script pythons.


> Try working on the rest of your application to build up ZPT and Python 
> experience. As I said, managing users is tricky. Also, be aware that 
> Zope experts advise developers to produce file system based Products. 
> There are lots of simple Products that you can use and browse the code 
> to see how they work.
> 
> Cliff
>

I completely understand this. but the problem remains the same . how
do i customise these products acccording to my needs.

hope this helps you in helping me. waiting for your reply.

-- 
Share the vision of difference with ME
___
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] Does anyone care whether we deprecate ZClasses?

2005-04-05 Thread Garito
Arenz, Ralph escribió:
SOS
This would mean a disaster for us. We've created a lot products using
ZClasses in 
production environment (internet,intranet,eai and so on) since zope-2.1.4.
In short our complete developement in Zope is heavily based on ZClasses. 

We plan to use ZClasses in the future, too. For us ZClasses are a essential
part 
of zope and they works very well. It is quite impossible for us to migrate
all our 
Products to python-products or somethong else and i guess that this is not
wanted by
you!?

I think that going away from ZClasses will let many other people with
legacy-software
running in the same problems. 

regards
ralph
___
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 )
 

Hi
Can you explain why you can't migrate from ZClasses to python-products?
Perhaps the best solution will be create a machinery to migrate ZClasses
Thanks!
___
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] Does anyone care whether we deprecate ZClasses?

2005-04-05 Thread Arenz, Ralph
SOS

This would mean a disaster for us. We've created a lot products using
ZClasses in 
production environment (internet,intranet,eai and so on) since zope-2.1.4.
In short our complete developement in Zope is heavily based on ZClasses. 

We plan to use ZClasses in the future, too. For us ZClasses are a essential
part 
of zope and they works very well. It is quite impossible for us to migrate
all our 
Products to python-products or somethong else and i guess that this is not
wanted by
you!?

I think that going away from ZClasses will let many other people with
legacy-software
running in the same problems. 

regards

ralph
___
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] Re: Does anyone care whether we deprecate ZClasses?

2005-04-05 Thread Max M
Jim Fulton wrote:
We could choose to deprecate ZClasses.  If we deprecated them in
Zope 2.8, they would still work in Zope 2.8 and Zope 2.9, but
their support would be removed in Zope 2.10.  Would anyone be upset
if this happened?
They are evil, they are bad. They lead newcommers down a blind road.
Please do drop them.
Besides, I think that most people are starting up on Zope using a cms
like Plone, and in there I believe they go straight for archetypes.
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
___
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 )