Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-01 Thread Andreas Jung

--On Freitag, 1. April 2005 23:10 Uhr -0800 David H 
<[EMAIL PROTECTED]> wrote:

I would recommend ZClass people should form a group.  And have good
people keep the thing compatible with each Zope release.
David
I doubt that anyone will touch ZClasses - except Dieter and Jim :-)
It's good to see them go..and there are enough solutions to replace 
ZClasses with much
cleaner and supported solutions (e.g. with Zope+Five+Z3 schemas  or CMF + 
AT or CMF + CPSSchemas).

-aj



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

2005-04-01 Thread David H
Andreas Jung wrote:

--On Freitag, 1. April 2005 16:52 Uhr -0500 Jake <[EMAIL PROTECTED]> 
wrote:

want to use them going forward, but what are the reasons why not to
support them as legacy into 3/2.10?

To avoid that people use ZClasses in the future :-)
-aj

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

The problem with ZClasses is that is was a very good idea.  Lots of us 
used them.  I did, but thru luck and caprice migrated toward Python Scripts.
I would recommend ZClass people should form a group.  And have good 
people keep the thing compatible with each Zope release.
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 )


Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-01 Thread Andreas Jung

--On Freitag, 1. April 2005 16:52 Uhr -0500 Jake <[EMAIL PROTECTED]> wrote:
want to use them going forward, but what are the reasons why not to
support them as legacy into 3/2.10?
To avoid that people use ZClasses in the future :-)
-aj

pgpNlVUdoEQdZ.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] role, user defined roles, and inclusion

2005-04-01 Thread robert
Cliff Ford wrote:

Dieter Maurer wrote:
robert wrote at 2005-3-31 07:22 +0200:
Is my assumption that granting a permission to Anonymous means 
granting it to anybody correct?

Correct.
Actually, I don't think that is strictly true! And it reminds me of a 
period of confusion I went through a few months ago, when I was 
convinced that either I did not understand how roles were supposed to 
work or that there were bugs in the implementation. It turned out that 
I had cut and paste a folder with its own own View permissions into 
another folder with incompatible View permissions. I have forgotten 
the exact details but I think I had the Manager role in the outer 
folder but only the Authenticated role in the inner folder. I had 
totally forgotten that I had been fiddling with the View permissions 
days or weeks before. So for the original questioner: check that you 
have not shot yourself in the foot too!

Yeas that can happen. However it does not deviate from the stated 
behaviour. In your case the needed permission was NOT granted to anonymous.

Robert
___
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] role, user defined roles, and inclusion

2005-04-01 Thread Cliff Ford

Dieter Maurer wrote:
robert wrote at 2005-3-31 07:22 +0200:
Is my assumption that granting a permission to Anonymous means granting 
it to anybody correct?

Correct.
Actually, I don't think that is strictly true! And it reminds me of a 
period of confusion I went through a few months ago, when I was 
convinced that either I did not understand how roles were supposed to 
work or that there were bugs in the implementation. It turned out that I 
had cut and paste a folder with its own own View permissions into 
another folder with incompatible View permissions. I have forgotten the 
exact details but I think I had the Manager role in the outer folder but 
only the Authenticated role in the inner folder. I had totally forgotten 
that I had been fiddling with the View permissions days or weeks before. 
So for the original questioner: check that you have not shot yourself in 
the foot too!

Cliff
___
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-01 Thread Andreas Jung

--On Freitag, 1. April 2005 16:21 Uhr -0500 Ausum Studio 
<[EMAIL PROTECTED]> wrote:
Whether there already is a tool like that in ZopeLand, I would agree to
its deprecation, but actually there's nothing like it. Certainly ZClasses
is not what it promised to be, but what it does do, it does it
brilliantly, IMNSHO.
If you depend on ZClasses you might take over some responsibility or 
resources in maintaining
ZClasses *wink* :-)

-aj


pgpOk3HguSqly.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 )


[Zope] Re: ZWiki - MoinMoin markup

2005-04-01 Thread Simon Michael
Hi Malthe,
I don't think moin markup allows html tags, so br is out.
Also, consider whether this work will really pay off. Unless it gets 
incorporated into the upstream MoinMoin code, it might or might not make 
sense to support a non-standard moin markup feature in the shipping 
Zwiki. But I don't want to discourage you, perhaps you just want this 
for local use.

It's not clear to me either, but I think:
- the class you need to change is Parser
- start by looking at formatting_rules. The format() method may also be 
relevant.

- try to find some other formatting rule that's similar, and copy/tweak 
it. Perhaps  ?

- the regexps named there are somehow handled by the similarly-named 
repl methods, like _li_repl()

- you might find more help with this code on the moin channel/list/wiki.
___
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-01 Thread Simon Michael
FYI, there's a kind of overview of possible ZClass alternatives at
http://zopewiki.org/HowToAddCustomContentTypes .
___
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] Zwiki 0.40 released, news for 2005/03

2005-04-01 Thread Simon Michael




What is it
Zwiki is a Zope product for building wikis - a special kind of website
that's easy for anyone to edit.
See http://zwiki.org
for more.

What's changed
Bugfixes, new japanese translation, chinese translation updates, new
search option.
See release notes below.

Zwiki news this month
We have been quiet but not idle. Bill Page and Martijn Pieters
contributed fixes, T.C. Chou updated the chinese translations and
Masaya Kato and a team of fellow translators contributed a japanese
translation. Zettai.net made a donation, again, in support of Zwiki
development and hosting. Thank you!

Bug reporting rate has been low and steady; bug closing rate has been
low. The next Zwiki Bug Day is.. today! april 1st being the first
friday of
the month. I wasn't ready but it's going on anyway as scheduled, help
at http://zwiki.org/BugDay and
#zwiki if you can.

In the documentation department I am doing a little work on http://zwiki.org/NewAdministratorsGuide
each day. 

Discussion on the list, UserDiscussion page and irc channel has been
light. We've had a few incidents of wiki spam this month, both
intentional and otherwise. I switched zwiki.org to mail out all edits,
to make this more visible; we list subscribers are adapting to the
increased level of traffic and have discussed how to batch related
edits into fewer mails.

This month I resolved to focus on QA for 2005: 

"Alright.. this may be difficult, but (deep breath):
I resolve not to work on new Zwiki features in 2005.
I may well accept them from others, but I won't do them myself. This is
to focus (my) energy on refactoring, cleanup, polish, docs, and fixing
"broken windows". More:


  in case that was unclear, this is not Zwiki winding down; it's
a
quality push for 1.0. Feature work from others is welcome as ever.
  tasks that are funded in some way will almost always jump to
the head of the queue and become priority no. 1, as before." 

