[Zope-Annce] [ANN] PluggableAuthService 1.1b2

2005-07-14 Thread Zachery Bir

I'm pleased to announce another beta release of PluggableAuthService.

PluggableAuthService is a highly extensible replacement user folder
for Zope 2. It can manage users, groups, roles, and properties.

Summary

  PluggableAuthService is a highly extensible replacement user folder
  for Zope 2. It can manage arbitrary user, group, role, and property
  definitions with ease, and works best in very heterogeneous
  environments (users stored in MySQL, groups in LDAP, properties from
  the filesystem, c).

  For authentication, it supports HTTP Basic Auth, Cookie Auth, Domain
  Auth, and others, and can be extended to support just about any other
  mechanism.

Changes in this version

  - Fixed a template bug in the plugin activation form.

You can download the source in tarball or zip format from:

  http://www.zope.org/Members/urbanape/PluggableAuthService/ 
PluggableAuthService-1.1b2/PluggableAuthService-1.1b2.tar.gz
  http://www.zope.org/Members/urbanape/PluggableAuthService/ 
PluggableAuthService-1.1b2/PluggableAuthService-1.1b2.zip


Thanks,

Zachery Bir

___
Zope-Announce maillist  -  Zope-Announce@zope.org
http://mail.zope.org/mailman/listinfo/zope-announce

 Zope-Announce for Announcements only - no discussions

(Related lists - 
Users: http://mail.zope.org/mailman/listinfo/zope

Developers: http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope-dev] File System

2005-07-14 Thread Hitesh Shetty
My name is hitesh
i am currently working on a project which requires to build an Object
Oriented File System,
The application is curently running on ZODB and the application is in
transit into an operating system
One of the preferred ways was to build the file system from ZODB itself
Kindly guide me on how to proceed 
Regards
Hitesh Shetty
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-PAS] PluggableAuthService 1.1b2 released

2005-07-14 Thread Zachery Bir

I'm pleased to announce another beta release of PluggableAuthService.

PluggableAuthService is a highly extensible replacement user folder
for Zope 2. It can manage users, groups, roles, and properties.

Summary

 PluggableAuthService is a highly extensible replacement user folder
 for Zope 2. It can manage arbitrary user, group, role, and property
 definitions with ease, and works best in very heterogeneous
 environments (users stored in MySQL, groups in LDAP, properties from
 the filesystem, c).

 For authentication, it supports HTTP Basic Auth, Cookie Auth, Domain
 Auth, and others, and can be extended to support just about any other
 mechanism.

Changes in this version

 - Fixed a template bug in the plugin activation form.

You can download the source in tarball or zip format from:

 
http://www.zope.org/Members/urbanape/PluggableAuthService/PluggableAuthService-1.1b2/PluggableAuthService-1.1b2.tar.gz




http://www.zope.org/Members/urbanape/PluggableAuthService/PluggableAuthService-1.1b2/PluggableAuthService-1.1b2.zip

Thanks,

Zachery 


Bir


___
Zope-PAS mailing list
Zope-PAS@zope.org
http://mail.zope.org/mailman/listinfo/zope-pas


[Zope] servlet filter like behaviour

2005-07-14 Thread Laurian Gridinoc
Hello,

How it is possible to wrap the response of a subtree?
For example, for the path /foo/bar/baz, a script located at
/foo/wrapper would catch the output of the rest of the request path
(./bar/baz) and do a transformation upon it (gzip, xslt, etc).

Thank you,
-- 
Laurian Gridinoc, www.grapefruit.ro
___
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] Breadcrumb dilemma

2005-07-14 Thread Chris Withers

Adamo, Steven wrote:

My apologies if this is easily found in the mail-list archives (I found
no easy way to search that wealth of information).


Ah, so Google is blocked by your corporate firewall? ;-)

I feel silly asking this collective about such a simple question, 


And rightly you should, since this list is neither centered around Plone 
nor CMF. Try using Google from home and find the lists for these 
specific products ;-)



for the life of me, I'm completely stumped.  I have implemented a Plone
2.x site for our public website, and have completely replaced all the
standard Plone skin.


Surely that must have meant you read the code as you replaced it? ;-)


However, the breadcrumb trail will only display you are here: home.  I
simply cannot figure out what I haven't included (or what I killed
when I created my new skin) that will make the breadcrumb pick up the
new folder (you are here: home  company).


