[web2py] Tips & tricks : showing / pre-viewing an image before uploading and/or resizing and/or submit :)

2012-12-02 Thread Don_X
Hello Web2py users : I had so much trouble with previewing an image before upload or submit, I have tested so many javascripts out there and various solutions that have worked mostly with PHP projects, I have tried so many scripts taken from all over the place, none of them actually did th

[web2py] About crud.update to edit or update a user's profile info !

2012-12-01 Thread Don_X
Hello web2py users, I am in the process of completing the "edit profile" option for the web app members and I am experiencing a particular problem that is causing me a headache ! in the profile controller, I am using the following function to update a user's profile : def editprofile(): t

[web2py] Re: How to put a view for functions inside a function of a controller ??

2012-11-30 Thread Don_X
Anthony, I want to thank you .. your input was very valuable ... i got it to work the way i want ! ... nicely so I should add ! ... without any load calls in the view ! ... I had to take out the functions inside the Z function, and put them outside but still within the profile.py controller,

[web2py] How to put a view for functions inside a function of a controller ??

2012-11-30 Thread Don_X
The question in this post may not be very explicit .. but it is the best way for me to say it ! I have the following problem : in my controller, I have a function ( Z ) that has its own view ( an html file - Z.html ) the function Z is for registered members and uses the request arg to identi

[web2py] Re: Ninja IDE: written in Python for Pythonistas

2012-11-30 Thread Don_X
Yeah ! . pbreit ! This does look interesting ! IDEs have their advantages and disadvantages ! ...for me .. it can be an advantage mainly when it comes to quickly view or analyse the specific calls of function contents or codes behind the work being done without having to navigate manually troug

[web2py] Re: I need a bit of Help with a function ! .. please ...

2012-11-21 Thread Don_X
> > Thank you lyn2py ... > Unfortunately, your proposition does not work ! In this situation, I wanted to practice the DRY principal ( DONT REAPEAT YOURSELF ) ... but it seems ( based on my limited knowledge ) the only way that I succeeded was in duplicating the exact same view page of ind

[web2py] Re: I need a bit of Help with a function ! .. please ...

2012-11-20 Thread Don_X
when I tested it .. i get an error : I tried to change the line " if member.id == auth_user[args]" to "if member.id == auth_user.args " ... I get basically the same kind of error I am running out of ideas ... please help File "/home/www-data/web2py/applications/adminsoccer/controllers/pr

[web2py] I need a bit of Help with a function ! .. please ...

2012-11-20 Thread Don_X
In an app where users have their own profile page ! Once a user gets logged in with their credentials .. they get redirected to their own profile page with all of their edit functions and preferences etc ... ... OK ! all was good so far ... BUT when the user is browsing through the app, I want

[web2py] Re: Question about response.menu !! ...

2012-11-20 Thread Don_X
Thank you Massimo ! .. it was a bit tricky ... but I got it ! .. --

[web2py] Question about response.menu !! ...

2012-11-19 Thread Don_X
In the cookbook it says that we can have more than one response.menu in the same view ! How would I go about it ? ... I created another response.menu by naming it in the menu model file : response.menubar = [ ] and then expanded on its own menu items inside the __def( ) function by

[web2py] Re: Data does not make it to the db table when NyroModal is used once sqlform submitted !! please help !

2012-11-18 Thread Don_X
WELL WELL WELL ... it seems that the short answer is : File uploads cannot be done in a modal window using AJAX ... it also seems that there is a way around this that involves iframe !!??? ... does any one know how to go about this ??? ... --

[web2py] Re: Data does not make it to the db table when NyroModal is used once sqlform submitted !! please help !

2012-11-18 Thread Don_X
Well .. ladies & gents ... Finally, the scenario above is a no can do ! to use modals with SQLFORM, I had to go with the bootstrap Modal, 1st -) I had to tweak the bootstrap modal a bit because the bootstrap modal has a fixed size, so I played in the CSS to change its default settings 2n

[web2py] Re: Bootstrap snippets

2012-11-17 Thread Don_X
Thank you Bruno .. pretty cool .. I will need some of these ! --

[web2py] Re: how do I change the appearance of a form from the basic look ?