See http://zwiki.org/ZwikiRoadmap2005
for more.

Zopewiki news
Edits on zopewiki.org have been light; small ongoing improvements
from a small number of people. 
Someone has started a http://zopewiki.org/PageTemplateStyleGuide
.

Server news
The zwiki.org/zopewiki.org server basically ran all month without
exceeding the 200M memory quota or restarting and performance has been
reasonable. Those wikis currently have 2164 and 464 pages respectively.

About the Zwiki project
Zwiki was started in 1999 by Simon Michael and now receives
improvements from many contributors. It is released under the GNU GPL.
A new version is released on the first of the month.

Links
http://zwiki.org - Zwiki home, with all
download, documentation & discussion links
http://zwiki.org/ZwikiFunding
- how to donate or sponsor a feature


Release notes

Zwiki 0.40.0 2005/04/01

ÂÂÂ Summary

ÂÂÂ Bugfixes, new japanese translation, chinese translation updates,
ÂÂÂ new search option.

ÂÂÂ Upgrade notes

ÂÂÂ This fixes a high-profile known issue in 0.39, #1062. If you
ÂÂÂ didn't already find the issue page and workaround, upgrade to this
ÂÂÂ version to fix it.
ÂÂÂ 
ÂÂÂ Changes

 Browsing

ÂÂÂ * add a "thorough" non-catalog search to search form, commented
ÂÂÂ Â out (for spam hunting)

 Editing

ÂÂÂ * fix the keys attribute error when creating pages in plone
(#1062)

ÂÂÂ * deleting a top-level page redirects to the front page again;
new
ÂÂÂ Â upUrl method (#917, Martijn Pieters, SM)

 Issue tracking

ÂÂÂ * no bogus property change. Some very aggressive search engines
ÂÂÂ Â (spiders) seem to be following form action="" references in
ÂÂÂ Â pages as well as the usual href links. As a result probes by
ÂÂÂ Â such greedy theives can cause unexpected changes to wiki web
ÂÂÂ Â pages. One such example recently has been the triggering of the
  Change button on the Issue pages. The script
ÂÂÂ Â changeIssueProperties should be more careful not to record any
ÂÂÂ Â change if the Change action is triggered with no actually
ÂÂÂ Â changes. (Bill Page)

 General - i18n

ÂÂÂ * new japanese translation (Masaya Kato, Manabu Terada, Yoshiki
ÂÂÂ Â Shibukawa, Takayuki Shimizukawa, Junya Ogino, Takanori Suzuki)

ÂÂÂ * chinese translation updates (T.C. Chou)

ÂÂÂ * updated all po files from latest pot

 General - skins
ÂÂÂ 
ÂÂÂ * the site_logo folder property didn't work in plone



___
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] ClockServer 0.1 released

2005-04-01 Thread Jonathan Cyr




Am I getting this this is what
Zron should have been?

-Jon

Chris McDonough wrote:

  On Fri, 2005-04-01 at 02:40, Chris Withers wrote:
  
  
Chris McDonough wrote:


  It works by posing as a medusa server, and injects things that look like
http requests into the publisher every so often.
  

Isn't that effectively just creating a seperate thread though?

  
  
No.  It reuses the thread pool that the publisher already uses.

- C


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

2005-04-01 Thread Jake
My question, since it now seems like I am not the only one using ZClasses
is, why not support them? You listed out the reasons why someone wouldn't
want to use them going forward, but what are the reasons why not to
support them as legacy into 3/2.10?

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


Dieter Maurer said:
> Jim Fulton wrote at 2005-4-1 07:22 -0500:
>> ...
>>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?
>
> We use ZClasses for several applications which we would (if possible)
> not like to rewrite.
>
> --
> 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] Does anyone care whether we deprecate ZClasses?

2005-04-01 Thread Jonathan Cyr




Big mistake, IMHO,

You have no replacement for intermediate developers... the only decent
documentation, being the various books, have ZClasses throughout. 
Explain their absence to the newbies grokking for Zope enlightenment.

Not everyone needs/wants development tools, some like the TTW
management.  

The ZClass code seems to work flawlessly for me, never a problem.

Who didn't cut their teeth with ZClasses?  ZClasses are the reason I
realized Zope was so powerful... Gee, how would I use an Object
database???, the ZClass showed me... and later I added Zope Products to
the mix with my ZClasses and created a viable business based on Zope. 
How are newbies going to make the leap to the newer Zope offerings
without a ZClass to start with.

This list is full of experts... and I appreciate the resource... but
often the intermediate Zope programmer is plowed over... whether it's
the topic of ZClasses or DTML, or any other way Zope used to do
things.  I have to choose each Zope technology carefully for the time
investment.  ZClasses were well worth my time measured with the whole
picture... web design, flash programming, HTML, RSS, _javascript_, css,
interactive marketing, systems administration, etc.  I can't say that
for some Zope technology offerings. 

I took the better part of 1 1/2 years developing a business based on
Zope, heavily relying on ZClasses (and DTML), based on the choices in
Zope presented at the time.  I bought every book available, which
pointed to ZClasses and DTML being THE way to go... I bought into the
TTW strategy of managing web apps, and I like it... ZClasses fit the
bill for me... I don't need the CMF, APE, ZPT, Plone projects... I need
a simple way to deliver rich objects in an object database... ZClasses

My business venture, based on Zope is just now starting to bear
fruit... it would be a shame if the frantic pace of Zope's software
lifecycle couldn't be patient enough for the real world's business
lifecycles.  

I started developing on 2.6.1 and have been able to stay fairly current
to 2.7.3, and stayed fairly pure, only products added were formulator
and varimage... figured staying compatible with Zope's core features
would be to my benefit... ZClasses are a core feature of Zope

Unlike the depreciated Versions feature, which was more of a problem
that benefit ZClasses do work, DTML does, as long as you don't try
to make them solve complex problems.

Keep ZClasses until there's a replacement for "Simple Rich Objects in
the Object Database" for the intermediate Zope programmers.

This hits me very close to home, I apologize for any harsh terms and
appreciate Zope, the Zope team, and the work of all of the folks on
this list, making it so great.  I hope this helps in the discussion and
weighing of priorities. 

I appreciate you asking, thanks for your time,

Jonathan Cyr
[EMAIL PROTECTED]
WeddingWeblog.com





Jim Fulton wrote:

ZClasses are a feature that support through-the-web development.
  
Many people have found them useful in the past, but they have some
  
significant deficiencies, including:
  
  
- They can't be managed with file-system tools, especially
  
  revision control systems like CVS and subversion.
  
  
- They don't work well with Python development tools, like
  
  profilers and debugger.
  
  
