[web2py] Re: Access to server variables from within javascript

2013-11-03 Thread david.waldrop
Niphlod thanks for the quick reply. I was heading down that path. I added the following in the viewcode {{res=results}} with the hopes of being able to reference res form javascript. But have not figured it out just yet. Is this the common way to get access to the server/template info for

[web2py] Access to server variables from within javascript

2013-11-03 Thread david.waldrop
How can I access the web2py object passed to the view with Javascript. For example, I am trying to use jquery to retrieve some additional data for the current record being edited. When i try and invoke the jquery call passing the id of the edited record, i.e. results.update_form.custom.dspval.

[web2py] Getting JSON data from a select into Javascript

2013-10-14 Thread david.waldrop
All I am trying to pass data from a function to javascript here is the function in web2py: def getitemtags(inid): jurisdictions = db(db.jurisdiction.aid == inid).select(db.jurisdiction.id, db.jurisdiction.jurisdiction, db.jurisdiction.training, db.jurisdiction.predicted) data = [[row.id

Re: [web2py] Postgress not creating new tables

2013-10-13 Thread david.waldrop
This worked perfectly. I am not sure why the sequence worked though. I thought once I had the .table files created and if I then ran a migrate they would be created in the database. but that obviously did not happen. Do you have time to explain why this sequence worked? Thanks. -- Resource

[web2py] Re: Postgress not creating new tables

2013-10-13 Thread david.waldrop
More testing I can add a fiedl to one of the other existing tables which contradicts the corruption theory a bit. -- 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 Issu

[web2py] Re: Postgress not creating new tables

2013-10-13 Thread david.waldrop
Thanks for the quick response. Here is a snipprt of my db.py migrate_db = True if not request.env.web2py_runtime_gae: ## if NOT running on Google App Engine use SQLite or other DB #db = DAL('sqlite://storage.sqlite') db = DAL('postgres://', migrate_enabled=migrate_db, fake_m

[web2py] Postgress not creating new tables

2013-10-13 Thread david.waldrop
I have an existing web2py application to which i need to add several tables. I defined the tables but they are not getting created in the Postgres database. I reread the book on migrating and ended up trying fake_migrate_all and now have the .table files in the database directory but still no tab

[web2py] Re: cron job not running at all

2012-12-03 Thread david.waldrop
Ok I am giving up on cron and going to try the scheduler. One thing I am not sure of is whether or not the scheduler worker task is started automatically by default? How can I tell if there are any worker tasks executing. In the web faction environment how can I start the worker tasks. And do so a

[web2py] Re: cron job not running at all

2012-12-02 Thread david.waldrop
> > I am still working on this with the hopes of getting it to work on my > local dev machine before deploying to production, but after reading the > forums I am very unsure of the best practice to get a simple background > task that wakes up every 10 (or n minutes) does some stuff (in my case

[web2py] Re: getting access to sqlform.grid forms in a view

2012-12-01 Thread david.waldrop
You are right. As usual. Thanks. > >> > --

[web2py] cron job not running at all

2012-12-01 Thread david.waldrop
I am trying to get the basic cron job to run on a new web2py application but amnot having any success. I read about starting web2py with the -Y option I am running on ubuntu and using the native web2py server I have a db.commit() in the controller function the function runs perfectly when i run th

[web2py] Re: getting access to sqlform.grid forms in a view

2012-11-25 Thread david.waldrop
> > Oops - dumb question - I figured it out. One has to reference the sqlgrid > variable name passed to the view. In my case "results". However, I now > cannot seem to change the width of the desired element, but I can change > the number of rows. Any ideas? {{extend 'layout.html'}} {{if

[web2py] getting access to sqlform.grid forms in a view

2012-11-25 Thread david.waldrop
I am using sqlform.grid and would like to control the display of the update form. I read and saw several posts form which I 1) I see the formname parameter on the sqlgrid and am using the default "web2py_grid. 2) I also saw a post referencing the name of the various forms (I am interested i

[web2py] Weird sorting behavior across environments

2012-10-01 Thread david.waldrop
I have a very weird issue I cannot resolve regarding sorting a dictionary based on a DAL query. The code below runs as expected on my dev box, but emits an error when i push to production (both environments are running the same version of web2py 2.0.0 and python v2.7.3. ... results = {}

[web2py] DAL not migrating auth.settings.extra_fields to Postgres (nor is it creating new tables defined in

2012-07-22 Thread david.waldrop
I create extra fields in auth_user like this ## create all tables needed by auth if not custom tables auth.settings.extra_fields['auth_user'] = [ Field('org_ref', 'integer', label="Organization"), Field('phone', label="Phone"), Field('show1stpage', 'boolean', label="Show Getting Starte

Re: [web2py] Re: problem with left join and SQlFORM.grid

2012-07-22 Thread david.waldrop
ok this is very screwy, the table definition in /databases has the "extra_filelds", but teh postgress db does not. and there doesn't seem to be a way to get web2py to add them, at least not with the migrate options I am aware of. WHat do you think about manually adding the columns to the pos

[web2py] Re: problem with left join and SQlFORM.grid

2012-07-21 Thread david.waldrop
Massimo, it does not accept the groupby in theSQLFORM.grid. 1 2 3. 4. 5. 6. 7. 8. Traceback (most recent call last): File "gluon/restricted.py", line 205, in restricted File "C:/Users/david/My Projects/Miscelaneous/web2py/applications/COPSIS2_1/controllers/org.py"

[web2py] Re: problem with left join and SQlFORM.grid

2012-07-21 Thread david.waldrop
Massimo, thanks, this made progress in that it now does't emit and error, but only shows one row (instead of the 18 records in the table) and the a count for the single row of 39 (which is the total # users in the system). What I need is 18 rows, one for each org, and the # of users for each or

[web2py] problem with left join and SQlFORM.grid

2012-07-21 Thread david.waldrop
I am trying to show the records in a table AND the count of referenced items in a child table using SQLFORM.grid but am not able to get the left join to work. Here is what I have been trying for the past 2+ hours with no success results= SQLFORM.grid(db.org, field

[web2py] Inconsistent behavior with SqlGrid and referenced tables

2012-07-21 Thread david.waldrop
I have a table defined as follows: db.define_table('org', Field('name'), Field('otype',db.orgtypes, label='Type'), Field('jurisdiction',db.jurisdictions), Field('created_by',db.auth_user,readable=True,writable=False), Field('created','datetime',

[web2py] Re: sending email with gmail has stopped working

2012-06-11 Thread david.waldrop
Still have this issue. However I am not sure it has anything to do with the server being blocked by Google. Now when I try in my development environment the emaisl are failing as well. I have tried using the same original gmail credentials, as well as a different smtp server and correspondin

[web2py] sending email with gmail has stopped working

2012-06-11 Thread david.waldrop
I have several applications that use gmail to send invitations and for authorization. Recently they have both stopped working in the production environments yet continue to work when running on my development machines. I have looked at the message boards and tried everything I saw (ensuring t

[web2py] Re: Trouble migrating databases

2012-06-03 Thread david.waldrop
Some minor breakthru. I have fixed "most" (that I know of) of the migration errors - Manually. I was successful at using the DAL option fake_migrate_all = True and migrate_enabled = True which created some of the *.Table files - (but not all, also this did not seem to do anything to help excep

[web2py] Re: Trouble migrating databases

2012-06-03 Thread david.waldrop
More headaches. I gave up on trying to migrate because I do not know what is going on. I suspect the DAL table definitions, the actual database tables, and the mysterious *.table files are out of sync in some weird way. If anyone has any pointers on this I think I will have to figure it out

[web2py] Re: Trouble migrating databases

2012-06-02 Thread david.waldrop
te://storage.sqlite', migrate_enabled=True) > > Do you get an error? If you do not get any error, check which table files > different from the backup and newly created ones. Which version are you > upgrading from? > > > massimo > > > > > On Friday, 1 June

[web2py] Trouble migrating databases

2012-06-01 Thread david.waldrop
I just downloaded the nightly build form Trunk to test the new web2py 2.0 with some of my web2py based solutions. I now have a very weird eroor I think due to migrating the database form postgress (production) to sqllite (development). Here is one of the errors I get: Traceback (most recent c

[web2py] really dumb question

2012-05-31 Thread david.waldrop
I just downloaded and installed the nightly build on a mac laptop. Web2py runs fine. I am able to see the welcome app and create new apps. However I cannot find the directory structure where the apps are located. I have searched in spotlight and finder for a variety of files db.py, my new a

[web2py] enabling jsonp

2012-05-18 Thread david.waldrop
After searching the web I think it is possible for web2py to support jsonp, but there is no concrete example. I am unable to get jsonp to work correctly and would appreciate any advice. I have created generic.jsonp containing the following: {{ ### # response._vars contains the dictionary retur

[web2py] column auth_user.registration_id does not exist ERROR AFTER UPGRADE to 1.99

2012-01-07 Thread david.waldrop
after an upgrade to 1.99 i get an error stating as in the subject above when trying to login. I tried to use the admin interface to inspect the auth_user table, but get the same error in the admin interface. Did something change to the table structures? if so, any idea how I can fix?

[web2py] Re: auth.settings.login_onaccept NOT working as expected

2011-12-28 Thread david.waldrop
Anthony, Thanks for the response. I was NOT aware of the auth_event table. In my case I still think I need my own log table as I am logging certain events in order to generate site specific activity metrics and think it would be convenient to collect all the activity in a single place. Do you

[web2py] auth.settings.login_onaccept NOT working as expected

2011-12-28 Thread david.waldrop
I have the following auth.settings : # log system events auth.settings.login_onaccept = lambda form:logactivity('Login','none') auth.settings.profile_onaccept = lambda form:logactivity('Update Profile','none') auth.settings.register_onaccept = lambda form:logactivity('Register','none') which ca

[web2py] Error after upgrading - column auth_user.registration_id does not exist -

2011-12-27 Thread david.waldrop
I just upgraded to web2py 1.99 for an app that have been operational for over a year and now get the following error. I have looked at all the code and cannot find a reference to registration_id and am not ysing any custom auth. Any help or ideas where to look next would be greatly appreciate

[web2py] Problem understanding imports

2011-11-27 Thread david.waldrop
I am trying to use the suggest widget plugin, but am getting an error on the import. from plugin_suggest_widget import suggest_widget db.auth_user.org_ref.widget = suggest_widget(db.org.name, limitby=(0,10), min_length=1) and get the error: Traceback (most recent call last): File "

[web2py] Help using URLLIB instead of PYCURL

2011-02-13 Thread david.waldrop
I am trying to read form the Twitter realtime stream API using URLLIB instead of PYCURL but am not able to do so. Belw is the PYCURL sample. Anyone have any ideas or samples to get me started on the right track? def getTwitter2(): import pycurl, json, StringIO STREAM_URL = "http://chirpstre

[web2py] still stuck with services and authentication

2010-10-28 Thread david.waldrop
I am very confused. I have a simple service 'getmeetings' which is decorated as XMLRPC. The call also requires authorization and basic authorization is enabled in db.py. Here is what happens 1) When run locally on my dev machine - everything works, if i sent in valid id and pw i get results

[web2py] Re: confused about services and authorization

2010-10-24 Thread david.waldrop
bject: [web2py] Re: confused about services and authorization > > I am not sure you should register services in controller, unless you also > want to expose them as actions. I normally put them in a model. > Anyway... > > @service.xmlrpc > @service.jsonrpc > @service.whet

[web2py] confused about services and authorization

2010-10-24 Thread david.waldrop
I have spent the bulk of last evening and this morning trying to test web2py services and authorization. In addition to setting auth.settings.allow_basic_login = True I have deleted the "call function" in the default controller, created a seperate controller "mmservices",and and populated with the

[web2py] Re: SQLFORM.factory and autocomplete widget

2010-10-17 Thread david.waldrop
do you have any suggestions I can research/try for another approach to get the needed functionality? On Oct 17, 7:03 pm, mdipierro wrote: > Probably not. ajax calls do not execute JS embedded in loaded content. > > On Oct 17, 5:59 pm, "david.waldrop" wrote: > > > &g

[web2py] Re: SQLFORM.factory and autocomplete widget

2010-10-17 Thread david.waldrop
QLFORM.widget.autocomplete > (request, > db.cat.name, id_field=db.cat.id) ) > > On Oct 17, 2:50 pm, "david.waldrop" wrote: > > > > > some minor progress.  The following now lets thge loaded component > > work, but does not do the autocomplete . > > >    

[web2py] Re: SQLFORM.factory and autocomplete widget

2010-10-17 Thread david.waldrop
to get the autocomplete to work inside a loaded component? On Oct 17, 2:24 pm, "david.waldrop" wrote: > I have now tried this > >     addform = > SQLFORM.factory(Field('item_cat'),widget=autocomplete(request, > db.cat.name, id_field=db.cat.id) ) > > but it doesn

[web2py] Re: SQLFORM.factory and autocomplete widget

2010-10-17 Thread david.waldrop
I have now tried this addform = SQLFORM.factory(Field('item_cat'),widget=autocomplete(request, db.cat.name, id_field=db.cat.id) ) but it doesn't work either. On Oct 17, 10:58 am, "david.waldrop" wrote: > I have a form created with SQLFORM.factory containing a

[web2py] SQLFORM.factory and autocomplete widget

2010-10-17 Thread david.waldrop
I have a form created with SQLFORM.factory containing a single field addform = SQLFORM.factory(Field('item_cat')) Is there a way to use the autocomplete widget. I have searched and seen examples where I set the widget in the model, but do cannot find an example of how to associate the autoco

[web2py] Re: Meeting Monkey Beta

2010-09-28 Thread david.waldrop
wow that was quick. the link is now there. On Sep 28, 9:17 pm, b vivek wrote: > There seem to be no links ! > > On Wed, Sep 29, 2010 at 6:40 AM, david.waldrop wrote: > > > > > Over the past month I have built Meeting Monkey.  It is meant as a > > meeting facil

[web2py] Meeting Monkey Beta

2010-09-28 Thread david.waldrop
Over the past month I have built Meeting Monkey. It is meant as a meeting facilitation tool to aid in helping groups think, decide and act together. Please take a look and share with others you think may be interested. I welcome any and all feedback as it will only help me make this better. Pl

[web2py] Meeting Monkey Beta

2010-09-28 Thread david.waldrop
Over the past month I have built Meeting Monkey. It is meant as a meeting facilitation tool to aid in helping groups think, decide and act together. Please take a look and share with others you think may be interested. I welcome any and all feedback as it will only help me make this better. Pl

[web2py] Re: still need some help with how to redirect after register

2010-09-27 Thread david.waldrop
ssion.next) > 0: auth.settings.register_next = session.next what is not clear is why this could not be set in the default/index controller (see previous attempt). On Sep 27, 7:38 am, "david.waldrop" wrote: > massimo,  i need to be able to redirect the user after regis

[web2py] Re: still need some help with how to redirect after register

2010-09-27 Thread david.waldrop
erro wrote: > store the url is session.next and after login if session.next redirect > there and clear the variable. > > On Sep 26, 4:48 am, "david.waldrop" wrote: > > > > > I have an application that enables users to invite others by > > capturing &

[web2py] still need some help with how to redirect after register

2010-09-26 Thread david.waldrop
I have an application that enables users to invite others by capturing their email address and sending an email invite. The invite includes a link to a specific 'community'. When the user clicks the link they are taken to the application. If they are already registered (which is not the case on

[web2py] register_onaccept issue

2010-09-23 Thread david.waldrop
I have an application that enables users to invite others by capturing their email address and sending an email invite. The invite includes a link to a specific 'community'. When the user clicks the link they are taken to the application. If they are already registered (which is not the case on

[web2py] Re: forcing lowercase on auth email address (CLOSED)

2010-09-19 Thread david.waldrop
HC thanks that worked like a charm. I must confess I think this should be a bit more straightforward and I woiuld not have figured out the separate places I needed to manipulate a users email address to make this work.For others who may encounter this need here is a consolidated summary of ens

[web2py] Re: Yet an improved conference management system

2010-09-18 Thread david.waldrop
rro wrote: > requires 1.85.3 > > On Sep 18, 3:53 am, "david.waldrop" wrote: > > > > > i was unable to install thru my admin interface.  running web2py > > Version 1.82.1 (2010-08-05 01:00:12) > > > On Sep 18, 2:12 am, mdipierro wrote: > > &g

[web2py] error when upgrading

2010-09-18 Thread david.waldrop
I am currently running web2py Version 1.82.1 (2010-08-05 01:00:12) on Windows 7. when i try to upgrade I get the following error unable to upgrade because "[Errno 13] Permission denied: 'C:\\Users\ \david\\My Projects\\Miscelaneous\\MeetingMonkey\\web2py/_mysql.pyd I made sure all apps were close

[web2py] Re: forcing lowercase on auth email address

2010-09-18 Thread david.waldrop
n the invitee comes to the site. On Sep 17, 5:54 pm, mdipierro wrote: > requires=IS_LOWER(),IS_EMAIL() > > On Sep 17, 4:40 pm, "david.waldrop" wrote: > > > > > is there an easy way to force email address in the basic auth > > mechanism to always be lower case.  

[web2py] Re: Yet an improved conference management system

2010-09-18 Thread david.waldrop
i was unable to install thru my admin interface. running web2py Version 1.82.1 (2010-08-05 01:00:12) On Sep 18, 2:12 am, mdipierro wrote: > http://code.google.com/p/conf2py/ > > can you try run it and check if you run into any setup/intallation > issues?

[web2py] tooltips with custom forms

2010-09-18 Thread david.waldrop
Does anyone have a suggestion for how to implement a tooltip/rollover capability when using custom forms like below: Meeting Name: {{form.element('input',_name='name')['_size']=50}} {{=form.custom.widget.name}} Password: {{=form.custom.widget.password}} {{=form.custom.label['password']}} St

[web2py] Re: forcing lowercase on auth email address

2010-09-18 Thread david.waldrop
how and where do I apply this to the default auth_user table since I am using the default auth stuff and never see the table def in my code? On Sep 17, 5:54 pm, mdipierro wrote: > requires=IS_LOWER(),IS_EMAIL() > > On Sep 17, 4:40 pm, "david.waldrop" wrote: > > >

[web2py] forcing lowercase on auth email address

2010-09-17 Thread david.waldrop
is there an easy way to force email address in the basic auth mechanism to always be lower case. I am capturing emails in another form and am worried about explicit case matching. I know I can define a custom table, but was wondering if there was a simpler way.

[web2py] weird behavior using LOAD

2010-09-06 Thread david.waldrop
I am using the LOAD command to invoke a custom comment module in a view like this: {{=LOAD('comments','comment',args=(r.id), ajax=True)}}{{pass}} The LOAD statement is called for each row displayed on the view . Note there are multiple rows. The controller is very straight forward and looks lik

[web2py] weird behavior using LOAD

2010-09-06 Thread david.waldrop
I am using the LOAD command to invoke a custom comment module in a view like this: {{=LOAD('comments','comment',args=(r.id), ajax=True)}}{{pass}} The LOAD statement is called for each row displayed on the view . Note there are multiple rows. The controller is very straight forward and looks lik

[web2py] auth.settings.login.next is not taking affect

2010-09-05 Thread david.waldrop
I have an application that uses the built in auth components. Users can come to the site wither by hitting the root url, or via a link that has been emailed which contains a specific community. What I want to happen is the following: 1) if a user enters www.myapp.com they get the default splash

[web2py] Re: manipulating form elements

2010-09-01 Thread david.waldrop
You think right :-) Thanks. On Sep 1, 5:26 pm, mdipierro wrote: > I think > > {{form.element('input',_name='name')['_size']=50}} > > On Sep 1, 4:14 pm, "david.waldrop" wrote: > > > > > I am trying to cus

[web2py] manipulating form elements

2010-09-01 Thread david.waldrop
I am trying to customize a form by explicitly specifying the length of the namefield : {{form.element('input',name='name')['_size']=50}} {{=form.custom.begin}} {{=form.custom.widget.name}} ... This does not seem to work. I have tried putting the statement changing the size both inside

[web2py] Re: plugin wiki

2010-09-01 Thread david.waldrop
I am using web2py Version 1.82.1 (2010-08-05 01:00:12) . Will look at cube2py. does it replace theplugin wiki? On Aug 31, 9:16 am, Bruno Rocha wrote: > What is your web2py version? > > did you try cloning cube2py?http://code.google.com/p/cube2py/ > > 2010/8/3

[web2py] plugin wiki

2010-08-31 Thread david.waldrop
after adding the plugin wiki to the welcome app I get the following message when opening the welcome app: Error traceback 1. 2. 3. 4. 5. 6. Traceback (most recent call last): File "gluon/restricted.py", line 178, in restricted File "C:/Users/david/My Projects/Miscelaneous/MeetingMonkey/web2py/

[web2py] Web2Py developer needed

2010-08-24 Thread david.waldrop
I am working on a application and very much want to continue the development in Web2Py. However I need some help. Despite posting several questions to the forum and getting the basics of the app to work, I am unsure of the correct way of doing things (Controller - view interactions, overall appli

[web2py] redirection question

2010-08-23 Thread david.waldrop
I have a basic update form code that is called via a HREF form another view and form a menu. The problem is the redirect to the referrer is not working. I looked in the forums and have tried to debug. I understand the form is posting back to itself which is why the form is redirected to itself.

[web2py] Error in Rating Plugin????

2010-08-22 Thread david.waldrop
why isn't the rating plugin showing for the other records on the screen??? On Aug 21, 7:34 am, "david.waldrop" wrote: > When using the rating plug in I cannot get the following to work as I > expect: > > {{extend 'layout.html'}} > > >  

[web2py] Plugin Rating

2010-08-21 Thread david.waldrop
When using the rating plug in I cannot get the following to work as I expect: {{extend 'layout.html'}} {{for r in results:}} {{=r.name}} {{=r.posted}} {{=plugin_rating('meeting',r.id)}} {{pass}} the rating is only displayed for the 1st record in results, nothing is show

[web2py] Re: communication between view and controller

2010-08-20 Thread david.waldrop
very impressed with the power of this framework, but I am spending tons of time on trying to get trivial things to work. What would be helpful is an explanation of the top 5 best practices on how controllers and views interact. On Aug 18, 9:15 pm, "david.waldrop" wrote: > I a

[web2py] communication between view and controller

2010-08-18 Thread david.waldrop
I am making some customizations to the tagging plugin and am having a problem. See the code below: {{=form.custom.begin}} {{for link in links:}} {{=link.tag.name}}   {{pass}} {{=form.custom.end}} The problem with the original tagging systems is the users action were not explicit. Fo

[web2py] Re: requiring uniqueness using multiple fields

2010-08-18 Thread david.waldrop
the reference to db.meeting should be db.community. The user is not the same as user.id, but a string representing a user (like an email, or a alias). I think the example you suggested relies on the user being the same as teh current user which is not the case. Think of the participant table as

[web2py] requiring uniqueness using multiple fields

2010-08-18 Thread david.waldrop
I have a table as follows: db.define_table( 'participants', Field('user'), Field('community_id',db.meeting) Field('stuff') ) db.participants.community_id.requires = IS_IN_DB(db,'community.id') What I want to do is require that the user be represented for a given community o

[web2py] Re: Tagging Plugin Help

2010-08-17 Thread david.waldrop
n 'tagging" in the controller "tagging" is never getting invoked. On Aug 17, 5:29 am, "david.waldrop" wrote: > massimo thanks for the response.  It is good to see someone else > either has insomnia or likes to get up way to early.  I swapped out > the co

[web2py] Re: Tagging Plugin Help

2010-08-17 Thread david.waldrop
ing',_}} > > instead. plugin_tagging as a separate piece will no longer be > supported unless somebody adopts it. > > On Aug 16, 7:32 pm, "david.waldrop" wrote: > > > > > I am having a problem with some customization of the tagging plugin. > > I downloaded an

[web2py] Tagging Plugin Help

2010-08-16 Thread david.waldrop
I am having a problem with some customization of the tagging plugin. I downloaded and installed in a test app and all is well. In my application I need to manipulate the data tables. More specifically I need one set of tagging tables (t tables) for each of my partitioned databases. This require

[web2py] Re: database variable scoping and visibility

2010-08-16 Thread david.waldrop
t;       commdb=DAL(name) >       commdb.define_table(.) >       commdb.define_table(.) >       commdb.define_table(.) >       return commdb > > and use it as needed with > > bydb('sqlite://mytempdb.sqlite') > or > bydb() > > On Aug 16, 5:36 am, "david.waldro

[web2py] Re: WikiYou - Showcase

2010-08-16 Thread david.waldrop
Can you explain how you tested the url mapping in development. I have a similar architecture and am not sure how to test the url mapping using localhost. My Scenario is as follows: 1) A user is email link of "http://mycommunity.mydomain.com. 2) They click on link. 3) The web2Py app requires login

[web2py] Re: dynamic ux resizing

2010-08-16 Thread david.waldrop
ight = jQuery(window).height(); >                 win_width = jQuery(window).width(); >                 }); > > On Aug 10, 1:44 pm, "david.waldrop" wrote: > > > > > How does one go about getting an applications UX to dynamically resize > > as the browser window is resized?  Does web2py offer any mechanism for > > this?

[web2py] database variable scoping and visibility

2010-08-16 Thread david.waldrop
I am working on an application and have encountered an issue I cant seem to solve. I have an app based on the supplied scaffolding. It has a "db" variable defined in the model. The db is available to all the other controlers in the application without any problem. Additionally, in one of the co

[web2py] Re: WOW!!

2010-08-14 Thread david.waldrop
> and that should be all you need. > > On Jul 22, 1:58 pm, "david.waldrop" wrote: > > > > > All, I just discovered this amazing framework and am immediately > > switching to it (from adobe) for a current project I am working on. > > It is quite different fro

[web2py] dynamic ux resizing

2010-08-10 Thread david.waldrop
How does one go about getting an applications UX to dynamically resize as the browser window is resized? Does web2py offer any mechanism for this?

[web2py] Auth module requirements

2010-08-09 Thread david.waldrop
Currently the auth systems requires the user to enter first name and last name. Is there a way to turn this off. I see in the Reddit example these fields are replaced by "alias", but note in the book that the fields are required to be in the table. Ideally I want the user to only enter an alias

[web2py] Re: WOW!!

2010-08-09 Thread david.waldrop
meeting.name # somehow determine which name >         db_path = os.path.join(request.folder,'databases',app) >         os.path.rmdir(db_path) # you may need to clear recursively >     form=crud.delete(db.meeting,meeting.id, ondelete=f) >     if form.errors: >         respons

[web2py] Re: WOW!!

2010-08-09 Thread david.waldrop
:44 am, mdipierro wrote: > It may be becase the folder is not empty and rmdir does not work if > the folder is not empty > > On Aug 9, 8:23 am, "david.waldrop" wrote: > > > > > Sorry to keep adding to this thread, but I think this is still > > related.

[web2py] Re: WOW!!

2010-08-09 Thread david.waldrop
f form.errors: response.flash = 'Invalid data.' return dict(form=form) I see there is a method in crud.ondelete but do not know how to reference the name of the community (app=meeting.name in above code) that got deleted. On Aug 7, 11:37 am, "david.waldrop" wrote:

[web2py] Re: simulating inline forms with SQLFORMS

2010-08-07 Thread david.waldrop
it seems i do not have privileges to add files to the thread. On Aug 7, 1:22 pm, mdipierro wrote: > Please post a screenshot. You may be able so solve this imply with css > > On Aug 7, 11:48 am, "david.waldrop" wrote: > > > > > i dont quite follow.  Here is my

[web2py] Re: simulating inline forms with SQLFORMS

2010-08-07 Thread david.waldrop
even more complex with the formstyle stuff, but have to believe there is a simpler way. On Aug 7, 12:39 pm, mdipierro wrote: > {{if form.errors:}} >  error are {{=form.errors}} > {{pass}} > {{=form.custom.begin}} > {{=form.custom.submit}} > > {{=form.custom.end}} > > On

[web2py] simulating inline forms with SQLFORMS

2010-08-07 Thread david.waldrop
I am having trouble controlling the visual aspects fo a SQLFORM. More specifically, I want to enable a text box and a POST button on the top of the screen and have a lsit display below it. The list is gonna be quite large so I do not want the default 2" text box and the button below it, but rathe

[web2py] Re: WOW!!

2010-08-07 Thread david.waldrop
'sqlite://storage.sqlite', folder=db_path) > > I am sure one works but I do not recall which one. Let us know. > > On Aug 7, 8:55 am, "david.waldrop" wrote: > > > > > well almost perfectly.  below is my code: > > >     app=community.name >

[web2py] Re: WOW!!

2010-08-07 Thread david.waldrop
th the name of the ciommunity. The problem is the "thoughts" table is not created in the community sub-folder, but rather the databases folder. I looked up the syntax of the define_table method, buit do not see a way to override the location. On Aug 7, 9:38 am, "david.waldrop" wr

[web2py] Re: WOW!!

2010-08-07 Thread david.waldrop
27;,app) > if not os.path.exists(db_path): os.mkdir(db_path) > db=DAL('sqlite://%s/storage.sqlite' % app) > > On Aug 7, 6:33 am, "david.waldrop" wrote: > > > > > I have now got the url working via DNS as suggested.  But encountered > > another

[web2py] Re: WOW!!

2010-08-07 Thread david.waldrop
an reach your site. > > If you prefer the other style, try web2py/route.py > > On Jul 24, 10:59pm, "david.waldrop" wrote: > > > > > Thnaks for the reply, but I think I was not clear.  I se form you > > example how to dynamically point to a seperate DB.  Bu

[web2py] Re: WOW!!

2010-07-24 Thread david.waldrop
; % community) > > and that should be all you need. > > On Jul 22, 1:58 pm, "david.waldrop" wrote: > > > > > All, I just discovered this amazing framework and am immediately > > switching to it (from adobe) for a current project I am working on. > > It i

[web2py] WOW!!

2010-07-22 Thread david.waldrop
All, I just discovered this amazing framework and am immediately switching to it (from adobe) for a current project I am working on. It is quite different from the way I have built solutions in the past. Here is the basic structure of how I need to approach the problem: 1) I want a user to log in