Re: [web2py] list:string field length

2017-11-19 Thread Anthony
On Sunday, November 19, 2017 at 10:39:27 AM UTC-5, Yoel Benitez Fonseca 
wrote:
>
> I don't mean to set the length, i just wanted to know the DAL behavior 
> behind the scene. So, DAL translate 'string:list' to a list in 
> databases that natively support lists and to a TEXT field on normal 
> relational databases and hence set the length of the text field to the 
> default ? 
>

It is a text field, not a varchar field, so length is not relevant.

Anthony

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] list:string field length

2017-11-19 Thread Yoel Benitez Fonseca
I don't mean to set the length, i just wanted to know the DAL behavior
behind the scene. So, DAL translate 'string:list' to a list in
databases that natively support lists and to a TEXT field on normal
relational databases and hence set the length of the text field to the
default ?

2017-11-17 15:53 GMT-05:00 Donald McClymont :
> I don’t think you can set this but not sure why you would want to.  However 
> beware if testing the length of the field as I think if you only have 1 item 
> in the list then this is a string and you get the number of chars in the 
> string.  While if you have more than 1 you get the length of the list.  So 
> you may need to test the type before using length to ensure you get what you 
> expect.   I don’t know if this would be considered a bug or if it is still 
> the way it works but it was how it worked in 2.15.x and may have been a 
> change from 2.14.x.  I haven’t checked 2.16.1
>
> Donald
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups 
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
Msc. Yoel Benítez Fonseca

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] list:string field length

2017-11-17 Thread Donald McClymont
I don’t think you can set this but not sure why you would want to.  However 
beware if testing the length of the field as I think if you only have 1 item in 
the list then this is a string and you get the number of chars in the string.  
While if you have more than 1 you get the length of the list.  So you may need 
to test the type before using length to ensure you get what you expect.   I 
don’t know if this would be considered a bug or if it is still the way it works 
but it was how it worked in 2.15.x and may have been a change from 2.14.x.  I 
haven’t checked 2.16.1

Donald

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] list:string field length

2017-11-17 Thread Yoel Benitez Fonseca
h!

I always wanted to ask: According the online book, it is recommended
to explicit set the length of  "string", "password" or "upload", but
what about list:string ?

-- 
Msc. Yoel Benítez Fonseca

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] list:string and form.errors

2016-02-13 Thread Pierre
Hi everyone,

I have a sqlform to display a list:string field form and an onvalidation 
function to check each data entry of the list. The error message always 
shows at the bottom of the form whereas I would like to identify the 
precise data entry responsible for that error (show the error in the 
related row).

Is there a way to do this ?

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] list:string how to limit the number of strings

2015-12-05 Thread Pierre
Hi everyone,


am trying to input a list:string field via a SQLFORM(list_string_table). It 
works fine with the + and - buttons but I'd like to fix a limit like 30 
strings max for every list:string
Is this possible ?


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] list:string on GAE breaks web2py's db admin tool

2015-05-04 Thread michael . c . mcclain


I've started using a list:string field on the auth_user model.

I'm running web2py on GAE with the datastore.


I noticed web2py's admin tool started crashing on this page 
appadmin/select/db?query=db.auth_user.id0


looking at the console I found:


/gluon/dal.py, line 10035, in genexpr

return ', '.join(str(y) for y in x or [])

UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in position 1: 
ordinal not in range(128)

It seems web2py is not properly handling the datastore string list property. 

I fixed the problem by adding .encoding(utf8) to the dal.py function below:

def list_represent(x, r=None):
#return ', '.join(str(y) for y in x or [])
return ', '.join(str(y.encode(utf8)) for y in x or [])


Has anybody else experienced the same error?


tks

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] list:string type issues

2014-10-05 Thread Greg Vaughan
Hi Guys,

I am using a list:string to store a list of lists. Each seperate list has 4 
values, qty (int), name (string), description (text) and price(double). 
Stores nicely and looks fine in the db table eg.

[1, 'OS 7030', 'OS 7030', 755.0], [3, 'SMT 24 Btn', 'SMT IP Phone', 360.0], 
[1, 'SMT IP', 'SMT IP Phone Licence', 70.0], [1, '2830 SIP Router', '2830', 
499.0], [1, 'ADSL Central Filter ', 'ADSL Central Filter ', 61.5]

However if I try to iterate and get some totals it is getting confused. For 
example the same list above becomes...