2012-11-17 Thread Don_X
You can modified the look and feel of a form by using a combination of CSS and by breaking the form into different components as explained here : http://web2py.com/books/default/chapter/29/07#Custom-forms On Thursday, November 15, 2012 3:16:01 PM UTC-5, Hector Magnanao wrote: > > how do i change

[web2py] Data does not make it to the db table when NyroModal is used once sqlform submitted !! please help !

2012-11-16 Thread Don_X
Hello everyone .. it has been a while ! ... I am back .. alive .. and kicking at it again... OK ! .. I have a problem with data that does not make it to the table when the related form is shown to the user through a Modal ( in this case it is the NyroModal that I chose to use for this exercise

[web2py] Re: is it possible to run web2py parallel to php on apache port 80?

2012-10-21 Thread Don_X
Hello Simon, where does your localhost point to ?? ... does it point to the web2py directory ?? .. how did you configure your wsgi ? .. If you used the script that configures the "www-data user & group" script under the home folder than you will be able to do the following to have php running in

Re: [web2py] I am looking for specifics : how to db.define_table in sub directories in the MODELS directory !

2012-10-18 Thread Don_X
Thank you gentlemen for your input ! Niphlod .. i understood the flow logic from the start .. even before I tried it, that is why I tried it ! ... what kept my attention is the response above yours ! The flow logic was easy to comprehend ! ... but : It seems From Marin's answer, the tables

Re: [web2py] I am looking for specifics : how to db.define_table in sub directories in the MODELS directory !

2012-10-18 Thread Don_X
Let me try to keep it simple .. because I don't want to pollute this thread with many tables and fields OK ... initially everything was working OK ! I had 3 models files like the followings : 0.py, db.py & menu.py in 0.dy I had : from gluon.storage import Storage settings = Storage() settings.

Re: [web2py] I am looking for specifics : how to db.define_table in sub directories in the MODELS directory !

2012-10-18 Thread Don_X
in 0.db I have : settings.migrate = True in db.py I have db.define_table('auth_user', Field (.,Field(), ... Field... bla bla bla .

Re: [web2py] I am looking for specifics : how to db.define_table in sub directories in the MODELS directory !

2012-10-18 Thread Don_X
Richard .. at this stage ! ... the controller file for each sub directory table files are not the issue ... for now ... the tables are not getting created at all ! ... what I did to start fresh 1) i delete the database files in the database directory 2) delete the session files in the session

[web2py] I am looking for specifics : how to db.define_table in sub directories in the MODELS directory !

2012-10-18 Thread Don_X
hello web2py users, I am looking for specifics when it comes to creating additional tables within a sub-directory of MODELS ! I am making significant progress on my app ! and I know that I will certainly have an overhead issue because in my db.py file I have about 20 tables defined and some ta

[web2py] Re: Basic question about CSS / Web2py !

2012-10-16 Thread Don_X
word warp is exactly what I was hoping to do in the label declaration ! .. and Yes .. thank you Anthony, I was not sure ! .. you are right ! .. I had to try before I asked ! thanks weheh .. and thank you Niphlod .. you hit it right on the nail ! thank you every one it is very much apprecia

[web2py] Re: web2py 2.1.1 is OUT!

2012-10-15 Thread Don_X
Good Job Massimo and to the whole crew ! I was wandering ... when do we get to have various types of custom response flash messages or levels of response flash messages I think there was a similar suggestion sometime ago ? ... --

[web2py] Re: Basic question about CSS / Web2py !

2012-10-15 Thread Don_X
weheh ! Thank you for your response ... but this is not what I am looking for ! I know about what you suggested below .. this is how it is declared .. indeed ! Now ... Can the label argument take an HTML helper of somekind, so if the translation of 'mylabel' happens and it is too long of an

[web2py] Basic question about CSS / Web2py !

2012-10-15 Thread Don_X
Hello web2py users, This is a basic enquiry : but not insignificant ! Is it possible to wrap a label name - one example among many similar situations that I am encountering : within a table define, a label is set for a field as follows : .. label =T('Re-enter email') . when the T fu

[web2py] Re: powerTable AttributeError: 'DAL' object has no attribute 'virtual'

2012-10-08 Thread Don_X
yError, AttributeError): > > > > On Monday, 8 October 2012 12:39:09 UTC-5, Don_X wrote: >> >> For a more detailed report .. I have openned up the last line pertaining >> to the plugin_powertable.py below : >> >> >> >>- >>

