Hi all!
Is it possible to use tal:attributes with a dictionary or something like
this?
I would like to change/add attributes to a HTML object in a list or a dict
like:
http://blogs.sistes.net/Garito', 'target': '_blank', 'myCustomAttribute':
'Value1'}
http://www.sistes.net"; tal:attributes='atr
Cameron Beattie wrote:
Thanks. I'm using a web service which returns the list.
What do the calls to this web service look like?
I resolved the
problem by iterating through the returned list and populating a new
list. I'm sure there's a better way, I just couldn't figure it out.
Indeed :-
David H wrote:
# python script
# input: a tuple named tup of index items to include in list of lists,
eg (1,3) and the list of lists
#example input: listoflists = [[61282125371L, 1, 6, 0], [61282125379L,
1, 6, 0], [61282825240L, 6, 6, 0]]
#example tup: (1,3)
ret = []
for i in range(len(li
David H wrote:
# python script
# input: a tuple named tup of index items to include in list of lists,
eg (1,3) and the list of lists
#example input: listoflists = [[61282125371L, 1, 6, 0], [61282125379L,
1, 6, 0], [61282825240L, 6, 6, 0]]
#example tup: (1,3)
ret = []
for i in range(len(list
David H wrote:
Paul Winkler wrote:
On Wed, Dec 14, 2005 at 06:06:21PM +1300, Cameron Beattie wrote:
I am trying to get my head around representing a list in a page template.
Assume the following list:
m
Paul Winkler wrote:
On Wed, Dec 14, 2005 at 06:06:21PM +1300, Cameron Beattie wrote:
I am trying to get my head around representing a list in a page template.
Assume the following list:
m
[[61282125371L, 1, 6,
On Wed, Dec 14, 2005 at 06:06:21PM +1300, Cameron Beattie wrote:
> I am trying to get my head around representing a list in a page template.
>
> Assume the following list:
> >>>m
> [[61282125371L, 1, 6, 0], [61282125379L, 1, 6, 0], [61282825240L, 6, 6, 0],
> [61282125378L, 1, 6, 0], [61282125374L
I am trying to get my head around representing a list in a page template.
Assume the following list:
m
[[61282125371L, 1, 6, 0], [61282125379L, 1, 6, 0], [61282825240L, 6, 6, 0],
[61282125378L, 1, 6, 0], [61282125374L, 1, 6, 0]
m[0]
[61282125371L, 1, 6, 0]
m[0][0]
61282125371L
i.e. m is a
Allen Huang wrote:
I have a fold and I used objectValues['Image'] to make a array list of
images. I have rename each image using AUTHENTICATED_pic.jpg and want to
use an if statement to find the image with the same name in the array
list. Can someone tell how?? Is there a findObject function or
--On Samstag, 7. Mai 2005 19:52 Uhr -0700 Allen Huang <[EMAIL PROTECTED]>
wrote:
I have a fold and I used objectValues['Image'] to make a array list of
images. I have rename each image using AUTHENTICATED_pic.jpg and want to
use an if statement to find the image with the same name in the array
l
I have a fold and I used objectValues['Image'] to make a array list of images. I have rename each image using AUTHENTICATED_pic.jpg and want to use an if statement to find the image with the same name in the array list. Can someone tell how?? Is there a findObject function or something??
Yahoo! M
On Mon, Jan 22, 2001 at 09:47:41PM +0300, Oleg Broytmann wrote:
> On Mon, 22 Jan 2001, Tim Cook wrote:
> > Is the list mailer sending duplicates or am I seeing double?
>
>Not only you. There are certainly dups in the list. May be it's our list
> manager's fault, may be someone (misconfigured
On Mon, 22 Jan 2001, Tim Cook wrote:
> Is the list mailer sending duplicates or am I seeing double?
Not only you. There are certainly dups in the list. May be it's our list
manager's fault, may be someone (misconfigured robot?) sends it back to
the list...
Oleg.
Oleg Broytmann h
Is the list mailer sending duplicates or am I seeing double?
-- Tim Cook, President --
Free Practice Management,Inc. | http://www.FreePM.com Office:
(901) 884-4126
"Nearly everyone will lie to you given the right
circumstances."
- Bill Clinton
___
On Wednesday 10 January 2001 10:04, Francois-regis Chalaoux wrote:
> It was a great idea to get the list of product sort on date in download
> zone. Today appears only categories and product annonced in news.
>
> So, is it a maintenance period or a stable presentation of products ?
There is a lin
It was a great idea to get the list of product sort on date in download zone.
Today appears only categories and product annonced in news.
So, is it a maintenance period or a stable presentation of products ?
FRC.
___
Zope maillist - [EMAIL PROTECTED
Alexander Chelnokov wrote:
>
> Hello All,
>
> A form contains data items ['firstname','secondname','dofb' etc]
> and some "service" fields ['submit','sid','form','nform'].
> With REQUEST.form.items() all these fields are included in a single
> list. How can another list be created from the list
Hello All,
A form contains data items ['firstname','secondname','dofb' etc]
and some "service" fields ['submit','sid','form','nform'].
With REQUEST.form.items() all these fields are included in a single
list. How can another list be created from the list which contains
only data fields? Is it pos
Hi all,
Thanks for the lots of correct answers. With a small modification (looking
up several python docs :-) ) all things worked!
Thanks in advance,
Tom.
At 13:06 03/10/2000 -0400, you wrote:
>Tom Deprez wrote:
>>
>> Hi,
>>
>> I'm storing a selection of a user to a database as string. This s
> > I'm storing a selection of a user to a database as string. This
selection
> > is a multiple selection from a select box and is outputted as a list.
> > Now I want to iterate over this list (after retrieving it from the
> > database), but how can I do this? How can I tell Zope that the string
Tom Deprez wrote:
>
> Hi,
>
> I'm storing a selection of a user to a database as string. This selection
> is a multiple selection from a select box and is outputted as a list.
> Now I want to iterate over this list (after retrieving it from the
> database), but how can I do this? How can I tell
If you want to put a string into a list you can use
to split a string up. What database are you using and what are actually
getting back?
- Original Message -
From: "Tom Deprez" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 03, 2000 9:15 A
Hi,
I'm storing a selection of a user to a database as string. This selection
is a multiple selection from a select box and is outputted as a list.
Now I want to iterate over this list (after retrieving it from the
database), but how can I do this? How can I tell Zope that the string is
actually
on 14/9/00 9:28 am, [EMAIL PROTECTED] at [EMAIL PROTECTED] wrote:
> Did you try this proposal posted yesterday ?
Yep, and I can't quite get it to work. I'm still trying though
tom
___
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman
Did you try this proposal posted yesterday ?
on Wednesday, September 13, 2000 tom smith wrote :
ts> I'm trying to create a list of users' emails. There is a
table called
ts> "tblUsers" and a field called "Email".
ts> I have created a sql method called "get_email(UserName)"
which works fine.
ts>
on Wednesday, September 13, 2000 tom smith wrote :
ts> I'm trying to create a list of users' emails. There is a table called
ts> "tblUsers" and a field called "Email".
ts> I have created a sql method called "get_email(UserName)" which works fine.
ts>
ts> ')">
ts> any ideas anyone?
Don't n
I'm trying to create a list of users' emails. There is a table called
"tblUsers" and a field called "Email".
I have created a sql method called "get_email(UserName)" which works fine.
')">
any ideas anyone?
thanks
tom
___
Vincent wrote:
>
>Part 1.1Type: Plain Text (text/plain)
>Encoding: 7bit
from your heirarchy ZClass B is contained in zclass A. and you're
looking for contained instances which is easy.
the dtml method in a (assuming a inherits from objectmanager)
_
Hi,
In a Zope folder, I have
:
- 1 instance of a
personnal ZClass A
- 10 or more instances of
ZClass B
- a DTML
document
I would like to call a DTML
method (which is implemented in the ZClass A) from the DTML document to display
a list of all instances names of ZClasse B
> William Joye wrote:
>
> > Hello,
> >
> > I'm a newbie in zope. I think is a simple problem but I can find a solution.
> > I would like to show 2 lists (ex: list1 and list2) like this :
> >
> > list1 = 1, 2, 3,...
> > list2 = A, B, C,...
> >
> > list1 + list2 =
> >
> > 1 A
> > 2 B
> > 3 C
>
Kapil Thangavelu wrote:
> return map( (lambda x,y:(x,y)), l1, l2)
You can replace this with
return map(None, l1, l2)
You can see why via
print map.__doc__
Cheers,
Nils
--
[EMAIL PROTECTED] | [EMAIL PROTECTED] (preferred)
[EMAIL PROTECTED] | [EMAIL PROTE
never mind... web python methods don't have access to map... so my
example wouldn't work on a through the web python method... without
defining a map function... dieter's method is better.
Kapil Thangavelu wrote:
>
> William JOYE wrote:
> >
> > Hello,
> >
> > I'm a newbie in zope. I think is a
William JOYE writes:
> I'm a newbie in zope. I think is a simple problem but I can find a solution.
> I would like to show 2 lists (ex: list1 and list2) like this :
>
> list1 = 1, 2, 3,...
> list2 = A, B, C,...
>
> list1 + list2 =
>
> 1 A
> 2 B
> 3 C
>
> How can I iterate 2 lits
William JOYE wrote:
>
> Hello,
>
> I'm a newbie in zope. I think is a simple problem but I can find a solution.
> I would like to show 2 lists (ex: list1 and list2) like this :
>
> list1 = 1, 2, 3,...
> list2 = A, B, C,...
>
> list1 + list2 =
>
> 1 A
> 2 B
> 3 C
>
> How can I iterate 2 lits
Hello,
I'm a newbie in zope. I think is a simple problem but I can find a solution.
I would like to show 2 lists (ex: list1 and list2) like this :
list1 = 1, 2, 3,...
list2 = A, B, C,...
list1 + list2 =
1 A
2 B
3 C
How can I iterate 2 lits in one dtml-in ?
Can you help me ?
___
35 matches
Mail list logo