- They aren't being actively maintained.
  
  
Most serious Zope developers stopped using them a long time
  
ago and are frustrated that we still expend resources keeping them
  
around.  For example, the release of Zope 2.8 has been delayed
  
by the requirement of getting ZClasses working with Zope 2.8.
  
  
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?
  
  
Jim
  
  



___
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] question about manipulating zcatalog query results

2005-04-01 Thread Ira Sher
I scoured the archives, and found mention of this problem, and a note
by you, Dieter saying it was a problem with the 2.7 beta (this was
back in May of 2004) but I can't find any subsequent mention of the
issue, and the problem I'm having is on both a 2.7.4 and a 2.7.5
build.

thanks
ira

On Apr 1, 2005 2:10 PM, Dieter Maurer <[EMAIL PROTECTED]> wrote:
> Ira Sher wrote at 2005-3-31 01:05 -0700:
> > ...
> >I've found some reference to the _getiter_ problem on the forum, but
> >the queries date from nearly a year ago, and there were no fixes at
> >the time (save to wait for 7.4 to come out of beta). Is anyone else
> >experiencing this? Is there a workaround? What am I missing?
> 
> I remember to have seen reports in the mailing list -- together
> with a report that the problem was fixed.
> 
> --
> 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-01 Thread Ausum Studio
To me it depends on how much time ZClasses are going to last.  If  ZClasses
will stay for the next two years, then it's fine for us, as we probably will
persuade ourselves to rewrite all of our stuff  in ZopeX3, and not in
Zope2.X

Jim, bear in mind that people that will agree to its deprecation is people
that in one way or another aren't using them or stopped using them, for
whatever valid reason they had ever found. Ask to the people who actually
doesn't have any problem with them. Take this as an example:
http://www.zope.org/Members/sums/News_Item.2004-10-20.2121

As of us, we are happily using them for a large project on dynamic packaging
for travel operators and travel agencies, a complex application featuring
dynamic pricing and the content management of  rich-media personalized
itineraries. I chose ZClasses as it offered us a mean of working
interactively with our partner, without the constraints of having to have a
detailed road map to start with.( Dynamic pakaging in the travel industry is
still a moving target ). ZClasses offered us a way to put test features up
and running quickly, just to find out they would make any sense or not.

Whether there already is a tool like that in ZopeLand, I would agree to its
deprecation, but actually there's nothing like it. Certainly ZClasses is not
what it promised to be, but what it does do, it does it brilliantly, IMNSHO.


Ausum


- Original Message - 
From: "Jake" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: 
Sent: Friday, April 01, 2005 11:04 AM
Subject: Re: [Zope] Does anyone care whether we deprecate ZClasses?


> My vote is to keep them around for 2.8 and 2.9 but say goodbye after that.
>
> Again.. it won't be easy for us, but who said progress ever was.
>
> Jake
> -- 
> http://www.ZopeZone.com
>
>
> Jim Fulton said:
> > Jake wrote:
> >> As someone who has at least 5 different products using ZClasses across
> >> 10
> >> different websites with millions of hits a month, I am certainly not
> >> happy
> >> to see them go, but I do understand that their time has come.
> >>
> >> If they are supported in 2.8 -> 2.9 and gone in 3.0 I guess that is ok.
> >
> > If we deprecated them now, they would be gone in 2.10 (not to be
> > confused with 3.0) too.
> >
> >> Again, it is going to take me and others a lot of work to migrate out
> >> our
> >> data from those products into other vehicles but such is progress.
> >
> > A decision hasn't been made.  People who don't use them feel strongly
> > that they should go.  I'm trying to get a sense of how widely they are
> > used.  I'm trying to understand if people who use ZClasses are a silent
> > majority, minority, or small minority.
> >
> > Jim
> >
> > --
> > Jim Fulton   mailto:[EMAIL PROTECTED]   Python Powered!
> > CTO  (540) 361-1714http://www.python.org
> > Zope Corporation http://www.zope.com   http://www.zope.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 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] role, user defined roles, and inclusion

2005-04-01 Thread Dieter Maurer
robert wrote at 2005-3-31 07:22 +0200:
>Is my assumption that granting a permission to Anonymous means granting 
>it to anybody correct?

Correct.

-- 
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] role, user defined roles, and inclusion

2005-04-01 Thread Dieter Maurer
Chris Withers wrote at 2005-3-31 12:26 +0100:
>Dieter Maurer wrote:
>> Any user has the "Anonymous" role whether or not it is authenticated.
>
>Really?
> ...
>print user.getRoles()
> ...
>
>returns ('Manager', 'Authenticated') when logged in as a manager and 
>('Anonymous',) when anonymous?
>
>>>A user will never have Authenticated and Anonymous roles at the same time.
>> 
>> This is wrong.
>
>See above.

As others already pointed out:

  There is an inconsistency between what "getRoles()" returns
  and what roles a user *effectively* has.

  The inconsistency might be justified as follows:

When every user has invariably the "Anonymous" role,
this can just be taken a general default that need
not be expressed in "getRoles()".

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

2005-04-01 Thread Dieter Maurer
prabuddha ray wrote at 2005-3-30 23:50 -0800:
> ...
>now my problem how n where do i check d pwd n redirect to the next zpt
>or the previous one if its wrong.

Apparently, you need some background reading...

Especially, you need to understand that HTTP is a stateless
protocol and *EACH* request must somehow perform its own
authentication. That's why usually login information is
(somehow) coded in a cookie.

You really should follow the advice to look at an existing
UserFolder (they are responsible for authentication).
You may need to adapt/extend an existing UserFolder.


-- 
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] question about manipulating zcatalog query results

2005-04-01 Thread Dieter Maurer
Ira Sher wrote at 2005-3-31 01:05 -0700:
> ...
>I've found some reference to the _getiter_ problem on the forum, but
>the queries date from nearly a year ago, and there were no fixes at
>the time (save to wait for 7.4 to come out of beta). Is anyone else
>experiencing this? Is there a workaround? What am I missing?

I remember to have seen reports in the mailing list -- together
with a report that the problem was fixed.

-- 
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] WebDAV BUGS and access to /tmp directory

2005-04-01 Thread Dieter Maurer
Pavel Zaitsev wrote at 2005-3-31 00:33 -0500:
>I am back trying to figure out why my zope crashes on 
>open('/tmp/tmp4fd4foo') kind of opens, which seem to originated
>from webdav code.

You problem seems to be much deeper:

  It is completely justified to open a temporary file -- whether
  for WebDAV or any other purpose.

  You should set up your system in a way that temporary files
  *can* be created and used...

-- 
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-01 Thread Dieter Maurer
Jim Fulton wrote at 2005-4-1 07:22 -0500:
> ...
>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?

