Re: [Zope] How can I reset zope time???

2007-03-22 Thread robert rottermann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jens Vagelpohl schrieb: > > On 23 Mar 2007, at 07:41, Flemming Bjerke wrote: But, now, not only have all my changes the date 12/12-2007 in the undo history, every object I have changed gets this date as well! Apparently, zope won't acce

Re: [Zope] How can I reset zope time???

2007-03-22 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 23 Mar 2007, at 07:41, Flemming Bjerke wrote: But, now, not only have all my changes the date 12/12-2007 in the undo history, every object I have changed gets this date as well! Apparently, zope won't accept to go backward in time. How do I rese

[Zope] Help me some error when I complie Zope!

2007-03-22 Thread Duc Toan
I'm using WindowsXP, Python 2.4.3, Visual Studio 2005. When I complie Zope 2.9.6 from source, it alway alert: running build_ext creating zope.proxy copying zope/proxy\proxy.h -> zope.proxy error: The .NET Framework SDK needs to be installed before building extensions for Python. NMAKE : fatal err

Re: [Zope] How can I reset zope time???

2007-03-22 Thread Flemming Bjerke
On Thu, 22 Mar 2007 17:46:31 +0100 Jens Vagelpohl <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > On 22 Mar 2007, at 17:11, flem wrote: > > > Through a zwiki a spammer proxied some information though a zope > > server using zwiki's comments (be aware!). The

Re: [Zope] Re: How can I get all roles defined

2007-03-22 Thread Josh Burvill
def get_roles(): from AccessControl.Role import RoleManager rs=RoleManager().userdefined_roles() return rs i tried this in an external method but i only get: ('Anonymous', 'Authenticated', 'Manager', 'Owner') and not all the roles i have defined in the folder. I also tried the methods: get

[Zope] Re: How can I get all roles defined

2007-03-22 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Josh Burvill wrote: > Hi everyone, > > I need to get all the roles that are defined in the security tab of a > particular folder. > > I know how to get all roles that a user has got, but cannot find the above. > > Thanks, Josh AccessControl/Role.py

[Zope] How can I get all roles defined

2007-03-22 Thread Josh Burvill
Hi everyone, I need to get all the roles that are defined in the security tab of a particular folder. I know how to get all roles that a user has got, but cannot find the above. Thanks, Josh ___ Zope maillist - Zope@zope.org http://mail.zope.org/mai

Re: [Zope] can I use incremental search without managable Indexes ?

