Re: [Zope] converting Dictionary to Result

2006-06-19 Thread Tino Wildenhain
Alric Aneron wrote: > Hello, > I have a dictionary object and a result set object (that was returned > from a ZSQL method). Is there any way I can merge them into one > variable and use them in a dtml-in statement? You should know which one should update which one. So assuming your dictionary ha

Re: [Zope] dictionary from sequence-item

2006-06-19 Thread David H
Alric Aneron wrote: Hello, I am looping through a list of dictionary objects using and within the dtml-in body I have: Some of the dictionaries in the list don't have 'titled' key so it should replace it with the word "none", but it gives me an error Error Type: KeyError Error Value: 'tit

Re: [Zope] dictionary from sequence-item

2006-06-19 Thread Alric Aneron
Thanks,I tried your suggestion Jonathan and I get this:Error Type: AttributeError Error Value: has_keyThanks anyway.I never used ZPT, I'm not sure how to approach it from that angle...would it be easy to do?  (You mean tal and metal right?)Anyone have any other suggestions?ThanksJonathan <[EM

Re: [Zope] dictionary from sequence-item

2006-06-19 Thread Jonathan
It might make your life easier if you used a dtml-let (WARNING: untested):         do something here     But this is still pretty ugly.  Another approach would be to clean up the data in your list/dicts within the python script, before you get to the dtml method.     Jonathan

[Zope] dictionary from sequence-item

2006-06-19 Thread Alric Aneron
Hello,I am looping through a list of dictionary objects using and within the dtml-in body I have:Some of the dictionaries in the list don't have 'titled' key so it should replace it with the word "none", but it gives me an errorError Type: KeyError Error Value: 'titled' I don't understand.  A

Re: [Zope] converting Dictionary to Result

2006-06-19 Thread Jonathan
You could try something like:   contents of myscript():mydict = {'key1': 'value1', 'key2': 'value2'}mydict2 = {'key1': 'value3', 'key2': 'value4'} rList = [] for item in mydict.keys():   rList.append( (item, mydict1[item]) )for item in mydict2.keys():   rList.append( (item, mydict2[item]) )r

Re: [Zope] converting Dictionary to Result

2006-06-19 Thread Alric Aneron
Thanks,Here is what I'm trying to do:Let's say:contents of myscript():mydict = {'key1': 'value1', 'key2': 'value2'}mydict2 = {'key1': 'value3', 'key2': 'value4'}finalList = [mydict, mydict2]return finalListWhen I do this in a dtml-method:   This will not return me this:value1value2It gives me a ke

Re: [Zope] converting Dictionary to Result

2006-06-19 Thread Andreas Jung
--On 19. Juni 2006 09:16:23 -0700 Alric Aneron <[EMAIL PROTECTED]> wrote: Hello, I have a dictionary object and a result set object (that was returned from a ZSQL method). Is there any way I can merge them into one variable and use them in a dtml-in statement? result sets have a dictiona

[Zope] converting Dictionary to Result

2006-06-19 Thread Alric Aneron
Hello,I have a dictionary object and a result set object (that was returned from a ZSQL method).  Is there any way I can merge them into one variable and use them in a dtml-in statement?Thanks in advance. Yahoo! Sports Fantasy Football ’06 - Go with the leader. Start your league today! _

[Zope] load balancing ftp over ZEO clients

2006-06-19 Thread Reinoud van Leeuwen
Hi, We have an intranet that has a ZEO setup. For http and webdav there are even fronproxies installed which are loadbalanced though a Alteon server. (yes it is kind of an overkill setup but we wanted to get some experience with such a setup for future projects). We now would like to rollout ft

[Zope] Re: SSL Redirect for CookieCrumbler

2006-06-19 Thread Josef Meile
Hi Chris, I need to redirect all my http requests to the login_form of the CookieCrumble to https, so, I wrote this rule in apache: Why bother? Just because the form is secure doesn't make cookie authentication any more secure. Yes, you're right. That is exactly the conclusion I also figured

Re: [Zope] SSL Redirect for CookieCrumbler

2006-06-19 Thread Chris Withers
Josef Meile wrote: I need to redirect all my http requests to the login_form of the CookieCrumble to https, so, I wrote this rule in apache: Why bother? Just because the form is secure doesn't make cookie authentication any more secure. Do you say in https once authenticated? cheers, Chris

Re: [Zope] acl_users in MySQL

2006-06-19 Thread Chris Withers
Cliff Ford wrote: Suggestion: have a look at exUserFolder. It has a MySQL Authentication Source. The minimum requirement is a table with Username, Password and Roles fields. I think you'll actually find SimpleUserFolder much easier and more flexible for this specific requirement: http://www

Re: [Zope] questions on multilingual sites

2006-06-19 Thread Chris Withers
John Schinnerer wrote: Can additional language support be added in later, or is it necessary to build it all in from the start (even if not used yet)? Once you've done it properly for one language, all you need to do is add in more translations. Doing thefirst one you can do at any point in

Re: [Zope] data type

2006-06-19 Thread George
On 6/19/06, George <[EMAIL PROTECTED]> wrote: On 6/19/06, Andreas Jung < [EMAIL PROTECTED]> wrote: --On 19. Juni 2006 15:11:42 +0300 George <[EMAIL PROTECTED]> wrote:> How can I find a variable's data type in dtml? >> Sorry if it's sth obvious, thx in advance! There is only the same_type() method a

Re: [Zope] data type

2006-06-19 Thread George
On 6/19/06, Andreas Jung <[EMAIL PROTECTED]> wrote: --On 19. Juni 2006 15:11:42 +0300 George <[EMAIL PROTECTED]> wrote:> How can I find a variable's data type in dtml?>> Sorry if it's sth obvious, thx in advance! There is only the same_type() method available. Perhaps instance() butyou can't use th

Re: [Zope] data type

2006-06-19 Thread Andreas Jung
--On 19. Juni 2006 15:11:42 +0300 George <[EMAIL PROTECTED]> wrote: How can I find a variable's data type in dtml? Sorry if it's sth obvious, thx in advance! There is only the same_type() method available. Perhaps instance() but you can't use the type() method of Python for security reason

[Zope] data type

2006-06-19 Thread George
How can I find a variable's data type in dtml? Sorry if it's sth obvious, thx in advance! ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mail

Re: [Zope] manage_changeProperties has strange side effect on response Content-Type.

2006-06-19 Thread Gaute Amundsen
On Friday 16 June 2006 20:28, Dieter Maurer wrote: > Gaute Amundsen wrote at 2006-6-16 13:05 +0200: > >All my pages normally have a content-type of ISO-8859-1 > >I have not spent much thought on this, it has just worked nicely like > > that. > > > >Today I had a page that called a python script, th