try looking for breadcrumbs.py in a script or two, I can't promise that 
Plone hasn't bastardised it, but it's what the CMF used to use to 
calculate breadcrumbs...


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] BTreeFolder doubleclick patch

2005-07-14 Thread Chris Withers

Hi Peter,

Peter Bengtsson wrote:

Peter, I can't find the attached files.
Maybe you forgot to attach them or the list has removed them before
sending to everybody?




http://www.peterbe.com/zope/BTreeFolder2Patched/i


BTreeFolder2 is part of core zope now, so you can likely submit your 
patch to the collector on zope.org for inclusion...


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

2005-07-14 Thread Shane Graber
I believe that's because the author has moved on to zforum: 
http://zforum.org/  I believe somewhere in the fcforum site there is a
couple posts about this new forum product.

Shane

On 7/13/05, Chris Withers [EMAIL PROTECTED] wrote:
 [EMAIL PROTECTED] wrote:
  Does anyone know the status of the fcForum product?  Is it still in
  production?  Posts on the http://fcforum.techfuel.net website seem to
  have gone unanswered for several months now.
 
 I wouldn't use it :-S
 
 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 )
 


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


[Zope] String Replacement Function

2005-07-14 Thread Asad Habib
Is it possible to replace more than 1 type of character in a string
simultaneously? If so, what is the correct syntax for this? I am currently
using the following:

dtml-var _.string.replace(testString, _.chr(10), 'br /')

For this string, I want to replace both newlines and carriage returns
(_.chr(13)) with the break tag.

Any help would be appreciated. Thanks.

- Asad
___
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] String Replacement Function

2005-07-14 Thread Tino Wildenhain
Am Donnerstag, den 14.07.2005, 16:00 -0400 schrieb Asad Habib:
 Is it possible to replace more than 1 type of character in a string
 simultaneously? If so, what is the correct syntax for this? I am currently
 using the following:
 
 dtml-var _.string.replace(testString, _.chr(10), 'br /')
 
 For this string, I want to replace both newlines and carriage returns
 (_.chr(13)) with the break tag.
 
IIRC. you can just use dtml-var testString newline_to_br
to get the same result.
I know of no occurence where you have either \n or \r
but in the same string (and not just \n or \n\r)
But if you want to replace each, either:

dtml-var expr=testString.replace('\r','\n') newline_to_br

or

dtml-var
expr=testString.replace('\n','br /').replace('\r','br /')

but beware the quoting.

Even better maybe you just use CSS for your layout:

p style=white-space:pre
dtml-var testString
/p

or with ZPT:

p style=white-space:pre tal:content=options/testString
Sampletext
/p



___
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] XUF and Postgres

2005-07-14 Thread Dieter Maurer
David Pratt wrote at 2005-7-14 12:46 -0300:
I am looking at using the ExUserFolder with Postgres.  Any users of 
this combination that could share feedback (positive or negative) on 
how this solution is working for them.

We use it and are satisfied with it.

-- 
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] How to create Version Object

2005-07-14 Thread Dieter Maurer
Jens Vagelpohl wrote at 2005-7-12 18:50 +0100:
 ...
That's probably your luck. They are deprecated, unsupported, and  
carry the risk of data loss.

Once, they caused data loss due to a bug introduced during a ZODB
restructuring...
This bug was fixed a long time ago.

So you should not be using them, anyway :)

Packing, too, once caused data loss (another ZODB bug, also fixed a long time
ago). Should we no longer use packing because of this?


-- 
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] Product logging to Postgres

2005-07-14 Thread Dieter Maurer
David Pratt wrote at 2005-7-12 10:44 -0300:
I am wanting to log a product to postgres database. I want to write to 
the log from my Script Python methods (in skins) when certain actions 
occur. The product itself uses a number of zsql methods.  Can I import 
existing zope logging classes in my Script Python

You can import them as soon as you execute the necessary security
declarations (-- PythonScripts -- README).

to to this

In order to let Zope's logging classes log to postgres, you
will need to implement a new log handler that does this...

-- 
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] Cool monkey patch to make tracebacks more useful :-)

2005-07-14 Thread Dieter Maurer
Chris Withers wrote at 2005-7-13 09:40 +0100:
Ever noticed how tracebacks from ZPT are actually quite useful when 
viewed through the error_log object, but totally useless when they fail, 
say, in a unit test?

This bugged me, so I had a dig, and just discovered this cool monkey 
patch, to be inserted in any module that gets imported before an 
exception is raised:

I had a similar experience but solved it by modifying
zLOG.EventLogger.log in the following way:

# DM 2005-06-27: Zope style tracebacks
from zExceptions.ExceptionFormatter import format_exception

# DM 2005-06-27: we now use Zope's traceback format because
#  it is more informative
#self.logger.log(level, msg, exc_info=(error is not None))
exc_class = sys.exc_info()[0]
if error and exc_class is not None: # Note: error is a boolean!
msg += '\n' + ''.join(format_exception(*sys.exc_info()))
self.logger.log(level, msg)


Maybe, code like this should move into the Zope core?


-- 
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] Cool monkey patch to make tracebacks more useful :-)

2005-07-14 Thread Dieter Maurer
Lennart Regebro wrote at 2005-7-13 12:47 +0200:
 ...
Ever noticed how it's near impossible to figure out what actually
causes an error when you run functional tests? Can you fix that too?
:-)

I solve this with a browser emulation that does not use HTTP for requests
but instead emulates ZPublisher.Publish.publish and therefore
can handle exceptions itself. It somehow looks like this:

  def _internalRequest(self, path, query, method, headers, request_params,
   catch_exc, response,
   ):
'''perform a request against the internal *url*.'''
from Zope import zpublisher_exception_hook as err_hook
from Zope import zpublisher_validated_hook as validated_hook
try:
  # Note: we should use the checkpoint feature, new in ZODB 3.3
  #  Unfortunately, we still use ZODB 3.2...
  #  Without this feature, we cannot reliably undo the effects
  #  of failed requests (we try with subtransactions)
  request = self._makeRequest(path, query, method, headers, request_params)
  zope_response = request.response
  object = request.traverse(request['PATH_INFO'].strip(),
validated_hook=validated_hook,
)
  result=mapply(object, request.args, request,
call_object,1,
missing_name,
dont_publish_class,
request, bind=1,
)
  if result is not zope_response: zope_response.setBody(result)
  get_transaction().commit(1)
except:
  try:
# Probably, we need special treatment for 'raise redirect'
if not catch_exc or err_hook is None: raise
response._setException()
# we learned from Malcolm that 'err_hook' always raises an exception
try:
  zope_response = err_hook(request['PARENTS'][0], *exc_info())
except:
  # Note: we do not handle Retry (as it is very unlikely)
  zope_response.exception(*exc_info())
  finally: get_transaction().abort(1)
response._setFromZope(zope_response)



-- 
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] XUF and Postgres

2005-07-14 Thread David Pratt
Thanks Dieter. I was really hoping it is a good solution since it is 
the only User Folder product for Postgres that I have seen thus far.


Regards
David

On Thursday, July 14, 2005, at 06:49 PM, Dieter Maurer wrote:


David Pratt wrote at 2005-7-14 12:46 -0300:

I am looking at using the ExUserFolder with Postgres.  Any users of
this combination that could share feedback (positive or negative) on
how this solution is working for them.


We use it and are satisfied with it.

--
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] Product logging to Postgres

2005-07-14 Thread David Pratt

On Thursday, July 14, 2005, at 05:40 PM, Dieter Maurer wrote:


David Pratt wrote at 2005-7-12 10:44 -0300:

I am wanting to log a product to postgres database. I want to write to
the log from my Script Python methods (in skins) when certain actions
occur. The product itself uses a number of zsql methods.  Can I import
existing zope logging classes in my Script Python


You can import them as soon as you execute the necessary security
declarations (-- PythonScripts -- README).


Hi Dieter.  I realize that external methods are needed in most cases to 
import into a Script Python.
I was hoping perhaps logging might be one of the classes that could be 
imported without going to external methods.





to to this


In order to let Zope's logging classes log to postgres, you
will need to implement a new log handler that does this...


Thanks.  I guess my big decision with this was whether I ought to use 
what already exists in Zope or use python's logging class.  Either way 
I have to write something to handle, store, retrieve the logs for sure.



Regards,
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] Helpdesk/Call Logging in Plone

2005-07-14 Thread Chris Withers

Adam Acord wrote:
I'm looking for ideas on how to implement a call logging/helpdesk  
ticketing system utilizing Plone.  


Why? For any kind of real load at a helpdesk, Plone is totally the wrong 
solution for scalability reasons.


I'm not looking for anything sophisticated, but useful.  I also saw a  
posting on the sf list that mentioned mailmanager, so I'm looking  
into that, too.


I'd certainly try MailManager 2.0, it's built to handle the kind of 
loads you're likely to experience here...


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 )