[[1, 'OS 7030', 'OS 7030', 755.0], [3, 'SMT 24 Btn', 'SMT IP Phone', 
360.0], [1, 'SMT IP', 'SMT IP Phone Licence', 70.0], [1, '2830 SIP 
Router', '2830', 499.0], [1, 'ADSL Central Filter ', 'ADSL Central Filter 
', 61.5]]

Iterating list[0] returns [ [ [ [ [  list[1] returns 1 3 1 1 1 list[2] , , 
, , , list[3] returns a list of the spaces, list[4] the apostrophes ' ' ' ' 
' list[5] O S S 2 A etc etc...

What do I have to change so that it is being interpreted correctly?




-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] list:string

2014-04-03 Thread Manuele Pesenti
Il 03/04/14 06:23, horridohobbyist ha scritto:
 I've added a 'list:string' field to my table, but when adding a new
 record from admin (using the new record form), I can't figure out how
 to enter the data. I don't understand what format it expects.

 I tried ['item1','item2']. I tried |'item1'|'item2'|. They both
 don't work.
Try adding an SQLFORM in a controller, add some data as a user and go as
admin to the admin interface and edit data you entered.
list:string has a default widget inside SQLFORM that let you enter each
item.

Hope to be of any help

Cheers

M.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] list:string

2014-04-03 Thread horridohobbyist
Well, I added data by using db.update() instead of SQLFORM. The data is 
definitely in there, and it works. However, in admin, *the data is not 
visible* in the list:string field (it's empty), so I can't edit it. The 
behaviour of the list:string data type is very strange. Why is it like 
that? Or am I doing something wrong?


On Thursday, 3 April 2014 02:49:45 UTC-4, Manuele wrote:

 Il 03/04/14 06:23, horridohobbyist ha scritto: 
  I've added a 'list:string' field to my table, but when adding a new 
  record from admin (using the new record form), I can't figure out how 
  to enter the data. I don't understand what format it expects. 
  
  I tried ['item1','item2']. I tried |'item1'|'item2'|. They both 
  don't work. 
 Try adding an SQLFORM in a controller, add some data as a user and go as 
 admin to the admin interface and edit data you entered. 
 list:string has a default widget inside SQLFORM that let you enter each 
 item. 

 Hope to be of any help 

 Cheers 

 M. 


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] list:string

2014-04-03 Thread Manuele Pesenti
Il 03/04/14 14:01, horridohobbyist ha scritto:
 Well, I added data by using db.update() instead of SQLFORM. The data
 is definitely in there, and it works. However, in admin, *the data is
 not visible* in the list:string field (it's empty), so I can't edit
 it. The behaviour of the list:string data type is very strange. Why is
 it like that? Or am I doing something wrong?

heve you considered to use filter_in and filter_out trigger function...
more or less on the contrary respect on how is done in the doc?
http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#filter_in-and-filter_out

M.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] list:string

2014-04-02 Thread horridohobbyist
I've added a 'list:string' field to my table, but when adding a new record 
from admin (using the new record form), I can't figure out how to enter the 
data. I don't understand what format it expects.

I tried ['item1','item2']. I tried |'item1'|'item2'|. They both don't 
work.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] List:string display missing the + and - since about 2.7

2013-12-17 Thread Mark Kirkwood
I'm making use of list:string to store registration numbers (for cats):

db.define_table(
'cat',
...   
Field('reg_numbers', 'list:string'),
format = '%(name)s'
)

and using sqlform.grid in the 'cat' controller. For web2py versions = 
2.4.x  this worked fine - displaying a text box with trailing '+' and '-' 
to add or remove list entries.

I noticed after updating to 2.8.2 that the +/_ controls had vanished. I 
happened to have a 2.7.4 zip and well and thay have vanished in that 
version too. Is there some new way this works now, or is it a bug?

Cheers

Mark

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] list:string field in auth_user

2013-09-29 Thread Scott Hunter
I have added a list:string field to my auth_user table using 
auth.settings.extra_fields:

auth.settings.extra_fields['auth_user'] = [
Field('f_dtf', type='list:string', custom_qualifier=dict())
]

The new field shows up fine.  But when I try to manipulate that field from 
the Profile page,  I only end up with a list with 1 element: the full 
contents of the text field.  I have read that the standard widget for these 
would allow for multiple entries by hitting return, but that gets 
interpreted as form submission.

Not sure how to proceed from here; build my own widget?  Write my own view 
for this form?  Any pointers would be appreciated.

- Scott


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] list:string field in smartgrid? ver: 2.6.0-development+timestamp.2013.08.01.08.22.32

2013-08-03 Thread Adi

I have a list:string field without any represent definition, and when 
open record for editing in smartgrid, the field is represented as string 
(one line). I remember in the past seeing a button with the plus sign on 
the right side, and ability to add multiple values into a field. Should I 
specify some widget in order to get the button and functionality? 

simplified table definition:

db.define_table('product',
Field('videos', 'list:string'),
)


Thanks.


-- 

--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] list:string repeats same error message in SQLFORM grid

2013-08-02 Thread step
is it possible to display just one error message of a list:string input 
right after the last input control, using SQLFORM.grid?

With SQLFORM,grid create/update form, when a list:string field with 
validators has errors it should be possible to hide the error display on 
all list inputs but the last one. At least that's how I interpret the 
current ListWidget code in sqlform.py
nvalue = value or ['']
items = [LI(INPUT(_id=_id, _class=_class, _name=_name,
  value=v, hideerror=k  len(nvalue) - 1,
  requires=requires),
**attributes) for (k, v) in enumerate(nvalue)]
so hideerror=True for all input items but the last one. Effectively, this 
should display a single error message after the last string of the list. 
How nice, but it doesn't seem to work, and the form repeats the same error 
message under each string of the list - 100 times if the list:string 
comprises 100 elements.
I'm not sure where the hideerror attribute gets reset in the chain. I check 
its value in function _translate, and it's always false, even when I add 
this code after the above code in the ListWidget - for the sake of 
investigating this issue.
for i in items:
for e in i.elements:
e.attributes['hideerror'] = True
hideerror is still == False for all self.components in _translate() while 
I'd expect it to be True for components that correspond to my list:string 
inputs.
def _traverse(self, status, hideerror=False):
# zip zip...

# for input, textarea, select, option
# deal with 'value' and 'validation'

name = self['_name']
print name, self['hideerror'] # this always prints False


-- 

--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] list:string type field output format