Re: [web2py] Re: powerTable AttributeError: 'DAL' object has no attribute 'virtual'

2012-10-08 Thread Don_X
Bruno .. I am using the app example from your bitbucket the web2py.app.skrywer_powertable.w2p On Monday, October 8, 2012 1:33:50 PM UTC-4, rochacbruno wrote: > > Hi Don, > > I will try to reproduce it here and maybe make some updates to plugin. > > Can you give me a full code sample? The bas

[web2py] Re: powerTable AttributeError: 'DAL' object has no attribute 'virtual'

2012-10-08 Thread Don_X
For a more detailed report .. I have openned up the last line pertaining to the plugin_powertable.py below : - Function argument list () Code listing 20. 21. 22. 23. 24. 25.

[web2py] Re: powerTable AttributeError: 'DAL' object has no attribute 'virtual'

2012-10-08 Thread Don_X
Same as above Massimo ... it gives the exact same traceback as above ... and the lines that I have changed are from line no 177 to 185 as follows : > elif headers=='labels': headers = {} for c in columns: (t,f) = c.split('.') table =

[web2py] Re: powerTable AttributeError: 'DAL' object has no attribute 'virtual'

2012-10-08 Thread Don_X
Thank you Massimo .. but the same error persists ... with both suggestions ! --

[web2py] Re: powerTable AttributeError: 'DAL' object has no attribute 'virtual'

2012-10-08 Thread Don_X
it runs by bypassing the admin/default/index page ... but F.Y.I the powertable app example still does not run : I get the following error : 'Row' object has no attribute 'product' Versionweb2py™(2, 1, 0, datetime.datetime(2012, 10, 8, 15, 17, 50), 'dev') PythonPython 2.7.3: /usr/bin/python T

[web2py] Re: powerTable AttributeError: 'DAL' object has no attribute 'virtual'

2012-10-08 Thread Don_X
Massimo, the latest trunk or nightly build ... they do not run for now ! --

[web2py] Re: 2.1rc1 parse_version error

2012-10-08 Thread Don_X
oupss .. I spoke too fast ... it opens up .. but cannot get to the admin/default/index page ! .. I get a error link and when I clicked to see the ticket .. I simply get another link to click on .. and on .. and on ... --

[web2py] Re: 2.1rc1 parse_version error

2012-10-08 Thread Don_X
fixed it ! took it out of the version file ! --

[web2py] Re: 2.1rc1 parse_version error

2012-10-08 Thread Don_X
I just downloaded the nightly build and the trunk version they are not running ! my apache server error log gives me this : [Mon Oct 08 10:57:37 2012] [error] [client 127.0.0.1] mod_wsgi (pid=2009): Target WSGI script '/home/www-data/web2py/wsgihandler.py' cannot be loaded as Python module.

Re: [web2py] formwizard with 2 tables : - not working ! .. please help !

2012-10-08 Thread Don_X
finally solved ! with a different approach alltogether ! I have a short sign-up form and a long sign-up form for the same auth_user table ! the short sign-up form deals with the first fields with requires defined in the model while the additional fields do not have any requires and most are se

[web2py] Re: powerTable AttributeError: 'DAL' object has no attribute 'virtual'

2012-10-08 Thread Don_X
PowerGrid works with the latests web2py 2+ . while Powertable does not I was wondering what the real differences are between these 2 powerfull plugins they both seems to do basically the same things ... but PowerTable looks much better and seems to have more options ... ! the app examp

Re: [web2py] formwizard with 2 tables : - not working ! .. please help !

