[web2py:35431] validations

2009-11-16 Thread Sophie
Hi In my database i have a number field i have somethig like this db.define_table("Inventory", Field("idProduct", db.Product, label="Product"), Field("quantity", "integer", default=None, label="Quantity")) db.Inventory.idProduct.requires=IS_IN_DB( db, 'Product.id', ' % (nProduct)s ') If i want

[web2py:35138] Re: editable combo

2009-11-11 Thread Sophie
what is that? On 11 nov, 12:58, Thadeus Burgess wrote: > Are you looking for something like the dojo edit combo? > > -Thadeus > > > > On Wed, Nov 11, 2009 at 8:41 AM, Sophie wrote: > > > There is a way to have an editable combo in web2py? but i want to > >

[web2py:35134] Combo model

2009-11-11 Thread Sophie
Hi i was checking the web2py slices, and i think i can help the community if i made an example, making some of them. So i am using multi combo, i am using the slice "autocomplete" of mr.freeze, the options_with_add_link of renatocaliari. I was trying to make this demo for all of you and i have so

[web2py:35087] editable combo

2009-11-11 Thread Sophie
There is a way to have an editable combo in web2py? but i want to define this in the model, so i can have my combo, and find words in there with an autocomplete function. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[web2py:34943] SQLFORM problem

2009-11-09 Thread Sophie
Hi, in my controller i create a SQLFORM. I am using the slyce of the "add link". It works perfectly, tnnx renatocaliari. I made a demo to do a multicombo, thnx Massimo for you help. So i want to do this, i dont know if this is possible. I want to get the combos that are in the SQLFORM, in the vi

[web2py:34505] Re: problem using combo with ajax

2009-11-03 Thread Sophie
. On 3 nov, 13:42, mdipierro wrote: > Just > > $('#Pais').change(function(){ ajax('Estado', ['Pais'],'target') }); > > On Nov 3, 11:40 am, Sophie wrote: > > > > > I sont unsertand the suggestion, something like this? > >

[web2py:34526] Re: problem using combo with ajax

2009-11-03 Thread Sophie
').attr('onChange', ajax ('State', ['Country'],'target')) }); On 3 nov, 15:41, mdipierro wrote: > You do not bother us at all. We are happy to help (if we can). > > Can you post the modified code? > > On Nov 3, 2:33 pm, Sophie wrote: >

[web2py:34493] Re: problem using combo with ajax

2009-11-03 Thread Sophie
tr >     (city[i].id)) for i in range(len(city))]) > > I also suggest that you change > > $(...).attr('onChange', f()); > > with > > $(...).change(function(){ f(); }); > > On Nov 3, 9:23 am, Sophie wrote: > > > > > Hi all i have a pro

[web2py:34486] problem using combo with ajax

2009-11-03 Thread Sophie
Hi all i have a problem with multi combo. I have three tables Country, State, City. The first time it works fine, i select a country (Canada), it appears the state combo, i select a state (Alberta), and appear the city combo. Here is working fine. My problem is the second time i want to select a

[web2py:33351] Re: Pop-ups

2009-10-21 Thread Sophie
I try this, but it doesnt work. The error is "NameError: name 'OPTIONS_WITH_ADD_LINK' is not defined" But in the widgetAddLink.py I add db.Product.Category.widget=OPTIONS_WITH_ADD_LINK(T=T, r=request, c="Category") why cant it recognize the function? Sophie On Oct

[web2py:33304] Pop-ups

2009-10-21 Thread Sophie
the modification i did before. How can i do this? and now i am doing this with the SQLFORM, i think i have to change my controller to see this link next to the combo of product category, but i dont know how to do this either. Please some help. Im new in this so its very complicated for me. Sophie

[web2py:32816] IS_MATCH

2009-10-13 Thread Sophie
Whats wrong with this code? db.Person.nPerson.requires=IS_NOT_EMPTY('You should insert a name'),IS_UPPER(),IS_MATCH('([a-zA-Z]*[ ]*[áÁ]*[éÉ]*[íÍ]*[óÓ]*[úÚ]*) +',error_message='Only insert a-z A-Z áÁ éÉ íÍ óÓ úÚ and spaces'),IS_NOT_IN_DB(db, 'Person.nPerson','This person is in the database') When

[web2py:32766] Re: IS_UPPER

