[Zope] List of attributes

2007-06-24 Thread Garito
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

Re: [Zope] List within a list - how to use in a page template

2005-12-25 Thread Chris Withers
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 :-

Re: [Zope] List within a list - how to use in a page template

2005-12-21 Thread Cameron Beattie
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

Re: [Zope] List within a list - how to use in a page template

2005-12-15 Thread Chris Withers
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

Re: [Zope] List within a list - how to use in a page template

2005-12-14 Thread David H
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

Re: [Zope] List within a list - how to use in a page template

2005-12-13 Thread David H
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,

Re: [Zope] List within a list - how to use in a page template

2005-12-13 Thread Paul Winkler
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

[Zope] List within a list - how to use in a page template

2005-12-13 Thread Cameron Beattie
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

Re: [Zope] Find a object in a zope list

2005-05-08 Thread Dan Fairs
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

Re: [Zope] Find a object in a zope list

2005-05-07 Thread Andreas Jung
--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

[Zope] Find a object in a zope list

2005-05-07 Thread Allen Huang
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

Re: [Zope] List Mail Duplicates

2001-01-22 Thread Martijn Pieters
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

Re: [Zope] List Mail Duplicates

2001-01-22 Thread Oleg Broytmann
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

[Zope] List Mail Duplicates

2001-01-22 Thread Tim Cook
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 ___

Re: [Zope] List of New products

2001-01-10 Thread Joachim Werner
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

[Zope] List of New products

2001-01-10 Thread Francois-regis Chalaoux
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

Re: [Zope] List from another list in DTML?

2000-10-15 Thread Kapil Thangavelu
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

[Zope] List from another list in DTML?

2000-10-15 Thread Alexander Chelnokov
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

Re: [Zope] List

2000-10-04 Thread Tom Deprez
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

Re: [Zope] List

2000-10-03 Thread Rik Hoekstra
> > 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

Re: [Zope] List

2000-10-03 Thread Jim Washington
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

Re: [Zope] List

2000-10-03 Thread Andy McKay
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

[Zope] List

2000-10-03 Thread Tom Deprez
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

Re: [Zope] list of users tied to database

2000-09-14 Thread tom smith
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

Re: [Zope] list of users tied to database

2000-09-14 Thread gotcha
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>

Re: [Zope] list of users tied to database

2000-09-13 Thread Geir Bækholt
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

[Zope] list of users tied to database

2000-09-13 Thread tom smith
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 ___

Re: [Zope] List of object's name in a ZClass

2000-08-29 Thread Kapil Thangavelu
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) _

[Zope] List of object's name in a ZClass

2000-08-28 Thread Vincent
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  

Re: [Zope] List

2000-08-10 Thread Steve Alexander
> 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 >

Re: [Zope] List

2000-08-10 Thread Nils Kassube
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

Re: [Zope] List

2000-08-09 Thread Kapil Thangavelu
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

Re: [Zope] List

2000-08-09 Thread Dieter Maurer
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

Re: [Zope] List

2000-08-09 Thread Kapil Thangavelu
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

[Zope] List

2000-08-09 Thread William JOYE
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 ? ___