2012-10-04 Thread Don_X
Hello Massimo, I think I am onto something ! I have modified my model as follows : defaultfoto = [ 'defaultuser.png','defaultplayer.png','defaultcoach.png'] defaultuserpics = { 0:IMG(_src=URL('static','images/'+ defaultfoto[0])), 1:IMG(_src=URL('static','images/'+ default

[web2py] extra_field in auth_user problem !

2012-09-29 Thread Don_X
Hello web2py users, I was experimenting with something ! and I ended up with a problem that is difficult for me to solve ! please help. the situation is as follow : auth_user table has many fields defined + another set of extra_fields defined but set purposely as writable=False, readable=False

[web2py] I cannot make ".../[app]/default/user/register " to behave differently !!!

2012-09-27 Thread Don_X
hello web2py users, I have been playing with web2py & python for a few months now ... I am proud of myself with what I have been able to accomplished so far and so quickly ! but I am still learning !... There have been several post regarding the following issue !! and I thought I had figure

[web2py] Problems with a validation procedure ? - a Canadian postal code !

2012-09-24 Thread Don_X
Hello web2py users : Validating if numbers or decimals are entered on a form seem to be very straight forward and easy enough ! whether it is a phone number or a US postal code : Like for example a US postal code would go like this : requires = IS_MATCH('^\d{5}(-\d{4})?$',error_message='not a z

[web2py] Re: Radio widget doesn't work with IS_IN_SET validator?

2012-09-22 Thread Don_X
Hello Alec, Use the following radio widget : http://dev.s-cubism.com/plugin_hradio_widget and I believe your problem will be fixed ! --

[web2py] Re: How to allow Image Upload and Border Selection preview before saving to permanent table

2012-09-20 Thread Don_X
Hello Web2py_Superfan, .. i wanted to contact you directly .. but ... I am just replying to you on here and hopefully ... you will be able to follow up with any pointers ! I have a similar situation ... pertaining to previewing the image before committing to the db.table. upload field !! when a

Re: [web2py] Question about the necessity to have 2 auth_user tables in a web2py app.... ?

2012-09-13 Thread Don_X
lement a >> lot of thing by your own, that could leave you with security hole... >> >> Richard >> >> >> >> On Thu, Sep 13, 2012 at 4:23 PM, Don_X wrote: >> >>> Hello folks ... >>> >>> There is a bit of similarity with a

[web2py] Question about the necessity to have 2 auth_user tables in a web2py app.... ?

2012-09-13 Thread Don_X
Hello folks ... There is a bit of similarity with another thread below regarding 2 auth_user tables ( for 2 different logins or authentification methods in the same app) ! but before I dive in the question I want to ask, I need to share a bit of the nature and the genesis of the project that I

web2py@googlegroups.com

2012-09-10 Thread Don_X
Hello web2py users ... I am going out of my mind with this ! I am trying to cook up a widget ... ( or a plugin ) inspired from the SELECT_OR_ADD_OPTION widget ! but it uses radio buttons instead of a dropdown select menu, it is about selecting a profile picture among a number of pics shown a

Re: [web2py] short term roadmap

2012-09-09 Thread Don_X
erent scenarios in my app ! ... how do I go about getting it implemented I will be willing to sponsor that feature if affordable ! ... please advise Don_X --

[web2py] Modelless app no longer works with web2py 2.0.x ???

2012-09-09 Thread Don_X
Considering that I have many tables in my model files on the main app I am building & Wanting to take the modelless approach ( slice submitted by BrunoRocha ) in order to avoid possible future bottleneck and/or latency I wanted to advise that the modelless app no longer works under web2py 2.0.

Re: [web2py] little css issue and french translation

2012-09-06 Thread Don_X
"propulsé par" is definately the proper translation for powered by it is indeed nice to see french speaking folks here ... the french group on the other hand has been inactive .. it seems since last year ! There is the french translation for the latest version of the book in the works ! ... d

[web2py] Re: web2py book on github

2012-09-03 Thread Don_X
Massimo, Just a suggestion : In the various scripts included in the packages .. I realized that by default : the default file rewritten for apache for example, contain "Deny from all" in various portion of the sh scripts ( for ubuntu, fedora, etc .. ) I recommend to make them "Allow from a

[web2py] Re: Checking for upgrades isn't working as I expected (1.99.7 installed)

2012-09-03 Thread Don_X
latest web2py version which is awesome ! happy coding ! Don_X On Thursday, August 30, 2012 8:29:19 AM UTC-4, Tim Richardson wrote: > > I'm a new user so I don't know what should happen when a new stable > release occurs. > I have 1.99.7 source running on a Windows 2

[web2py] Re: web2py 2.02 ( stable) install right next to web2py 1.99.7 (stable) under home/www-data/ ....

2012-08-31 Thread Don_X
For those of you who wish to do the same thing ...and have web2py running under apache2 with ubuntu ( in my case it is ubuntu 12.04 LTS ) While the upgrade action is not possible or a bit buggy from 1.99.7 to 2.02+, this thread is about installing the latest web2py in parallel ( or next to ) y

[web2py] web2py 2.02 ( stable) install right next to web2py 1.99.7 (stable) under home/www-data/ ....

2012-08-30 Thread Don_X
Hello all ... does anyone have any suggestion on how to proceed with a parallel install of the latest web2py 2.02 ( stable ) under the home/www-data directory ... without messing up my previous 1.99.7 ( which has many apps and custom test apps and exercises that I have made ... ) ... PS. the

[web2py] Re: web2py 2.0.2 is out

2012-08-30 Thread Don_X
Let it be said & Let it be heard : Web2py is not only awesome .. It is simply the best python framework out there ! ... at least for me, and many others ! Congratulations to the web2py developer team Move over ! make way ! PHP & Python Frameworks .. here we come ! --

[web2py] Re: Playing around with list/tuples of images on a basic form .... ( educational purpose)

2012-08-29 Thread Don_X
Villas My friend ! this is an eureka moment for me ! what you showed me there helped me a lot ! it actually solved my problem ! I just had to tweak the user_sex set defined in the model the following way : user_sex = {'male':IMG(_src=URL('static','images/male_thumb.png')), 'f

[web2py] Re: Playing around with list/tuples of images on a basic form .... ( educational purpose)

2012-08-29 Thread Don_X
I am guessing that this exercise can only be done the traditional way ( the HTML way ) by putting in the radio buttons directly below each table column containing the image so a user can select one of them ! ( with custom forms ) any cues web2py-users ??? .. there is also the JS way

[web2py] Playing around with list/tuples of images on a basic form .... ( educational purpose)

2012-08-28 Thread Don_X
Hello, I am trying to cook up something with a list or tuples of images, but it does not and cannot show up in the view within a form ... ( let me show some codes ) a basic model file user_sex = [SPAN(IMG(_src=(URL('static','images/male_thumb.png',SPAN(IMG (_src=(URL('static','images/fema

[web2py] Re: I need help understanding an issue with SQLFORM.factory ( in the context of a form wizard )

2012-08-21 Thread Don_X
Finally ... Anthony, Thank you Bro ! You are a real prince !!! ... I got it to work in a wizard format with 3 steps & 3 tables !! ... My god ! this feels liberating ! My only problem now is with the image upload in the form on the last step ... but that is a separate issue ! ... I w

[web2py] Re: I need help understanding an issue with SQLFORM.factory ( in the context of a form wizard )

2012-08-21 Thread Don_X
well .. with "session.testpage " instead of session.wizard in the code pasted above ! --

[web2py] Re: I need help understanding an issue with SQLFORM.factory ( in the context of a form wizard )

2012-08-21 Thread Don_X
thank you Anthony for the explanation .. I tried to do it that way, but it does not work .. what am I doing wrong ??? def testpage(): >STEPS = {0: ('Iagreeto','first_name','last_name','email','password', > 'sex','birth_date','usertype'), # fields for 1st table and first step > 1:

[web2py] Re: I need help understanding an issue with SQLFORM.factory ( in the context of a form wizard )

2012-08-20 Thread Don_X
How can I re-write the lines of code : *if isinstance(fields,tuple): form = SQLFORM.factory(*[f for f in db.mytable if f.name in fields])* to take into account my 3 tables ??? ... that is my real problem ! --

[web2py] I need help understanding an issue with SQLFORM.factory ( in the context of a form wizard )

2012-08-20 Thread Don_X
Hello all ! In order for one to successfully manipulate and/or modify some snippets of code, one needs to understand fully what these snippets of codes do in the context they are used and placed ! ( off course !!! ) There is something that escapes me ... or that I do not fully comprehend ! ...

[web2py] Problems with showing uploaded thumbnail image or to select one of 3 thumbnail images listed !

2012-08-05 Thread Don_X
Hello, I am having problems with showing a thumbnail image once it is uploaded by the user when registering I have been trying to have an uploaded image showing up dynamically on a form before submitting the form with no luck ! I have used the following recipe slices found but it is not behavi

[web2py] Re: web2pyslices.com down

2012-07-31 Thread Don_X
Yeap ... does any one know what is going on ? ... will it be back up & running soon ??? ... On Tuesday, July 31, 2012 9:31:45 AM UTC-4, Dave wrote: > > > it was down yesterday too --

[web2py] Re: is it possible to run web2py parallel to php on apache port 80?

2012-07-29 Thread Don_X
I have succeeded in doing this on my home ubuntu server by using the info on the same link Massimo provided ! ... & not too long ago ... I have tried to do the same thing on a windows 7 ( with the real apache server installed with openssl ) .. it did not go as smoothly .. on windows 7 .. it d

[web2py] Re: Question regarding plugin multiselect ( as a widget ) on a form ...

2012-07-29 Thread Don_X
Thank you Massimo .. I am trying it ( with the last multiselect plugin version 1.8 ) .. and will update this post with what I got ! ... --

[web2py] Question regarding plugin multiselect ( as a widget ) on a form ...

2012-07-29 Thread Don_X
Hello web2py users ... This is a question in 2 folds : I wish to use the multiselect plugin as a widget on a form ( SQLFORM ) as opposed to on a crud as demonstrated in the following example : http://www.web2py.com/plugins/default/multiselect However there is one additional detail that I wish

Re: [web2py] Re: new plugin - web2py Form Wizard - PowerFormWizard

2012-07-23 Thread Don_X
Bruno, I did follow these examples already ... I tried different things ... different approaches ... but for 3 tables it seems not do-able ! I am still searching for ways for it to be done ! .. so far .. no luck ! ... I tried using the method with 3 tables like this ( by combining the method de

Re: [web2py] Re: new plugin - web2py Form Wizard - PowerFormWizard

2012-07-23 Thread Don_X
Bruno Rocha, This is a very nice plugin ! ... very useful, thanks for sharing ! I have to create 2 registrations methods ( one short and one long method to register ) I have one problem, how would you suggest to user the wizard when there are 3 tables involved in the long signup method ?? for

[web2py] Re: Question about an xml file in use with a JS(jquery) Mappicker in web2py ...

2012-07-23 Thread Don_X
5:44:00 PM UTC-4, Don_X wrote: > > thank you Derek > > However, If the data ( text, pics, sizes, tags. ... ) is in the xml file ( > within the static folder ), I will not be able to provide translation for > that information by using the web2py object T( ) for translation

[web2py] Re: Question about an xml file in use with a JS(jquery) Mappicker in web2py ...

2012-07-20 Thread Don_X
ou would put it in > your STATIC folder. > > On Friday, July 20, 2012 10:58:13 AM UTC-7, Don_X wrote: >> >> >> More information regarding this initiative : >> >> the scripts used for the interactive map is the one found at : >> >> http://codecany

[web2py] Re: Question about an xml file in use with a JS(jquery) Mappicker in web2py ...

2012-07-20 Thread Don_X
More information regarding this initiative : the scripts used for the interactive map is the one found at : http://codecanyon.net/item/interactive-svg-canada-map/2355460 It is said to be XML driven and i wish to port it to my web2py app. . But i am hitting a wall with this ! ... the xml

[web2py] Re: Question about an xml file in use with a JS(jquery) Mappicker in web2py ...

2012-07-20 Thread Don_X
Sorry .. it is not called a mappicker but an " interactive map " --

[web2py] Question about an xml file in use with a JS(jquery) Mappicker in web2py ...

2012-07-20 Thread Don_X
Hello everyone ... I am trying to intergrate a jquery mappicker within my web2py app ! One of the js file calls upon an xml file containing the text information related to the location clicked on the map shown on screen ! the js function goes like this : ... ... ... $.ajax({ type: 'G

[web2py] Web2py JS problem with the dropdown arrows in top menu (submenu) not showing up anymore !!??

2012-07-09 Thread Don_X
Hello, I went on vacation and now I am back to keep on thriving with my web2py pet project ! how is everyone doing ?? ... OK .. It is a small problem .. but a problem anyways ... the problem I am having is with the dropdown arrows managed by the web2py JS .. Let me elaborate a bit : --> in th

[web2py] Re: VPS Hosting in Canada

2012-06-29 Thread Don_X
hey Rod ... check out myhosting.com for a good custom VPS deal As soon as I finished with my app ... this is where I'll be heading to there VPS packages are cheaper than iweb ... good luck ... Don On Tuesday, 26 June 2012 10:22:55 UTC-4, Rod Watkins wrote: > > Hello everyone, > > I w

Re: [web2py] Short way to update or insert data from SQLFORM.factory into the main db.my_table ??? ...

2012-06-26 Thread Don_X
2 08:23:57 UTC-4, Anthony wrote: > > db.auth_user.insert(**db.auth_user._filter_fields(form.vars)) > > That will filter out the fields that don't belong to the table. > > Anthony > > On Tuesday, June 26, 2012 8:12:39 AM UTC-4, Don_X wrote: >> >> Thank you Brun

Re: [web2py] Short way to update or insert data from SQLFORM.factory into the main db.my_table ??? ...

2012-06-26 Thread Don_X
Thank you Bruno I believe it would of work but ... I get an error ... Field email_check does not belong to the table I think it is because I check the email entered in the SQLFORM.factory form and the field e-mail_check does not exist in the table it is just a verification scheme !

[web2py] Short way to update or insert data from SQLFORM.factory into the main db.my_table ??? ...

2012-06-25 Thread Don_X
Hello web2py users, I have made a quick sign up form using SQLFORM.factory, all the data entered on the various fields of the form are validating correctly, my error msgs are poping up the way I want ( and not into the form ) My SQLFORM.factory in the controller index file goes like this ( I hav

[web2py] Re: How to effectively use the select_datewidget instead of the popup datepicker calendar !! ???

2012-06-25 Thread Don_X
Finally, .. i got this to work in a semi satisfactory manner .. thank you Again Anthony ! For the ones who may have had or will have the same issue with the select_datewidget ! ... The idea here is 1) put the widget " def select_datewidget(field,value): " at the end of a model file (

[web2py] Re: How to effectively use the select_datewidget instead of the popup datepicker calendar !! ???

2012-06-25 Thread Don_X
Hello Anthony, What i can tell you is : 1) Even on a standalone test ... with no previous field define in a table ... the widget as shown in the web2py dev cookbook does not work the way they have said that it would work ... they might want to update it or to revise it ... ! .. well .. more p

[web2py] Re: How to effectively use the select_datewidget instead of the popup datepicker calendar !! ???

2012-06-23 Thread Don_X
Thank you Anthony ... I renamed the calendar.js and indeed ... the popup does not show up anymore ( good ! ) .. however ... the select_datewidget does not work - what am I doing wrong ??? what am I missing ?? .. Any suggestions ??? how do I make the select_datewidget be used by default now

[web2py] Re: Question about a complex model & the associated form ( from controller to view )

2012-06-20 Thread Don_X
A league will most definitely needs its own database instead of a table ... while a team can have its own table within that league database !!! ... but can a database be created on the fly within the app upon registration ?? On Wednesday, 20 June 2012 10:02:27 UTC-4, Don_X wrote: > >

[web2py] Question about a complex model & the associated form ( from controller to view )

2012-06-20 Thread Don_X
Hello, In the model, in the file db.py I used the auth_user table that comes by default with web2py and I enriched it a bit the following way : db.define_table('auth_user', Field('first_name', type='string', label=T('First Name')), Field

[web2py] Re: helps for the biginer on web2py

2012-06-20 Thread Don_X
When I was starting with python & web2py, the video series made by codeschool.org really jump started it all for me ... beside reading the book ! I suggest to read the first 5 chapters of the book to get familiar with the basic concepts before watching the videos .. and after watching the vid

[web2py] Re: favicon problem

2012-06-17 Thread Don_X
I am having the same problem ... did you find a way to fix this ... please advise ... thank you Don On Monday, 28 May 2012 05:56:07 UTC-4, Marian Siwiak wrote: > > Hello, > > I replaced favicon.ico and favicon.png file in "static" folder of my app, > but on my webpage I still get an old i

[web2py] how to customized a different header if user is logged in !! ...

2012-06-10 Thread Don_X
I am new to web2py ! and new to python ! I have been playing around with web2py and reading and practicing with python for the last month or so ... I have started my app a few weeks ago ... I need some help with defining 3 different headers ( depending on the situation ) 1) My main header ( 100