2009-10-12 Thread Sophie
; > Massimo > > On Oct 12, 1:26 pm, Sophie wrote: > > > > > Massimo can i modify the IS_UPPER() function? If i can, where is it?. > > > I have to validate some characters like "ñ". I put IS_UPPER() but it > > still in "ñ" and not "Ñ&q

[web2py:32753] IS_UPPER

2009-10-12 Thread Sophie
Massimo can i modify the IS_UPPER() function? If i can, where is it?. I have to validate some characters like "ñ". I put IS_UPPER() but it still in "ñ" and not "Ñ". The same with the acutes (á, é, í, ó, ú). --~--~-~--~~~---~--~~ You received this message because yo

[web2py:32479] Re: Input validation

2009-10-08 Thread Sophie
So if your locale doesn't work for some reason, I think you can at > least customize your own IS_UPPER(), and convert those characters > explicitly. > > On Oct5, 5:06am, Sophie wrote: > > > > > I dont understand, i have a databse i want to insert PERÚ, so i put >

[web2py:32209] Re: Input validation

2009-10-04 Thread Sophie
I dont understand, i have a databse i want to insert PERÚ, so i put this in my code IS_UPPER(),IS_MATCH('([a-zA-Z]*[ ]*[á]*[é]*[í]*[ó]*[ú]*[ñ]*[Á]*[É]*[Í]* [Ó]*[Ú]*[Ñ]*) +',error_message='Only a-z, A-z, spaces, á.é,í,ó, ú, Á, É,Í,Ó,Ú,ñ,Ñ') but when i insert Perú, in the database is PERú, if is up

[web2py:32145] Re: Input validation

2009-10-02 Thread Sophie
I solve this with this code IS_UPPER(),IS_MATCH('([a-zA-Z]*[ ]*[á]*[é]*[í]*[ó]*[ú]*) +',error_message='Solo se permite a-z, A-Z y espacios') the problem is that i insert Perú, in the database i see PERú, the ú is not upper it should appear Ú what can i do for this? On

[web2py:32065] Re: Input validation

2009-10-01 Thread Sophie
For acute what can i do. I see examples for php '/&([aeioun])(acute| tilde); i dont find for python On 1 oct, 19:21, Yarko Tymciurak wrote: > On Thu, Oct 1, 2009 at 5:45 PM, Sophie wrote: > > > IS_MATCH('[a-zA-Z]+',error_message='Only charaters allowed

[web2py:32062] Re: Input validation

2009-10-01 Thread Sophie
A-Z]+',error_message='Only charaters allowed') > > What about Cote' d'Ivoire? > > On Oct 1, 4:11 pm, Sophie wrote: > > > > > Hi there my problem is when i validate my input, i have this code in > > the model > > > db.def

[web2py:/] Input validation

2009-10-01 Thread Sophie
Hi there my problem is when i validate my input, i have this code in the model db.define_table("Country", Field("nCountry", "string", default=None, label="Name", notnull=True, requires=[IS_NOT_EMPTY('Please insert a country name'), IS_UPPER(), IS_NOT_IN_DB(db,'Country.nCountry','This country

[web2py:31952] Re: java to web2py

2009-09-30 Thread Sophie
ahí sacar el nombre de la tabla, dependiendo de esto mostrar los campos de la tabla que sean necesarios. Claro es un montón pero como me obligan a usar las 3 capas, creo que no hay de otra, o la solución que me propones no viola esta regla. On 30 sep, 12:00, ProfessionalIT wrote: > Sop

[web2py:31913] java to web2py

2009-09-30 Thread Sophie
Hi i am new is web2py, and im very confused. this is what i do in java but i dont know how to do this in web2py. For example, here i have my form, but in web2py the form is in the controller? and tha labels are in the model? And in web2py i dont do insert statement. someone could help me? how can

[web2py:31876] pay on-line

2009-09-29 Thread Sophie
Hi, i have to pay on-line with a credit card in my system. If there is some manual or you could explain me how can i do this i will appreciate it so much. thanks Sophie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[web2py:28051] Re: Combo problem

2009-08-05 Thread Sophie
Hi i read the page and i don't understand it too much. i wrote this code, it is working but i have this problem. the first combo is working fine, the second appears with the correct data, when i select the combo in the page appears the third combo with the correct data, but the problem is that the

[web2py:27896] Combo problem

2009-08-03 Thread Sophie
Hi i have a problem with a combo. I have 3 tables "productType","product" and "sales". So when i select a "productType" it appears a combo with the products of that type. My problem is when i want to select a product and i want the sales of that product. Here is my code: Controller: def index(