We use ZClasses for several applications which we would (if possible)
not like to rewrite.

-- 
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-01 Thread Ira Sher
I can understand wanting to deprecate them, but I have to say, as the
maintainer of a site written by someone else about six years ago in
zope 1 days, that this would be a mess to migrate and require a total
site rewrite. The client is unfortuneatly a non-profit mid-sized
independent press, and this would likely doom them to remain at 2.9
forever...eck, as far as keeping a server going with an increasingly
outdated zope, and probably an outdated python, too...

On Apr 1, 2005 10:15 AM, Lennart Regebro <[EMAIL PROTECTED]> wrote:
> +1 on deprecation.
> 
> (As for "replacements", persistent schemas in Zope3 will enable the
> thing that ZClasses should have been: Combining a set of base classes
> with functionality with a TTW editable schema.
> 
> CPSschemas is halfway there: You can make your own content classes
> already, but you can't change the baseclass. But that's a discussion
> for anotehr day).
> 
> --
> 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 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] HTTPSConnection Python 2.3.4

2005-04-01 Thread Tino Wildenhain
Hi,

Am Freitag, den 01.04.2005, 14:35 -0500 schrieb Paul Winkler:
> On Fri, Apr 01, 2005 at 08:29:39AM +0100, Chris Withers wrote:
> > Paul Winkler wrote:
> > >I have a somewhat similar issue; an in-house Zope product is retrieving 
> > >some
> > >information from a remote URL. If I hit the same URL from the command
> > >line on the zope server (using wget), it works fine. When Zope hits it,
> > >it gets a Bad Gateway error from the remote (Apache + Jboss) server.
> > >Will post back here with anything I find out, maybe it will help you.
> > 
> > For both you and Jacob I'd recommend getting a packet sniffer up and 
> > running. It looks like the requests your python code is emitting are not 
> > the same as the ones that, for example, wget is emitting.
> 
> It'd be a heck of a lot easier if the packets were unencrypted.
> I set up tcpwatch (great tool!) but predictably, for an SSL connection,
> the output is gibberish. 
> Any other ideas?

You might try http://www.rtfm.com/ssldump/
(also as package available for most systems)


___
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] HTTPSConnection Python 2.3.4

2005-04-01 Thread Paul Winkler
On Fri, Apr 01, 2005 at 08:29:39AM +0100, Chris Withers wrote:
> Paul Winkler wrote:
> >I have a somewhat similar issue; an in-house Zope product is retrieving 
> >some
> >information from a remote URL. If I hit the same URL from the command
> >line on the zope server (using wget), it works fine. When Zope hits it,
> >it gets a Bad Gateway error from the remote (Apache + Jboss) server.
> >Will post back here with anything I find out, maybe it will help you.
> 
> For both you and Jacob I'd recommend getting a packet sniffer up and 
> running. It looks like the requests your python code is emitting are not 
> the same as the ones that, for example, wget is emitting.

It'd be a heck of a lot easier if the packets were unencrypted.
I set up tcpwatch (great tool!) but predictably, for an SSL connection,
the output is gibberish. 
Any other ideas?
 
-- 

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 )


[Zope] RSS feed: post-processing?

2005-04-01 Thread MILLER Eva
Title: RSS feed: post-processing?






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=HardcoverFiction


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 actual code snippets  

(I'm a terrible programmer but a good librarian).


Thanks

Eva the 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] question about manipulating zcatalog query results

2005-04-01 Thread Ira Sher
Chris, the relevant section of the script looks like this:

zcat=context.Catalog
if spontype == 'none':
results = zcat(meta_type=mtype)
else:
results = zcat(meta_type=mtype,SB_sponsor_type=spontype)
if sorton == 'id':
res = []
rest = []
res = list(results)
for row in res:
rest.append(row.id.split().pop(), row)
rest.sort()
return rest

this keeps garnering the 'global name _getiter_ is not defined under
2.7.5'...as you can see, the results have been transfered to a new
list, so I'm not even looping and splitting the original query results
(this was originally a much briefer script, but I've broken it down to
see where exactly things were hanging up). If I pull the loop, or use
a while loop and simply asign values from res to rest, then everything
works fine, but as soon as I use that for loop, I get the _getiter_
error, and using split with the while loop (looks like:

j = 0
while j < len(res):
k = res[j]
kk = k.split().pop()
rest.append(kk)
j = j+1


) I get AttributeError: split, or in the case of trying to play with
the k string pulled from the list (by adding additional text, for
example) I get "Record objects do not support concatenation". I just
can't see a way to play with the zcat query results without raising an
error, and I'm dreadful confused...

thanks again for looking into this
ira

On Apr 1, 2005 12:24 AM, Chris Withers <[EMAIL PROTECTED]> wrote:
> Ira Sher wrote:
> > There is no call to _getiter_, of course, in the script, but whenever
> > I use any for looping on the results, I get a variation of the above.
> >
> > Any thoughts on this?
> 
> Hmm, I should have asked this in the first place, but can you post the
> source code for your test python script?
> 
> 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: Plone/Zope on Debian Sarge

2005-04-01 Thread Andreas Pakulat
On 01.Apr 2005 - 10:14:36, Shane Graber wrote:
> google search for your error message yielded:
> 
> http://mail.zope.org/pipermail/zope/2005-January/155790.html
> 
> If you did an 'apt-get install plone' it's still trying to pull in
> Zope 2.6.

That's not correct, current Plone will favor zope27 over zope package,
you can see that in the dependecies. However, the Plone Product(s)
will still be installed in a path where the old Zope2.6 will find it
and thus are not automatically seen by Zope2.7. Anyway, how this can
be changed and how to setup the 2.7 zope is explained via
debconf-pages during the installation of zope27 and plone and even
when you disable debconf, you can still do RTFM in
/usr/share/doc/(zope|plone). I tried it lately and it took about 5
Minutes to get both zope27 and plone up and running (including
installtion via apt-get).

Andreas

-- 
You will be traveling and coming into a fortune.
___
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] Plone/Zope on Debian Sarge

2005-04-01 Thread Andreas Pakulat
On 01.Apr 2005 - 14:34:22, Peter Bittner wrote:
> Hi there!
> 
> I am running a Debian Linux box with Debian/testing (Sarge) and I am trying 
> to 
> get Plone up and running. I have made a clean, new install of the whole 
> system last week, so all packages are really up-to-date and there was no 
> dirty installation that was updated.
> 
> I have noticed that the Plone package on Debian is or was somewhat broken, 
> but 
> there was a notice about that on the Plone website (download page) which has 
> disappeared. For me that looked like this problem was fixed by the package 
> maintainer.
> 
> Unfortunately still, after installing Plone (and implicitly thus Zope 2.7) 
> Zope did not want to come up, saying:

Did you read the debconf-pages that were presented to you during the
installation of zope and plone? I guess not, because else you won't
ask that question. Short answer: create a new Zope instance using
mkzope2.7instance, check it's config and remove the '#' on the lines:

products /usr/lib/zope2.7/lib/python/Products
products /usr/lib/zope/lib/python/Products
products $INSTANCE/Products

To have Zope 2.7 find the Plone Product. The documentation of Zope and
Plone will explain why you need to do that.

>   Zope starting all instances
>   '*' is an old/purged instance, not started

Looks like Zope2.7 finds an old 2.6 instance, but I'm not sure...

Andreas

-- 
You're definitely on their list.  The question to ask next is what list it is.
___
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] Folder Listing as a Plone Portlet Mini-HOWTO (draft)

2005-04-01 Thread Matthew X. Economou
> -Original Message-
> From: David Convent [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 01, 2005 3:30 AM
> 
> Plone now uses catalog queries to build folder listings, it avoids
> waking up all objects and slow down the server response.
> Consider using it, your portlet as it is written now can slow down
> the browsing of a folder containing a large amount of objects.

I don't understand this.  Would you point out the relevant documentation
or source code?  As it is, portlet_folder_contents is a hack and
probably only suitable for small folders.  In my case, I intended to use
it to create a small box of links (no more than five or six), without
having to go to the ZMI all the time to change the portlet's contents.

Best wishes,
Matthew
___
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-01 Thread Lennart Regebro
+1 on deprecation.


(As for "replacements", persistent schemas in Zope3 will enable the
thing that ZClasses should have been: Combining a set of base classes
with functionality with a TTW editable schema.

CPSschemas is halfway there: You can make your own content classes
already, but you can't change the baseclass. But that's a discussion
for anotehr day).

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

2005-04-01 Thread Maik Jablonski
Jake wrote:
My vote is to keep them around for 2.8 and 2.9 but say goodbye after that.
Again.. it won't be easy for us, but who said progress ever was.
+1 for dropping ZClasses as soon as possible (IMHO 2.10 is a good 
target), but before that, some comment in REALLY BIG LETTERS should be 
made in the ZopeBook:

"Don't use ZClasses, because you'll get into real trouble when using 
them, deprecated or not ;)"

Many "Zope-startes" read the ZopeBook and start over and over again with 
ZClasses. So we should start to "deprecate" ZClasses in the ZopeBook anyway.

http://www.plope.com/Books/2_7Edition/CustomZopeObjects.stx
Cheers, Maik
___
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-01 Thread Jake
My vote is to keep them around for 2.8 and 2.9 but say goodbye after that.

Again.. it won't be easy for us, but who said progress ever was.

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


Jim Fulton said:
> Jake wrote:
>> As someone who has at least 5 different products using ZClasses across
>> 10
>> different websites with millions of hits a month, I am certainly not
>> happy
>> to see them go, but I do understand that their time has come.
>>
>> If they are supported in 2.8 -> 2.9 and gone in 3.0 I guess that is ok.
>
> If we deprecated them now, they would be gone in 2.10 (not to be
> confused with 3.0) too.
>
>> Again, it is going to take me and others a lot of work to migrate out
>> our
>> data from those products into other vehicles but such is progress.
>
> A decision hasn't been made.  People who don't use them feel strongly
> that they should go.  I'm trying to get a sense of how widely they are
> used.  I'm trying to understand if people who use ZClasses are a silent
> majority, minority, or small minority.
>
> Jim
>
> --
> Jim Fulton   mailto:[EMAIL PROTECTED]   Python Powered!
> CTO  (540) 361-1714http://www.python.org
> Zope Corporation http://www.zope.com   http://www.zope.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 )


Re: [Zope] role, user defined roles, and inclusion

2005-04-01 Thread Florent Guillaume
Chris Withers  <[EMAIL PROTECTED]> wrote:
> > (FWIW in CPSUserFolder we chose to return Authenticated as well as
> > Anonymous to be consistent.)
> 
> In what context? Providing both Authenticated and Anonymous on the same 
> user at the same time seems bizarre ;-)

When doing user.getRoles(). Because as Tres said more clearly than me,
every user can do what the Anonymous role can, so it's just being
consistent to express that in user.getRoles(). IMHO.

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

2005-04-01 Thread Andreas Jung

--On Freitag, 1. April 2005 7:22 Uhr -0500 Jim Fulton <[EMAIL PROTECTED]> 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?
+2 to get rid of them
-aj


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

2005-04-01 Thread Paul Winkler
+1 for deprecation.  However, I haven't used them for years.
I suspect you will hear otherwise from some people with 
currently deployed solutions based on ZClasses...
(cue Dieter)

-- 

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

2005-04-01 Thread Jim Fulton
Jake wrote:
As someone who has at least 5 different products using ZClasses across 10
different websites with millions of hits a month, I am certainly not happy
to see them go, but I do understand that their time has come.
If they are supported in 2.8 -> 2.9 and gone in 3.0 I guess that is ok.
If we deprecated them now, they would be gone in 2.10 (not to be
confused with 3.0) too.
Again, it is going to take me and others a lot of work to migrate out our
data from those products into other vehicles but such is progress.
A decision hasn't been made.  People who don't use them feel strongly
that they should go.  I'm trying to get a sense of how widely they are
used.  I'm trying to understand if people who use ZClasses are a silent
majority, minority, or small minority.
Jim
--
Jim Fulton   mailto:[EMAIL PROTECTED]   Python Powered!
CTO  (540) 361-1714http://www.python.org
Zope Corporation http://www.zope.com   http://www.zope.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 )


Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-01 Thread Jake
As someone who has at least 5 different products using ZClasses across 10
different websites with millions of hits a month, I am certainly not happy
to see them go, but I do understand that their time has come.

If they are supported in 2.8 -> 2.9 and gone in 3.0 I guess that is ok.
Again, it is going to take me and others a lot of work to migrate out our
data from those products into other vehicles but such is progress.

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


Jim Fulton said:
>
> ZClasses are a feature that support through-the-web development.
> Many people have found them useful in the past, but they have some
> significant deficiencies, including:
>
> - They can't be managed with file-system tools, especially
>revision control systems like CVS and subversion.
>
> - They don't work well with Python development tools, like
>profilers and debugger.
>
> - They aren't being actively maintained.
>
> Most serious Zope developers stopped using them a long time
> ago and are frustrated that we still expend resources keeping them
> around.  For example, the release of Zope 2.8 has been delayed
> by the requirement of getting ZClasses working with Zope 2.8.
>
> 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?
>
> Jim
>
> --
> Jim Fulton   mailto:[EMAIL PROTECTED]   Python Powered!
> CTO  (540) 361-1714http://www.python.org
> Zope Corporation http://www.zope.com   http://www.zope.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 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: role, user defined roles, and inclusion

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