2013-04-16 Thread 黄祥
hi folks,

is it possible to change list:string type field output format?

e.g.
*in grid output : a, b*
*in shell output :  |a|b|*
 print db(db.test.test.contains('b')).select()
test.id,test.test
1,|a|b|
*in view using query output : ab*
{{for i, row in enumerate(rows):}}
{{=DIV(row.test)}}
{{pass}}
*in view using query output : ['a', 'b']*
{{for i, row in enumerate(rows):}}
{{=DIV(str(row.test))}}
{{pass}}

i want to have the output format for list:string type field in view : *a, b*or 
*a; b* instead of ab. did anyone know how to produce the output like that 
in web2py?

thank you very much in advance

-- 

--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] list:string type field is empty value on edit page

2013-04-04 Thread 黄祥
hi,

is it normal for list:string type field is empty when on editing page?

e.g.
db.define_table('contact',
*Field('salutation'),*
Field('first_name'),
Field('last_name'),
*Field('gender', 'list:string'),*
Field('birthday', 'date'),
Field('job_title'),
Field('address', 'text'),
Field('zip'),
Field('city'),
Field('country'),
Field('phone'),
Field('fax'),
Field('email'),
*Field('account', 'reference account'),*
format='%(first_name)s %(last_name)s')

*db.contact.salutation.requires=IS_IN_SET(['Mr.', 'Mrs.', 'Ms.'])*
db.contact.first_name.requires=IS_NOT_EMPTY()
db.contact.last_name.requires=IS_NOT_EMPTY()
*db.contact.gender.requires=IS_IN_SET(['Male', 'Female'])*
db.contact.job_title.requires=IS_NOT_EMPTY()
db.contact.address.requires=IS_NOT_EMPTY()
db.contact.zip.requires=IS_MATCH('^\d{5,5}$',
 error_message='not a zip code')
db.contact.city.requires=IS_NOT_EMPTY()
db.contact.country.requires=IS_NOT_EMPTY()
db.contact.phone.requires=IS_NOT_EMPTY()
db.contact.email.requires=[IS_EMAIL(), 
   IS_NOT_IN_DB(db, 'contact.email')]
*db.contact.account.requires=IS_IN_DB(db, db.account.id, '%(account_name)s')
*

i make 3 different field type (bold) that contain drop down in the form 
view. why the value is always empty for the list:string type when i'm on 
the editing page? is it possible for not empty for list:string type in 
editing page?
any idea or explaination about this?

thank you so much before

-- 

--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[web2py] list:string crud form entry -- what's the latest?

2012-07-09 Thread weheh
This has been an oft-disucssed topic. Just search for list:string crud 
But having just experienced the pain myself, and not easily locating the 
status of this issue, I felt compelled to ask for myself: 

