[web2py:24964] Newbie question : How to pass parameters from flash?

2009-06-24 Thread Md.Mahbubur Rasheed
Hi, I am converting my old php-flash project into web2py for GAE. Now, I am confused about how to set param value. FYI I used a single php file, index.php to communicate with flash.swf. So, my other php files like login.php, logout.php, mail.php, xml.php etc used to be called from this. Below is

[web2py:24963] Re: xml

2009-06-24 Thread pk
puh it`s to tricky... i think i have to wait still there is a function to read the same xml (for updating my tables) which i generate automaticaly in my code. massimo, when do you think will you release this function? peter On 25 Jun., 05:44, JohnMc wrote: > Interesting xml discussion. > > Curi

[web2py:24962] Re: Database Queries and Filtering

2009-06-24 Thread Trollkarlen
Here it comes: db(db.projects.is_active == True).select (orderby=~db.projects.due_date) The info for building this and learning is all on AlterEgo or in slides. /R On Jun 25, 6:23 am, Michael wrote: > Yea I read over the slides. I'm just having a tough time learning on > how to write efficient

[web2py:24961] Re: verify updated email address?

2009-06-24 Thread Trollkarlen
Out out safety purpose its good to have him validate the new address with his old address. Then its harder for some one to change address and then just do a password recovery. If the password is not required when doing a e-ail change and its not by default. /R On Jun 25, 2:06 am, mdipierro wrot

[web2py:24960] Re: NOT a web2py question

2009-06-24 Thread Trollkarlen
Cleaner one: Just find replace into this: tel = {"SPQ": "3[1,0-3]", "SPQ": "70(1-3)" } def get_operator(number): import re for key, value in tel: if re.match(value, number): return key pre-compile the re before with re.compile and add then to the "tel" array in stead to get better preform

[web2py:24959] Re: Firebird: welcome application registration page

2009-06-24 Thread Alexei Vinidiktov
I'm glad to report that 'password2' is now accepted by web2py auth in revision 1072. Tested on my local Ubuntu box. On Thu, Jun 25, 2009 at 12:42 PM, mdipierro wrote: > > I may have just fixed it. Could you please check it and let me know? > > Massimo > > On Jun 24, 11:30 pm, mdipierro wrote: >

[web2py:24958] Re: Using GAE DB model Directly into web2py?

2009-06-24 Thread mdipierro
I like to think of GAE as a relational database without JOINS and without transactions. With this limitations and a few caveats the the same web2py APIs that work for relational databases work on GAE. 1) you connect with from gluon.contrib.gql import * db=GQLDB() 2) the id is still th

[web2py:24957] Re: Firebird: welcome application registration page

2009-06-24 Thread mdipierro
I may have just fixed it. Could you please check it and let me know? Massimo On Jun 24, 11:30 pm, mdipierro wrote: > Yes, there is a bug. I will fix it tomorrow morning. > > Massimo > > On Jun 24, 10:35 pm, mdipierro wrote: > > > than it must be a web2py bug. Perhaps I left a "password" hardco

[web2py:24956] Using GAE DB model Directly into web2py?

2009-06-24 Thread Md.Mahbubur Rasheed
Hi, I was wondering if there is any way to directly use Google app engine db model with web2py. It is because GAE DB model has few principles that doesn't match with other DB. For example there is no default "auto increment" feature what we use in mysql regularly. Also I don't know how web2py hand

[web2py:24955] Re: Firebird: welcome application registration page

2009-06-24 Thread mdipierro
Yes, there is a bug. I will fix it tomorrow morning. Massimo On Jun 24, 10:35 pm, mdipierro wrote: > than it must be a web2py bug. Perhaps I left a "password" hardcoded > somewhere? > > massimo > > On Jun 24, 10:24 pm, Alexei Vinidiktov > wrote: > > > The thing is it doesn't work with either f

[web2py:24954] Re: one in a while somebody asks the same question

2009-06-24 Thread weheh
I put in my $0.02. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsub

[web2py:24953] Re: Database Queries and Filtering

2009-06-24 Thread Michael
Yea I read over the slides. I'm just having a tough time learning on how to write efficient queries. I think a good project for me would be to write a 'query' builder so I can better understand. A better example of what I'm specifically looking to do; I have a table called 'projects', I want to

[web2py:24952] Re: Multiple Form functionality is Broken ??

2009-06-24 Thread mdipierro
Please email me this (again?) so that I can reproduce the problem. Massimo On Jun 24, 10:51 pm, Yannick wrote: > Hello Massimo, > Sorry to bother but was wondering if you figure out a solution for > this since the multiple form that used to work is now not working on > this new release... > > T

[web2py:24951] Re: Multiple Form functionality is Broken ??

2009-06-24 Thread Yannick
Hello Massimo, Sorry to bother but was wondering if you figure out a solution for this since the multiple form that used to work is now not working on this new release... Thanks, Yannick P. On Jun 21, 3:38 am, Yannick wrote: > Oups actually is a copy and paste... I don't have ":" after the > de

[web2py:24950] Re: xml

2009-06-24 Thread JohnMc
Interesting xml discussion. Curious, and it is not exactly a Web2Py question, has anyone one on the list installed/used PyQuery? I have the lxml library running but for the life of me I can't seem to get PyQuery to install correctly. JohnMc On Jun 24, 7:03 pm, mdipierro wrote: > If you use fle

[web2py:24949] Re: Problem Displaying image in View

2009-06-24 Thread Yannick
Hello mate... Here is the solution from Massimo just in case you may have the same problem. ## Replacing the center/upload function with this will solve the problem: def upload(): from gluon.sqlhtml import form_factory # retrieve AlbumId # albumNameList =

[web2py:24948] Re: auth settings

2009-06-24 Thread mdipierro
If there is a field username, it is used for login instead of email. May need more testing that is why it is not mentioned. Let me know if it works for you. Massimo On Jun 24, 10:38 pm, DenesL wrote: > On Jun 24, 4:24 pm, mdipierro wrote: > > > The fields 'email', 'first_name', 'last_name', 'p

[web2py:24947] Re: auth settings

2009-06-24 Thread DenesL
On Jun 24, 4:24 pm, mdipierro wrote: > The fields 'email', 'first_name', 'last_name', 'password' and > 'registration_key' are required. 'username' is optional. You can > change any of their attributes validators (but do not make the > registration_key shorter). You can add other fields. Good to

[web2py:24946] Re: web2py slides 1.64.4 typos

2009-06-24 Thread DenesL
125: t = self.settings.table_user >>> t = auth.settings.table_user --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscr

[web2py:24945] Re: Firebird: welcome application registration page

2009-06-24 Thread mdipierro
than it must be a web2py bug. Perhaps I left a "password" hardcoded somewhere? massimo On Jun 24, 10:24 pm, Alexei Vinidiktov wrote: > The thing is it doesn't work with either firebird or sqlite if the > password field's name is 'password2'. I'll do more tests later today. > > > > On Thursday,

[web2py:24944] Re: Firebird: welcome application registration page

2009-06-24 Thread Alexei Vinidiktov
The thing is it doesn't work with either firebird or sqlite if the password field's name is 'password2'. I'll do more tests later today. On Thursday, June 25, 2009, mdipierro wrote: > > hmmm.. if you discover something let me know. I thought somebody had > tested that. I did not because I do not

[web2py:24943] Re: web2py slides 1.64.4 typos

2009-06-24 Thread samwyse
Most slides: Inconsistent capitalization. Some bullets have their first word capitalized, some don't, sometimes on the same page. 17: "how to inlude" => "how to include" 58: clumsy phrasing: "allows to embed code" +. "allows embedding code" 58: verb tense: "that are execute" => "that are exec

[web2py:24942] Re: global logging to file

2009-06-24 Thread mdipierro
I have not made my mind yet. The fact is, it works great without being part of web2py. On Jun 24, 9:05 pm, Richard wrote: > so will this be integrated into web2py? > cjparsons mentioned in another thread that he has used the logging > module without > problems:http://groups.google.com/group/web

[web2py:24941] Re: flash integration example

2009-06-24 Thread mdipierro
Try these: new: http://www.web2py.com/AlterEgo/default/show/232 old: http://www.web2py.com/AlterEgo/default/edit/22 On Jun 24, 8:51 pm, Captain___nemo wrote: > Hi, > I am a newbie in web2py, and so far I am enjoying it :) Thanks a lot > Massimo. Also thanks to others who contribute in this pro

[web2py:24940] Re: one in a while somebody asks the same question

2009-06-24 Thread richard_gor...@verizon.net
I put in my 2 cents On Jun 24, 8:25 pm, mdipierro wrote: > http://www.reddit.com/r/programming/comments/8v7o9/what_to_choose_dja... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To po

[web2py:24939] flash integration example

2009-06-24 Thread Captain___nemo
Hi, I am a newbie in web2py, and so far I am enjoying it :) Thanks a lot Massimo. Also thanks to others who contribute in this project and users as well :) I am trying to modify my existing php-mysql site to fit for GAE. I am looking for - how to call my existing flash file (swf) from main.py. I

[web2py:24938] Re: global logging to file

2009-06-24 Thread Richard
so will this be integrated into web2py? cjparsons mentioned in another thread that he has used the logging module without problems: http://groups.google.com/group/web2py/browse_thread/thread/55be545503b03b6e/29f816b84d202ff2 On Jun 18, 1:01 am, mdipierro wrote: > Can you email it to me? > > On

[web2py:24937] Re: in trunk RadioWidget, CheckboxWidget

2009-06-24 Thread Richard
neat. On Jun 24, 6:28 am, mdipierro wrote: > or better: > > db.define_table('test',  SQLField('field1'),  SQLField('field2')) > > db.test.field1.requires=IS_IN_SET(('a','b','c')) > db.test.field1.widget = SQLFORM.widgets.radio.widget > > db.test.field2.requires=IS_IN_SET(('a','b','c'),multiple=T

[web2py:24936] one in a while somebody asks the same question

2009-06-24 Thread mdipierro
http://www.reddit.com/r/programming/comments/8v7o9/what_to_choose_django_ruby_on_rails_or_something/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to w

[web2py:24935] Re: web2py slides 1.64.4 typos

2009-06-24 Thread mdipierro
Thanks. I will fix them asap. massimo On Jun 24, 5:37 pm, rev wrote: > Hi, > > I found some typos in the web2py slides (version 1.64.4): > 48: # the official main manu => manu = menu > 55: redirect to login uness it finds => uness = unless > 64: that shuould not be escaped => shuould = should >

[web2py:24934] Re: verify updated email address?

2009-06-24 Thread mdipierro
The process of verification is not intended to check whether the email address is valid (although it accomplishes that) but to verify that the registrar is who he claims to be (the owner of that email address). When the user changes the email address, he should not receive and email, instead ther

[web2py:24933] Re: xml

2009-06-24 Thread mdipierro
If you use flex you should install pyamf and use the @service.amfrpc to pass data back and forth. You can find an example in AlterEgo Massimo On Jun 24, 4:53 pm, pk wrote: > hmm ok i understand. > but i need a way to update my tables in web2py if yourser change the > values in flex. > and tha

[web2py:24932] web2py slides 1.64.4 typos

2009-06-24 Thread rev
Hi, I found some typos in the web2py slides (version 1.64.4): 48: # the official main manu => manu = menu 55: redirect to login uness it finds => uness = unless 64: that shuould not be escaped => shuould = should 75: SQLField is a query => SQLField = SQLQuery 77: Connect to local SQLite database

[web2py:24931] verify updated email address?

2009-06-24 Thread Dan
Is there a way to force a verification message/process for users that edit their profiles and change their email addresses? These settings are in my model definition: auth.settings.registration_requires_verification = True auth.settings.registration_requires_approval = True Since the user has al

[web2py:24930] Re: FORM datetime and calendar...

2009-06-24 Thread Fauché JM
Thanks a lot ,I try it and it works well Jean-Marc --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this gr

[web2py:24929] Re: FORM datetime and calendar...

2009-06-24 Thread mdipierro
You discovered a bug in web2py_ajax.html. the calender give an error for an INPUT field of the right class ("date" or "datetime") that does not have an id. For now fix it by changing INPUT(_name="datelimite",_class='datetime',requires=IS_DATETIME()), into INPUT(_name="datelimite",_class='dateti

[web2py:24928] Re: NOT a web2py question

2009-06-24 Thread Kuba Kucharski
definitely nicer than mine. Thanks. -- Kuba --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group,

[web2py:24927] Re: xml

2009-06-24 Thread pk
hmm ok i understand. but i need a way to update my tables in web2py if yourser change the values in flex. and that is a important function for our project. is there another possibility to solve this? On 24 Jun., 23:41, mdipierro wrote: > The problem is that it is not as standard as you may thi

[web2py:24926] Re: FORM datetime and calendar...

2009-06-24 Thread Fauché JM
Here is the source code generated by firefox: http://www.w3.org/1999/xhtml"; xml:lang="fr" lang="an"> /Demexp/default/new_Q