2007-03-22 Thread Dieter Maurer
joachim wrote at 2007-3-21 19:06 +0100: > ... >I want to use Dieter Maurers incremental search. Can I do this without >using his managable indexes ? You need to use indexes that are willing to use "IncrementalSearch" (you should use "IncrementalSearch2" in fact, as the "or" is too slow for "Increm

[Zope] Re: CorpCalendar 1.4 and 1.7 issues

2007-03-22 Thread Josef Meile
Now I just need to look at the Zope Book to see what the changes to the security declarations are so the lines below will quit showing up in my event.log. -- 2007-03-22T14:10:44 WARNING Init Class Products.CorpCalendar.CorpCalendar.CorpCalendar has a security declaration for nonexistent

Re: [Zope] CorpCalendar 1.4 and 1.7 issues

2007-03-22 Thread Thomas Bennett
Thanks, that even now lets me edit and also add to the CorpCalendars I exported from the older Zope and CC product. Now I just need to look at the Zope Book to see what the changes to the security declarations are so the lines below will quit showing up in my event.log. In the meantime I'm

Re: [Zope] CorpCalendar 1.4 and 1.7 issues

2007-03-22 Thread Andreas Jung
--On 22. März 2007 14:09:00 -0400 Thomas Bennett <[EMAIL PROTECTED]> wrote: Long story short: Is it appropriate to change self.REQUEST.AUTHENTICATED_USER.name to self.REQUEST.REMOTE_USER ? Using AUTHENTICATED_USER isn't recommended (since ages). You should always use the SecurityMana

[Zope] CorpCalendar 1.4 and 1.7 issues

2007-03-22 Thread Thomas Bennett
Long story short: Is it appropriate to change self.REQUEST.AUTHENTICATED_USER.name to self.REQUEST.REMOTE_USER ? It appears to work but I'm not sure if there may be repercussions on this. Thomas Long story: I had to make the change in getUserVariable(self, key, default=None) to view eve

Re: [Zope] How can I reset zope time???

2007-03-22 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 22 Mar 2007, at 17:11, flem wrote: Through a zwiki a spammer proxied some information though a zope server using zwiki's comments (be aware!). The spammer had dated his ip-packets 11/12-2007. And all my changes got the same date! So, I coul

[Zope] context.user at ImplPython.py

2007-03-22 Thread Garito
Hi! I debug ImplPython.py to try to understand why my code don't work ok If you remember my last threat I wonder why some actions marked as Manager execute ok but other not You could refresh your mind about it at: http://archives.free.net.ph/message/20070312.184003.211597ad.en.html When validate

[Zope] How can I reset zope time???

2007-03-22 Thread flem
Through a zwiki a spammer proxied some information though a zope server using zwiki's comments (be aware!). The spammer had dated his ip-packets 11/12-2007. And all my changes got the same date! So, I couldn't shrink all the undo actions though the database shrinker (later I found out that shoul

Re: [Zope] dtml Z SQL doubt

2007-03-22 Thread Paul Winkler
On Thu, Mar 22, 2007 at 08:11:21AM -0400, Allen Schmidt Sr. wrote: > Just use REPLACE instead of INSERT. > If REPLACE statement is able to determine a unique value for a row and > sees that that unique value exists for a row, the valued will be > updated. If it does not exist, a new row will be i

Re: [Zope] Re: open image in a fitted new window

2007-03-22 Thread Tino Wildenhain
Tres Seaver schrieb: ... The only trick here is to get the javascript to include the "dynamic" URL; everything else is not specific to Zope or ZPT. Here is the hack I usually use for that:: Your popup javascript can then refer to the 'img_url' JS variable to set the window location.

[Zope] Re: open image in a fitted new window

2007-03-22 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alan wrote: > Thanks Jonathan, I can understand your point. So I will google for a > way (example/tutorial) of how integrating javascript in a zpt. > > Cheers, > Alan > > On 22/03/07, Jonathan <[EMAIL PROTECTED]> wrote: >> - Original Message

Re: [Zope] open image in a fitted new window

2007-03-22 Thread Alan
Thanks Jonathan, I can understand your point. So I will google for a way (example/tutorial) of how integrating javascript in a zpt. Cheers, Alan On 22/03/07, Jonathan <[EMAIL PROTECTED]> wrote: - Original Message - From: "Alan" <[EMAIL PROTECTED]> To: "Maciej Wisniowski" <[EMAIL PROTEC

Re: [Zope] open image in a fitted new window

2007-03-22 Thread Jonathan
- Original Message - From: "Alan" <[EMAIL PROTECTED]> To: "Maciej Wisniowski" <[EMAIL PROTECTED]> Cc: Sent: Thursday, March 22, 2007 9:01 AM Subject: Re: [Zope] open image in a fitted new window The answer to your question is Yes if there's no other way of clicking on a link and ope

Re: [Zope] open image in a fitted new window

2007-03-22 Thread Alan
The answer to your question is Yes if there's no other way of clicking on a link and open an image in a fitted new window of my browser that zope can cope without using javascript. But putting in other words what I really would like to know: does zope have its own way of clicking on a link and op

Re: [Zope] open image in a fitted new window

2007-03-22 Thread Maciej Wisniowski
> I was wondering how to once clicking on a image (thumbnail) I would > get the full-size image in a fitted new window, without buttons, > address field etc. I can realise how to do it with javascript but I > don't know, if it's the only way, how to integrate javascript in a > zpt. A example/tutor

Re: [Zope] mass editing timeout problem

2007-03-22 Thread Jonathan
- Original Message - From: "Allen Huang" <[EMAIL PROTECTED]> To: "Zope" Sent: Thursday, March 22, 2007 5:06 AM Subject: [Zope] mass editing timeout problem I made a python product for a photo album and I have store a lot of pictures. But the problem arise when I have too many pictur

Re: [Zope] dtml Z SQL doubt

2007-03-22 Thread Allen Schmidt Sr.
Just use REPLACE instead of INSERT. If REPLACE statement is able to determine a unique value for a row and sees that that unique value exists for a row, the valued will be updated. If it does not exist, a new row will be inserted. This is what I use with MySQL. Allen Tino Wildenhain wrote:

[Zope] open image in a fitted new window

2007-03-22 Thread Alan
Dears, I was wondering how to once clicking on a image (thumbnail) I would get the full-size image in a fitted new window, without buttons, address field etc. I can realise how to do it with javascript but I don't know, if it's the only way, how to integrate javascript in a zpt. A example/tutoria

[Zope] Re: mass editing timeout problem

2007-03-22 Thread Laurence Rowe
Use Firefox, it won't time out. Nothing happened when the browser timed out because the web server had no way of knowing the browser had timed out. Laurence Allen Huang wrote: I made a python product for a photo album and I have store a lot of pictures. But the problem arise when I have too

Re: [Zope] Addressbook Product

2007-03-22 Thread Frank-braucht-Hilfe
Hi, tahnk you for your answer Mihamina. hmm, i've seen this product you proposed, but i looked somewhat to basic to me and I am running cps and havent found anything about combining cps and plone yet, so I had no easy test possibility. LDAP sounds great, the more I look for an solution the more

Re: [Zope] dtml Z SQL doubt

2007-03-22 Thread Tino Wildenhain
Remil Mathew schrieb: Hi all, I need to insert a row to mysql table if the corresponding data not exist, if it exist i need to update the row. Can we do it using a single Z SQL method. Well thats not business of ZSQL methods but rather stuff you do with the instruments of your database. Sa

[Zope] mass editing timeout problem

2007-03-22 Thread Allen Huang
I made a python product for a photo album and I have store a lot of pictures. But the problem arise when I have too many pictures of high resoution that taken up too much hdd space so I have written some codes in dtml and python to resize and reduces each image size in zodb without download any p

Re: [Zope] dtml Z SQL doubt

2007-03-22 Thread Maciej Wisniowski
> Hi all, > > I need to insert a row to mysql table if the corresponding data not > exist, if it exist i need to update the row. > > Can we do it using a single Z SQL method. Yes, if your ZSQL will call stored procedure that will handle this logic. Otherwise, I think you can't (but I might be wro