Shouldn't list:string have a default interactive (jQuery OK) widget that is 
an expandable/collapsible list of user-input text data that works with 
crud? Validators like IS_EMAIL() would then have to iterate on list:string. 
This would be handy for storing entities with multiple emails, for example.

Seems like a gap in web2py's form-input armor and a pretty useful 
capability, to boot. So what's the latest?


[web2py] list:string - IS_IN_SET

2011-07-15 Thread Jim Steil

Hi

Having another problem today with the following:

table defined as:

priceBackerItem = db.define_table('priceBackerItem',
Field('priceBackerItemId', 'id'),
Field('priceBackerId', db.priceBacker, required=True, 
label='Price Backer'),
Field('itemType', 'list:string', required=True, label='Item 
Type'),

Field('sequence', 'integer'),
Field('description', 'text'),
Field('price', 'decimal(9,2)', label='15-Day Price'),
Field('subscript', 'text'))

priceBackerItem.priceBackerItemId.requires = IS_NOT_EMPTY()
priceBackerItem.itemType.requires = IS_IN_SET(['Special Formulation 
Price Adjustment',

'Medication Price Adjustment'],
zero='choose one',multiple=False)

Using CRUD, when the update form displays, it never displays the current 
value of item type.  The reason is (my best guess) that when I look in 
the database (mysql), I see the values as:


|Medication Price Adjustment| or
|Special Formulation Price Adjustment|

...including the vertical lines in the text.

Any advice?

-Jim



[web2py] list:string and Update form

2011-06-11 Thread Oscar
Hi,

I have a model using a list:string field called type.

Validation for type field:
IS_IN_SET({'finished':T('Finished'),'service':T('Service')},
zero=T(-- Choose Type Of The Product --))),

So, when I create an update form using SQLFORM it shows the form fine
but, the dropdown thats belong to type doesn't have the right value or
selection, it just shows -- Choose Type Of The Product --

form = SQLFORM(db[main_data.settings.table_name_products],
   record = product_id,
   fields = product_fields,
   submit_button = submit_button,
   formstyle = 'divs')

I need that type field get the right value from the string stored in
the DB to get it showed in the dropdown. How I can do this?

Regards,

Oscar.


[web2py] list:string thoughts

2010-10-24 Thread rick
I'm getting frustrated with the list:string field type.

I store products, each product has keywords that describe the
product.
db.define_table('products',
   Field('keywords', 'list:string'))
I don't know what the keywords will be, so I can't use IS_IN_SET()

It seems to stores the keywords fine, as long as (I'm using Crud)
I separate the keywords like this: green|blue|red

But when I make this call
rows = db(db.products.keywords.contains(keyword)).select()
I don't get all the products back that I should! In fact, it seems
that I need to do an update on the product (again using Crud,
and any sort of update) before the product's keywords will be
picked up.

Is this a problem with using Crud?
In all honesty, I'd be more comfortable not using list:string, and
having a separate table keywords that linked (many-to-one)
to the products table, but I really don't know how I would even
begin to do that in web2py..

Thanks for reading!
- rick


[web2py] list:string with empty list is not reversible

2010-10-15 Thread Bob_in_Comox
Using web2py 1.87.2 with sqlite

I need to store and retrieve a list of strings from a multple select.
I have a case where the list can be the empty list []. It will encode
to the datebase as '||', but will decode to ['|'], not [].

The current gluon.sql.py is:

def bar_encode(items):
return '|%s|' % '|'.join(bar_escape(item) for item in items if
str(item).strip())

def bar_decode_string(value):
return [x.replace('||','|') for x in string_unpack.split(value) if
x.strip()]

I believe the following would fix this:

def bar_decode_string(value):
return [x.replace('||','|') for x in
string_unpack.split(value[1:-1]) if x.strip()]


[web2py] list:string not working

2010-08-26 Thread yamandu
I possibly found a problem with list:string field.
I´ve searched for a widget and I could found one for it.
So I starte to make my own based on this
http://blog.crazybeavers.se/wp-content/demos/jquery.tag.editor/
I could be like that tag editor in plugin_wiki too but I found it
harder to base on it.

The problem is when you update a field of type list:string using the
item1|item2|... syntax it parses correctly and saves like array
['item1','item2']
But if you update the record it shows like ['item1','item2'] and if
you simply save it without editing it saves as ['['item1','item2']']

I think the correct would it to reverse parse it to the | syntax, via
widget maybe.
If it was like this it would be simpler to adpat the above mentioned
jQuery plugin.
But the way it is it´s need to do two types of parses.

Is this really wrong or not?