RE: [Zope3-Users] Mail
Hi David Zope uses a mail queue folder for "Mail Delivery" utilities. Take a look at the z3.log there sould ba a log entry for the undelivery mail. Just delete the mail in this mail queue folder. Regards Roger Ineichen Projekt01 GmbH www.projekt01.ch _ END OF MESSAGE > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of David Johnson > Sent: Thursday, January 12, 2006 11:14 PM > To: zope3-users@zope.org > Subject: [Zope3-Users] Mail > > My zope server is trying to send me mail and failing, but I'm > not sure why or how to stop it. Any ideas? > > > > 2006-01-12T16:12:36 ERROR QueueProcessorThread Error while > sending mail from [EMAIL PROTECTED] to djohnson. > > Traceback (most recent call last): > > File "/home/djohnson/Zope3/src/zope/app/mail/delivery.py", > line 194, in run > > self.mailer.send(fromaddr, toaddrs, message) > > File "/home/djohnson/Zope3/src/zope/app/mail/mailer.py", > line 45, in send > > connection.sendmail(fromaddr, toaddrs, message) > > File "/usr/lib/python2.4/smtplib.py", line 688, in sendmail > > raise SMTPRecipientsRefused(senderrs) > > SMTPRecipientsRefused: {'djohnson': (501, ': > recipient address must contain a domain')} > > > > > > -- > > David Johnson > > [EMAIL PROTECTED] > > 201 Main Street Suite 1320 > > Fort Worth, TX 76102 > > (877) 572-8324 x2200 > > > > ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Mail
David Johnson wrote: My zope server is trying to send me mail and failing, but I’m not sure why or how to stop it. Any ideas? (...snip...) SMTPRecipientsRefused: {'djohnson': (501, ': recipient address must contain a domain')} This gives a rather clear explanation I suppose. The straightforward approach would be to either change the address Zope is sending this mail to or configure sendmail to allow domain-less "To" addresses. Best regards, Pawel ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Mail
My zope server is trying to send me mail and failing, but I’m not sure why or how to stop it. Any ideas? 2006-01-12T16:12:36 ERROR QueueProcessorThread Error while sending mail from [EMAIL PROTECTED] to djohnson. Traceback (most recent call last): File "/home/djohnson/Zope3/src/zope/app/mail/delivery.py", line 194, in run self.mailer.send(fromaddr, toaddrs, message) File "/home/djohnson/Zope3/src/zope/app/mail/mailer.py", line 45, in send connection.sendmail(fromaddr, toaddrs, message) File "/usr/lib/python2.4/smtplib.py", line 688, in sendmail raise SMTPRecipientsRefused(senderrs) SMTPRecipientsRefused: {'djohnson': (501, ': recipient address must contain a domain')} -- David Johnson [EMAIL PROTECTED] 201 Main Street Suite 1320 Fort Worth, TX 76102 (877) 572-8324 x2200 ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Radius Server
On Thursday 12 January 2006 12:01, David Johnson wrote: > Does anyone use Zope as an authentication server? Specifically for Radius > clients? In Zope 3 not that I am aware of. Until the 3.2 release it was not easy to add new network protocols to Zope. Now that we are using twisted this might be easier. Maybe there is already a twisted Radius server Module you could use? > Are there products out there for this? I see Radius client > packages. Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Zope 3.2 Twisted FTP broken?
I've read nothing in the changelog... it's a bug? I'm logging in with the Manager account defined in the zcml... And nothing is beint logged on the console or log files... C:\>ftp localhost Connected to gondolin. 220 Twisted 2.1.0 FTP Server User (gondolin:(none)): sysadmin 331 Password required for sysadmin. Password: 230 User logged in, proceed ftp> cd / 250 Requested File Action Completed OK ftp> dir 200 PORT OK 550 /: Permission denied. ftp> cd /articoli_uk 250 Requested File Action Completed OK ftp> dir 200 PORT OK 550 /articoli_uk: Permission denied. --- Paolo Invernizzi ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] More MySQL
On Thu, Jan 12, 2006 at 09:31:03AM -0500, Wade Leftwich wrote: > I use Ubuntu (derived from Debian), and while I appreciate Brian > Sutherland's fine work to provide a Debian package for Zope 3, I have Er, just let me correct that. I have only done a very small amount of work on the Debian zope3 package. You should rather be thanking Matthias Klose, or Fabio Tranchitella. I am just more visible in the Zope community than they are. -- Brian Sutherland Metropolis - "it's the first movie with a robot. And she's a woman. And she's EVIL!!" ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Radius Server
Does anyone use Zope as an authentication server? Specifically for Radius clients? Are there products out there for this? I see Radius client packages. -- David Johnson [EMAIL PROTECTED] 201 Main Street Suite 1320 Fort Worth, TX 76102 (877) 572-8324 x2200 ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] More MySQL
David Johnson wrote: Thanks to everyone for the MySQL assistance. We use Debian and I just installed the python-mysqlda (seems obvious in retrospect). In any case, after I install the python adapater, I get the following when starting zope: ConfigurationError: ('Invalid value for', 'menu', "ImportError: Couldn't import add_connection, No module named add_connection") I think there used to be an "add_connection" menu provided by zope.app.rdb, and I imagine it had a purpose for ttw development. It's gone as of Zope 3.2 (maybe earlier), so what has worked for me is commenting-out or removing the configuration in mysqldbda/configure.zcml: BTW, psycopgda has a similar configuration entry, and might need the same fix. -Jim Washington ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] More MySQL
David Johnson wrote: > Thanks to everyone for the MySQL assistance. We use Debian and I just > installed the python-mysqlda (seems obvious in retrospect). > > > > In any case, after I install the python adapater, I get the following > when starting zope: > > > > ConfigurationError: ('Invalid value for', 'menu', "ImportError: Couldn't > import add_connection, No module named add_connection") > David, I'm pretty sure the Debian python-mysqlda package is specific to Zope 2. I use Ubuntu (derived from Debian), and while I appreciate Brian Sutherland's fine work to provide a Debian package for Zope 3, I have found it quite easy to download the Zope 3 source from zope.org, build it and install it in its own directory. If you do that, you will have an installation like that of most everybody on this list, so good advice will be easier to come by. It's been a few months since I played with MySQL in Zope 3, but it did work. -- Wade Leftwich ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Permissions of a given object
Hi, On Thu, Jan 12, 2006 at 07:19:02AM -0500, Stephan Richter wrote: [snip] > > But canAccess never fails here - even if the object is inaccessible. > > canAccess() returns a boolean unless there is no security declaration at all. I changed the code fragement to for obj in catalog.searchResults(content=searchquery): view=zapi.queryMultiAdapter((obj,self.request),name='view.html') if canAccess(view,'__call__'): search_results.append(obj) else: """object inaccessible""" but the problem remains: canAccess returns True for all inaccessible objects. Regards, Frank ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] More MySQL
Thanks to everyone for the MySQL assistance. We use Debian and I just installed the python-mysqlda (seems obvious in retrospect). In any case, after I install the python adapater, I get the following when starting zope: ConfigurationError: ('Invalid value for', 'menu', "ImportError: Couldn't import add_connection, No module named add_connection") -- David Johnson [EMAIL PROTECTED] 201 Main Street Suite 1320 Fort Worth, TX 76102 (877) 572-8324 x2200 ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Permissions of a given object
On Thursday 12 January 2006 07:01, Frank Burkhardt wrote: > for obj in catalog.searchResults(content=searchquery): > view=zapi.queryMultiAdapter((obj,self.request),name='view.html') > try: > canAccess(view,'__call__') > search_results.append(obj) > except: > """object inaccessible""" > > But canAccess never fails here - even if the object is inaccessible. canAccess() returns a boolean unless there is no security declaration at all. Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Permissions of a given object
Hi, On Thu, Dec 15, 2005 at 10:27:00AM +0100, Dominik Huber wrote: > Frank Burkhardt wrote: > > >Hi, > > > >when I search using a catalog, I get a list of persistent objects > >but maybe there are objects among them, the calling user > >doesn't have permissions for. > > > >How do I check, if the current user (the one calling the view > >which queries the catalog) is allowed to view an object? > > > zope.security.checker.canAccess and .canWrite Thank you, Dominik. Unfortunately I'm not able to connect all the puzzle pieces. I would like to test, if the current principal is allowed to access the defaultview of an object ('obj'). This is what I try: for obj in catalog.searchResults(content=searchquery): view=zapi.queryMultiAdapter((obj,self.request),name='view.html') try: canAccess(view,'__call__') search_results.append(obj) except: """object inaccessible""" But canAccess never fails here - even if the object is inaccessible. I've got 2 questions: * How do I securityproxy an object like 'view' or is there another way to test, if the current principal is allowed to access the object? * How doI determine the name of the browser:defaultView configured via ZCML? Regards, Frank ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] MySQL
David Johnson wrote: > I recently tried to add the MySQL Package. I’m not sure if this is the > proper list for this question. > > I added the package according to: > http://www.zope.org/DevHome/Wikis/DevSite/Projects/ComponentArchitecture/AddonPackageInstall > > When I go into my zope instance (/home/djohnson/zope3-instance): > >ImportError: No module named MySQLdb > > What am I missing? > Sounds like you're missing the MySQLdb module. The Zope MySQL package relies on this module already being present. You can get it at http://sourceforge.net/projects/mysql-python -- Wade ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users