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
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
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
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
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
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
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
--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
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! _
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
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
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
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
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
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
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
--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
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
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
19 matches
Mail list logo