Chris Withers wrote:

> Are you implying that something else gives the user the Anonymous role
> as far as Zope security is concerned?

- From the point of view of introspecting roles, no;  however, when
validating access, *every* user can do what Anonymous can do, so the
distinction lacks a difference.


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

iD8DBQFCTWRhGqWXf00rNCgRAjiCAKCP52L2wIM0gAA1PrsXim2oeApRUACfU+x+
NEyj6LHgnkradbGjC2UhCf8=
=Bhld
-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] Does anyone care whether we deprecate ZClasses?

2005-04-01 Thread Jim Fulton
Allen Schmidt wrote:
-l for deprecation
...until we build a replacement anyway...
What do you mean by "replacement"?  In Zope 3, I plan to
provide persistent modules to support prototying new
applications through the web.  It will be possible to
automatically convert these to file-system-based
packages once you are ready to move to production and
evolutionary development. I expect this capability to
appear in Zope 2 eventually.  Would this be a suitable
replacement?
Jim
--
Jim Fulton   mailto:[EMAIL PROTECTED]   Python Powered!
CTO  (540) 361-1714http://www.python.org
Zope Corporation http://www.zope.com   http://www.zope.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 )


Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-01 Thread kosh
I vote we take off and nuke them from orbit it is the only way to be sure.

(+1 get rid of those dang things)

I have tried to help far too many people over the years on #zope that had 
problems with zclasses. They just seem fragile and should be removed.

On Friday 01 April 2005 5:22 am, 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?
>
> Jim
___
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-01 Thread Shane Graber
google search for your error message yielded:

http://mail.zope.org/pipermail/zope/2005-January/155790.html

If you did an 'apt-get install plone' it's still trying to pull in
Zope 2.6.  What I ended up doing was to uninstall plone and then
'apt-get install zope2.7', create my default instance w/
mkzopeinstance.py (installed to /var/lib/zope2.7/instance/default) and
then just dropped the Plone, etc packages into my
/instances/default/Producs folder.

Shane

On Apr 1, 2005 10:05 AM, Tres Seaver <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Peter Bittner wrote:
> 
> > I am running a Debian Linux box with Debian/testing (Sarge) and I am trying 
> > to
> > get Plone up and running. I have made a clean, new install of the whole
> > system last week, so all packages are really up-to-date and there was no
> > dirty installation that was updated.
> >
> > I have noticed that the Plone package on Debian is or was somewhat broken, 
> > but
> > there was a notice about that on the Plone website (download page) which has
> > disappeared. For me that looked like this problem was fixed by the package
> > maintainer.
> >
> > Unfortunately still, after installing Plone (and implicitly thus Zope 2.7)
> > Zope did not want to come up, saying:
> >
> >   Zope starting all instances
> >   '*' is an old/purged instance, not started
> >
> > What is wrong here?
> 
> You need to supply more detail, like showing the exact working
> directory, comand lines, etc. you used, and the full traceback, if any.
>  Also note that the Debian maintainer should probably be your first line
> of contact:  very few folks on this list are likely to grok the details
> of packaging for Debian.
> 
> > I know I have to set up a new Plone site (obviously using the Zope interface
> > at http://localhost:9673), but how can I when Zope is not running.
> >
> > Any help is greatly appreciated!
> 
> Tres.
> - --
> ===
> Tres Seaver[EMAIL PROTECTED]
> Zope Corporation  "Zope Dealers"   http://www.zope.com
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.2.4 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
> 
> iD8DBQFCTWNCGqWXf00rNCgRAioBAJ9TjpjdUT9dvzS88pYt+h3+qHLfWgCffyhs
> 0WUBtrHLRi4YSJzl+XF0ZOA=
> =l//E
> -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 )
> 


-- 
http://liquid.homelinux.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 )


Re: [Zope] Does anyone care whether we deprecate ZClasses?

2005-04-01 Thread Allen Schmidt
-l for deprecation
...until we build a replacement anyway...

Dennis Allison wrote:
+1 for deprecation.  

On Fri, 1 Apr 2005, Jim Fulton wrote:
ZClasses are a feature that support through-the-web development.
Many people have found them useful in the past, but they have some
significant deficiencies, including:
- They can't be managed with file-system tools, especially
  revision control systems like CVS and subversion.
- They don't work well with Python development tools, like
  profilers and debugger.
- They aren't being actively maintained.
Most serious Zope developers stopped using them a long time
ago and are frustrated that we still expend resources keeping them
around.  For example, the release of Zope 2.8 has been delayed
by the requirement of getting ZClasses working with Zope 2.8.
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?
Jim


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

2005-04-01 Thread bruno modulix
Jim Fulton wrote:
(snip)
"Does anyone care whether we deprecate ZClasses?"
ZClasses ? What are ZClasses ?
(Sorry, couldn't resist. +1 for deprecation)
--
Bruno Desthuilliers
Développeur
[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] Re: Plone/Zope on Debian Sarge

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

Peter Bittner wrote:

> I am running a Debian Linux box with Debian/testing (Sarge) and I am trying 
> to 
> get Plone up and running. I have made a clean, new install of the whole 
> system last week, so all packages are really up-to-date and there was no 
> dirty installation that was updated.
> 
> I have noticed that the Plone package on Debian is or was somewhat broken, 
> but 
> there was a notice about that on the Plone website (download page) which has 
> disappeared. For me that looked like this problem was fixed by the package 
> maintainer.
> 
> Unfortunately still, after installing Plone (and implicitly thus Zope 2.7) 
> Zope did not want to come up, saying:
> 
>   Zope starting all instances
>   '*' is an old/purged instance, not started
> 
> What is wrong here?

You need to supply more detail, like showing the exact working
directory, comand lines, etc. you used, and the full traceback, if any.
 Also note that the Debian maintainer should probably be your first line
of contact:  very few folks on this list are likely to grok the details
of packaging for Debian.

> I know I have to set up a new Plone site (obviously using the Zope interface 
> at http://localhost:9673), but how can I when Zope is not running.
> 
> Any help is greatly appreciated!


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

iD8DBQFCTWNCGqWXf00rNCgRAioBAJ9TjpjdUT9dvzS88pYt+h3+qHLfWgCffyhs
0WUBtrHLRi4YSJzl+XF0ZOA=
=l//E
-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] Does anyone care whether we deprecate ZClasses?

2005-04-01 Thread Ben Mason
And another +1

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 
> Behalf Of Dennis Allison
> Sent: 01 April 2005 15:44
> To: Jim Fulton
> Cc: zope@zope.org
> Subject: Re: [Zope] Does anyone care whether we deprecate ZClasses?
> 
> 
> +1 for deprecation.  
> 
> 
> On Fri, 1 Apr 2005, Jim Fulton wrote:
> > 
> > ZClasses are a feature that support through-the-web development.
> > Many people have found them useful in the past, but they have some
> > significant deficiencies, including:
> > 
> > - They can't be managed with file-system tools, especially
> >revision control systems like CVS and subversion.
> > 
> > - They don't work well with Python development tools, like
> >profilers and debugger.
> > 
> > - They aren't being actively maintained.
> > 
> > Most serious Zope developers stopped using them a long time
> > ago and are frustrated that we still expend resources keeping them
> > around.  For example, the release of Zope 2.8 has been delayed
> > by the requirement of getting ZClasses working with Zope 2.8.
> > 
> > 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?
> > 
> > Jim
> > 
> > 
> 
> ___
> 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] Does anyone care whether we deprecate ZClasses?

