Re: [Zope] utilities @ the site level

2009-12-30 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jim Pharis wrote: > So createObject does look in the context of the current site. My issue was > somewhere else. I'm still interested to know if you can register utilities > at the site level in ZCML though. No: ZCML is only used to populate the "glo

Re: [Zope] utilities @ the site level

2009-12-30 Thread Jim Pharis
So createObject does look in the context of the current site. My issue was somewhere else. I'm still interested to know if you can register utilities at the site level in ZCML though. On Wed, Dec 30, 2009 at 3:22 PM, Jim Pharis wrote: > I should clarify that createobject is failing with a Compon

Re: [Zope] Change admin's password

2009-12-30 Thread Lennart Regebro
On Wed, Dec 30, 2009 at 19:45, iarly selbir | ski0s wrote: > A bit I forgot mentions, my Zope is using relstorage to store all data on > MySQL Good. Then the answer I gave you from the start still is the correct one. -- Lennart Regebro: Python, Zope, Plone, Grok http://regebro.wordpress.com/ +3

Re: [Zope] utilities @ the site level

2009-12-30 Thread Jim Pharis
I should clarify that createobject is failing with a ComponentLookupError. On Wed, Dec 30, 2009 at 2:45 PM, Jim Pharis wrote: > > Can I register utilities at the site level in zcml? And once I have the > local utility registered, how do I pass that site manager context to my > browser/forms so I

[Zope] utilities @ the site level

2009-12-30 Thread Jim Pharis
Can I register utilities at the site level in zcml? And once I have the local utility registered, how do I pass that site manager context to my browser/forms so I can do things like createObject. createObject seems to fail because it can't find the utility, but I think that's because its not lookin

Re: [Zope] Change admin's password

2009-12-30 Thread iarly selbir | ski0s
A bit I forgot mentions, my Zope is using relstorage to store all data on MySQL, = ), below is the tables for database that some instance uses mysql> show tables; +---+ | Tables_in_mydb | +---+ | current_object| | new_oid | | object_ref| | ob

Re: [Zope] Change admin's password

2009-12-30 Thread Lennart Regebro
On Wed, Dec 30, 2009 at 18:29, iarly selbir | ski0s wrote: > sorry, if I don't explained right > > through /manager/acl_users I can change users passwords, right? Yes. > I'm trying to find out how to do it by command line You can't, unless you write a custom command for it, which is likely to b

Re: [Zope] Change admin's password

2009-12-30 Thread Lennart Regebro
On Wed, Dec 30, 2009 at 17:14, iarly selbir | ski0s wrote: > I guess when Zope store data at mysql, isn't a simple UPDATE TABLE set > Password... Well why not? > heh did you already take a look on tables created by zope on > MySQL Zope itself doesn't create *any* tables in MySQL. As mentioned,

[Zope] Zope developers in local government or with transparency/participation projects

2009-12-30 Thread Steven Clift
We are gathering software developers interested in local government transparency and community participation here: http://e-democracy.org/locallabs It is a new e-list/online group. It would be great to have a healthy Zope contingent among us. Steven Clift E-Democracy.org

Re: [Zope] Change admin's password

2009-12-30 Thread iarly selbir | ski0s
sorry, if I don't explained right through /manager/acl_users I can change users passwords, right? I'm trying to find out how to do it by command line Regards, - - iarly selbir | ski0s :wq! On Wed, Dec 30, 2009 at 2:20 PM, Justin Dunsworth < justin.dunswo...@gmail.com> wrote: > If you are wa

Re: [Zope] Change admin's password

2009-12-30 Thread Justin Dunsworth
If you are wanting to update a password on a MySQL table then yes, a simple 'UPDATE TABLE users SET password = 'newpass' WHERE username = 'admin';" will work. If you are wanting it in MD5 digest form just use "SET password = MD5('newpass')" As Lennart mentioned, if you are using multiple databases

Re: [Zope] Change admin's password

2009-12-30 Thread iarly selbir | ski0s
someone experienced in that? Regards, - - iarly selbir | ski0s :wq! On Wed, Dec 30, 2009 at 1:14 PM, iarly selbir | ski0s wrote: > I guess when Zope store data at mysql, isn't a simple UPDATE TABLE set > Password... heh did you already take a look on tables created by zope on > MySQL and as i

Re: [Zope] Change admin's password

2009-12-30 Thread iarly selbir | ski0s
I guess when Zope store data at mysql, isn't a simple UPDATE TABLE set Password... heh did you already take a look on tables created by zope on MySQL and as it store the objects... ? is slightly different we know Regards, - - iarly selbir | ski0s :wq! On Wed, Dec 30, 2009 at 1:07 PM, Lennart R

Re: [Zope] Change admin's password

2009-12-30 Thread Lennart Regebro
On Wed, Dec 30, 2009 at 14:27, iarly selbir | ski0s wrote: > No, I'm using MySQL as database.. Well if you are storing your users in MySQL, then change the password in that table. Done! > I have to browse to http://hostname:port/manager and change them ( for each > instance ) If the instances u

Re: [Zope] Change admin's password

2009-12-30 Thread iarly selbir | ski0s
No, I'm using MySQL as database.. there are some solution for it? currently I have to browse to http://hostname:port/manager and change them ( for each instance ) Regards, - - iarly selbir | ski0s :wq! On Wed, Dec 30, 2009 at 9:40 AM, Lennart Regebro wrote: > On Wed, Dec 30, 2009 at 13:13, i

Re: [Zope] Change admin's password

2009-12-30 Thread Lennart Regebro
On Wed, Dec 30, 2009 at 13:13, iarly selbir | ski0s wrote: > There are some command to change admin's password, in my env I have a server > with many instances and I need change it for all > Thanks in advance for some tip. You can add new admin users with "{instance} adduser username password". w

[Zope] Change admin's password

2009-12-30 Thread iarly selbir | ski0s
There are some command to change admin's password, in my env I have a server with many instances and I need change it for all Thanks in advance for some tip. Regards, - - iarly selbir | ski0s :wq! ___ Zope maillist - Zope@zope.org https://mail.zope