2005-04-01 Thread Dennis Allison

+1 for deprecation.  


On Fri, 1 Apr 2005, Jim Fulton wrote:
> 
> ZClasses are a feature that support through-the-web development.
> Many people have found them useful in the past, but they have some
> significant deficiencies, including:
> 
> - They can't be managed with file-system tools, especially
>revision control systems like CVS and subversion.
> 
> - They don't work well with Python development tools, like
>profilers and debugger.
> 
> - They aren't being actively maintained.
> 
> Most serious Zope developers stopped using them a long time
> ago and are frustrated that we still expend resources keeping them
> around.  For example, the release of Zope 2.8 has been delayed
> by the requirement of getting ZClasses working with Zope 2.8.
> 
> 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?
> 
> Jim
> 
> 

___
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] Dynamic Zope Style Sheets with HTML 4.01 Strict

2005-04-01 Thread Pascal Peregrina
I do exactly the same thing, except that I do it directly in the ZPT :


Pascal

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] la part de
Andy Yates
Envoyé : jeudi 31 mars 2005 21:53
À : zope@zope.org
Objet : RE: [Zope] Dynamic Zope Style Sheets with HTML 4.01 Strict


Thanks!  I've never used dtml for style sheets.  I've always used page
templates and never had a problem 'til now.  Also, I don't see a way to
set the content type on a dtml doc or method.  I assume it would be
text/html and then I back in the same boat.  To restate my problem,
FireFox in HTML 4.01 Strict mode does not seem to accept a style sheet
if the content type is text/html.  It needs to see text/css.  (Of course
IE is fat dumb and happy)  Everything worked fine until I added this doc
string to my page:

http://www.w3.org/TR/html4/strict.dtd";>


Unless somebody has some better magic this seems work.

context.REQUEST.RESPONSE.setHeader('content-type', 'text/css')
return context.stylesheet()

This way I can leave the content type on the page template text/html so
Zope is happy and make FireFox happy by overriding the content type to
text/css.


Andy
 

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Paul Winkler
> Sent: Thursday, March 31, 2005 12:00 PM
> To: zope@zope.org
> Subject: Re: [Zope] Dynamic Zope Style Sheets with HTML 4.01 Strict
> 
> On Thu, Mar 31, 2005 at 11:38:59AM -0600, Andy Yates wrote:
> > Am I going to have to write a python script to call the style sheet
page
> > template and change the content type or is there a better way to
handle
> > this?
> 
> Page Templates are awkward to use for non-XML output. I never tried
> to use them for stylesheets.
> fwiw, I have good results using DTML Methods for my dynamic
stylesheets.
> It's about the only thing I use DTML for anymore.
> Mine look roughly like this:
> 
> 
> 
> body {
>   background-color: &dtml-mainBackgroundColor;;
>   color: &dtml-mainTextColor;;
> }
> 
> /* more style rules follow */
> ...
> 
> 
> 
> --
> 
> 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 )
___
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 )


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.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] Dynamic Zope Style Sheets with HTML 4.01 Strict

2005-04-01 Thread Stefan H. Holek
http://simplates.zetaweb.com/
On 31. Mär 2005, at 19:38, Andy Yates wrote:
So, how do I make a dynamic style sheet that has the correct (text/css)
content type?
--
Software Engineering is Programming when you can't. --E. W. Dykstra
___
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] Does anyone care whether we deprecate ZClasses?

2005-04-01 Thread Jim Fulton
ZClasses are a feature that support through-the-web development.
Many people have found them useful in the past, but they have some
significant deficiencies, including:
- They can't be managed with file-system tools, especially
  revision control systems like CVS and subversion.
- They don't work well with Python development tools, like
  profilers and debugger.
- They aren't being actively maintained.
Most serious Zope developers stopped using them a long time
ago and are frustrated that we still expend resources keeping them
around.  For example, the release of Zope 2.8 has been delayed
by the requirement of getting ZClasses working with Zope 2.8.
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?
Jim
--
Jim Fulton   mailto:[EMAIL PROTECTED]   Python Powered!
CTO  (540) 361-1714http://www.python.org
Zope Corporation http://www.zope.com   http://www.zope.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] Plone/Zope on Debian Sarge

2005-04-01 Thread Peter Bittner
Hi there!

I am running a Debian Linux box with Debian/testing (Sarge) and I am trying to 
get Plone up and running. I have made a clean, new install of the whole 
system last week, so all packages are really up-to-date and there was no 
dirty installation that was updated.

I have noticed that the Plone package on Debian is or was somewhat broken, but 
there was a notice about that on the Plone website (download page) which has 
disappeared. For me that looked like this problem was fixed by the package 
maintainer.

Unfortunately still, after installing Plone (and implicitly thus Zope 2.7) 
Zope did not want to come up, saying:

  Zope starting all instances
  '*' is an old/purged instance, not started

What is wrong here?

I know I have to set up a new Plone site (obviously using the Zope interface 
at http://localhost:9673), but how can I when Zope is not running.

Any help is greatly appreciated!
Cheers, Peter

-- 
"Free software is like free speech, not free beer" (Richard Stallman)
___
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] JOB: CONTRACT: Python Programmer ­ DC Area, but 90% Telecommute

2005-04-01 Thread Beau
JOB: CONTRACT: Python Programmer ­ DC Area, but 90% Telecommute

My client is looking for a Python programmer to work 10-20hours a week,
starting immediately, through mid-June, to help us complete develop on a
web-based collaboration service (development, testing, production).

REQUIRED: Experience in Web scripting (server side) with Python

DESIRED EXPERIENCE:
Experience with Zope Page Templates
Plone site management and product configuration
Javascript 
Java 
Subversion 
*nix administration and configuratoin

My client is developing an ASP/Hosting service that will support project
management, graphical and text document sharing and markup for retail (i.e.
non computer-savvy) customers. You'll learn a lot about Plone and Zope. This
is a start-up effort: if you help us succeed, the job may last for a good
long while. 

This is a contract position. Some onsite (to Capitol Hill, in DC) visits may
be required, but 90% or more of the hours will be provided via
telecommuting. 

Please send a summary of relevant experience, resume, and hourly
expectations to [EMAIL PROTECTED]

Python and Zope Jobs Yahoo Group:
http://groups.yahoo.com/group/pythonzopejobs

___
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] zygopetale.py

2005-04-01 Thread Yahya AZZOUZ
hi,
i m looking for zygopetale.py ( it allow to interact with ldap).
could someone send me it.
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] script python error

2005-04-01 Thread Vangelis Mihalopoulos
Maybe using quotese.g. 

RESP.redirect('/store_nic/consumables/test')
prabuddha ray wrote:
wats wrong with the given puthon script
request = container.REQUEST
RESP =  request.RESPONSE
passwd = context.request.password1
user = context.request.username,
if(container.chkpwd(uname=user,pwd=passwd)):
RESP.redirect(/store_nic/consumables/test) // syntax errror.
else:
RESP.redirect(/store_nic/consumables/index_html)

On Tue, 29 Mar 2005 19:07:00 +0200, Andreas Pakulat <[EMAIL PROTECTED]> wrote:
 

On 29.Mär 2005 - 05:39:42, prabuddha  ray wrote:
 

Danke Jürgen,
  one tip i'm lookin for is how to cal pyhton scripts on any form
   

event, 
 

ie. like we call javascripts on the onclick or onsubmit or onchange
   

events?
 

 thanks again.
   

You can't. Python and JavaScript are completely different things.
JavaScript runs on the client side, whereas Python runs on the server.
However, you probably can use your JavaScript to call a python Script,
but I wouldn't suspect that it works the same as with JavaScript
alone. Python Scripts are executed when you send them a Request or by
calling them from within another python script (or TAL or DTML
statement)
Andreas
--
You have an ambitious nature and may make a name for yourself.
___
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 )

 

--
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] ClockServer 0.1 released

2005-04-01 Thread Chris McDonough
On Fri, 2005-04-01 at 02:40, Chris Withers wrote:
> Chris McDonough wrote:
> > It works by posing as a medusa server, and injects things that look like
> > http requests into the publisher every so often.
> 
> Isn't that effectively just creating a seperate thread though?

No.  It reuses the thread pool that the publisher already uses.

- C


___
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] ClockServer 0.1 released

2005-04-01 Thread Chris Withers
Chris McDonough wrote:
It works by posing as a medusa server, and injects things that look like
http requests into the publisher every so often.
Isn't that effectively just creating a seperate thread 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] role, user defined roles, and inclusion

2005-04-01 Thread Chris Withers
Florent Guillaume wrote:
from AccessControl import getSecurityManager
user = getSecurityManager().getUser()
print user.getRoles()
return printed
returns ('Manager', 'Authenticated') when logged in as a manager
This queries the user object, and returns all roles the implementation
decided to return. 
Are you implying that something else gives the user the Anonymous role 
as far as Zope security is concerned?

Standard user folder only returns 'Authenticated' in
addition to the roles explicitely given to that user
Indeed, but they don't give Anonymous to any user who has provided 
successful auth credentials.

(FWIW in CPSUserFolder we chose to return Authenticated as well as
Anonymous to be consistent.)
In what context? Providing both Authenticated and Anonymous on the same 
user at the same time seems bizarre ;-)

...but from the security machinery's point of view, if an object or
method is protected by a permission given to the role Anonymous, then
any user will have access. ImplPython.validate has:
# Short-circuit tests if we can:
try:
if roles is None or 'Anonymous' in roles:
return 1
(roles here is the roles issued from the permission on the object considered.)
Indeed, this is a little wart but one that makes sense. It doesn't, 
however, mean that Authenticated users have the Anonymous role, which wa 
the original question.

However, my example was incorrect, since provided anonymous can BeAnon, 
then so can anyone else, which is a little odd, but doesn't really 
matter in the grand scheme of things...

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] Dynamic Zope Style Sheets with HTML 4.01 Strict

2005-04-01 Thread Chris Withers
Andy Yates wrote:
Compilation failed
xml.parsers.expat.ExpatError: syntax error: line 3, column 0
This just means you had an XML error in your css ZPT. Usually a missing 
close tag or / in a  will do it.

Don't use DTML, it's evil, you're doing the right thing already ;-)
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] HTTPSConnection Python 2.3.4

2005-04-01 Thread Chris Withers
Paul Winkler wrote:
I have a somewhat similar issue; an in-house Zope product is retrieving some
information from a remote URL. If I hit the same URL from the command
line on the zope server (using wget), it works fine. When Zope hits it,
it gets a Bad Gateway error from the remote (Apache + Jboss) server.
Will post back here with anything I find out, maybe it will help you.
For both you and Jacob I'd recommend getting a packet sniffer up and 
running. It looks like the requests your python code is emitting are not 
the same as the ones that, for example, wget is emitting.

For Joshua only: are you sure the SSL server you're trying to connect to 
is alive and responding well? Do you have to do a POST or woulda GET 
suffice? If the latter, then try using urllib2 instead of httplib. Also, 
can you let us see the full traceback you get when the error occurs?

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] question about manipulating zcatalog query results

2005-04-01 Thread Chris Withers
Ira Sher wrote:
There is no call to _getiter_, of course, in the script, but whenever
I use any for looping on the results, I get a variation of the above.
Any thoughts on this?
Hmm, I should have asked this in the first place, but can you post the 
source code for your test python script?

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] Folder Listing as a Plone Portlet Mini-HOWTO (draft)

2005-04-01 Thread David Convent
Matthew X. Economou wrote:
http://web.irtnog.org/Members/xenophon/plone/portlet-folder-contents
This folder listing portlet displays the title of the folder, its
description, and a list of each item in the folder.  Mousing over each
link pops up its description in browsers that understand the title
anchor (A) tag attribute.
Your comments and suggestions are greatly appreciated!
 

Plone now uses catalog queries to build folder listings, it avoids 
waking up all objects and slow down the server response.
Consider using it, your portlet as it is written now can slow down the 
browsing of a folder containing a large amount of objects.
HTH,

Best wishes,
Matthew
___
 

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