[web2py] Beginner questions

2010-08-26 Thread Gary
I'm a experienced Python programmer (15+ years), but mostly new to web programming and just several days into my first web2py application. Several questions have come up: 1. On SQLFORM and CRUD forms, is there a way to get a cancel button displayed next to the submit buttons? 2. If I want to p

[web2py] Another beginner question

2010-08-26 Thread Gary
I'm trying to put some access control around some of my functions. When I use the admin interface to define a new auth_permission, the form allows a tablename from a drop-down list containint *ONLY* the 4 predefined auth_* tables. It does not list any of my own tables in the drop-down list. Shou

[web2py:23308] Re: Validation in Custom Form using crud

2009-06-04 Thread Gary
Thank you so much for your help 'offline'. I know that this got more involved than either of us thought. I really appreciate your efforts. Regards, Gary On May 4, 5:43 am, dlypka wrote: > OK, thanks, I'll see if I can modify it to work with CRUD. > > On May 3, 10:46

[web2py:23723] Custom Display Values

2009-06-09 Thread Gary
I'm using crud to interact with a custom view. form.custom.inpval.fieldname and form.custom.dspval.fieldname display the proper value for most field types, but not files, select boxes and checkboxes. The download easily fixes the file display, but I've been unable to find a similar solution to di

[web2py:23747] Re: Custom Display Values

2009-06-09 Thread Gary
7;Town' file. For clarification, does 'new trunk' mean something other than the current release? Thanks. On Jun 9, 12:38 pm, mdipierro wrote: > with the new trunk you can do > > {{=form.custom.widget.fieldname}} > > On Jun 9, 11:06 am, Gary wrote: >

[web2py:23765] Re: Custom Display Values

2009-06-09 Thread Gary
lso didn't display a checkbox where indicated. Appreciate the help. On Jun 9, 2:24 pm, mdipierro wrote: > By trunk we mean "not officially released yet" and "not guaranteed to > work". > > Massimo > > On Jun 9, 12:41 pm, Gary wrote: > >

[web2py:23779] Re: Custom Display Values

2009-06-09 Thread Gary
'id' value rather than the 'lookup' value. Is this helpful or do you need more? Thanks. On Jun 9, 3:51 pm, Hans Donner wrote: > Gary, > how dows your model look like? > And how does it show when you are just using SQLFORM? > > On Tue, Jun 9, 2009 at 9:40 PM, Gary wr

[web2py:23788] Re: Custom Display Values

2009-06-09 Thread Gary
on_poleno}} {{else:}} {{=form.custom.inpval.poleno}} {{pass}} Town Id: {{if session.action in ["update","create"]:}} {{=location_town_id}} {{else:}} {{=form.custom.widget.town_id}} {{pass}} . See the forth line from the bottom. (Caps fo

[web2py:23844] Re: Custom Display Values

2009-06-10 Thread Gary
Massimo, Thank you so much for your feedback. Most of the changes you suggested certainly made the code simpler and easier to read, but I have a couple of issues that I don't understand. 1) It appears that the line: getattr(crud,session.action)(db[tablename],record) executes the crud call, bu

[web2py:23859] Re: Custom Display Values

2009-06-10 Thread Gary
Error: 'NoneType' object is unsubscriptable". Just wanted you to know. Thanks again! On Jun 10, 5:59 pm, mdipierro wrote: > On Jun 10, 3:49 pm, Gary wrote: > > > Massimo, > > > Thank you so much for your feedback.  Most of the changes you > > suggested certainl

[web2py:23860] Re: Custom Display Values

2009-06-10 Thread Gary
dropdown box with a town name, but on read, only the number representing the id is displayed. Can the widget for read be configured to display the selected value as text and check boxes (rather than True/False)? Thanks. On Jun 10, 9:58 pm, Gary wrote: > Massimo, > > Thank you.  You men

[web2py:23892] Re: Custom Display Values

2009-06-11 Thread Gary
Correction. {{=form.custom.labels[fieldname]}} did work in the trunk, but the proper syntax is "label", not "labels". Sorry for the misinformation. On Jun 10, 9:58 pm, Gary wrote: > Massimo, > > Thank you.  You mentioned before that widget worked in the trunk -

[web2py:24091] Re: authentication - login error

2009-06-13 Thread Gary
I'm having the same problem. On Jun 13, 10:34 am, mika wrote: > I'm trying to make an authentication: i've just made new application, > the auth settings in db model are default (I'm using web2py 1.64.1), > and I defined in my default controller two functions: > > @auth.requires_login() > def s

[web2py:24111] Re: authentication - login error

2009-06-13 Thread Gary
Massimo, Don't k On Jun 13, 12:32 pm, mdipierro wrote: > I do not undnerstand how there can be a list into next. Cna you help > debug this? > > On Jun 13, 10:45 am, Gary wrote: > > > I'm having the same problem. > > > On Jun 13, 10:34 am, mi

[web2py:24112] Re: authentication - login error

2009-06-13 Thread Gary
that helps some. Regards, Gary On Jun 13, 12:32 pm, mdipierro wrote: > I do not undnerstand how there can be a list into next. Cna you help > debug this? > > On Jun 13, 10:45 am, Gary wrote: > > > I'm having the same problem. > > > On Jun 13, 10:34 am, mika wr

[web2py:35962] Text box does not scale in custom form

2009-11-24 Thread Gary
ield names are {{=form.custom.widget.fieldname}}. Thanks in advance, Gary --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To u

[web2py:35963] Re: Text box does not scale in custom form

2009-11-24 Thread Gary
Sorry, missed the posting two down titled 'Length'. That solved the problem, but is there a more eloquent way not using JQuery? On Nov 24, 9:44 pm, Gary wrote: > I expected the custom widget for strings to scale to the size of the > length specified in the ORM, but they all c

[web2py:36263] Open new window for print document

2009-12-01 Thread Gary
date works OR I can launch the new form in the same window. I'm searching for the best way to accomplish them asynchronously in different windows. Thanks in advance. Gary -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to

[web2py:36517] Data for GAE

2009-12-04 Thread Gary
db.define_table('prime',Field('value','integer')) def isprime(p): for i in range(2,p): if p%i==0: return False return True if len(db().select(db.prime.id))==0: p=2 for i in range(1000): while not isprime(p): p+=1 db.pri

[web2py:36530] Re: Data for GAE

2009-12-04 Thread Gary
in GAE it required the following db insert to create the table: if len(db(db.prime1.id>0).select())==0: db.prime1.insert(value=2) Your comments forced me to delete the db to test. That sparked the thought that the file needed to be forced to create. Thanks for the help. Gary On Dec 4

[web2py:19782] Missing gluon.settings on GAE

2009-04-14 Thread Gary
I updated to 1.62 this morning and made two changes in the views. When I uploaded to GAE, the application failed with a "600 server error" and the log shows: : No module named settings Traceback (most recent call last): File "/base/data/home/apps/utilityplant/1.332789504321242905/ gaehandler.py

[web2py:19784] Re: Missing gluon.settings on GAE

2009-04-14 Thread Gary
Source from the web page. On Apr 14, 5:08 pm, mdipierro wrote: > Yes, there should be agluon/settings.py that was not there before. > > Did you use bzr, svn or the source from the web page? > > Massimo > > On Apr 14, 3:42 pm, Gary wrote: > > > I updated to

[web2py:19790] Re: Missing gluon.settings on GAE

2009-04-14 Thread Gary
earn. :-) Thanks for a great effort. Regards, Gary On Apr 14, 5:50 pm, mdipierro wrote: > I just downloaded it again and the settings.py is there and works fine > for me. Please download it again. > > Massimo > > On Apr 14, 4:10 pm, Gary wrote: > > > Source from

[web2py:20382] How to use the CRUD functions?

2009-04-23 Thread Gary
This seems so elementary, but it's been bugging me for days. I tried to find more information in the documentation, in the book, searched this group and even read the source (as best I could), but I'm stymied. When I use the function: http://localhost:8001/myapp/default/data/update/person/1 t

[web2py:20387] Re: How to use the CRUD functions?

2009-04-23 Thread Gary
 pm, Álvaro Justen [Turicas] wrote: > On Thu, Apr 23, 2009 at 6:55 PM, Gary wrote: > > > This seems so elementary, but it's been bugging me for days.  I tried > > to find more information in the documentation, in the book, searched > > this group and even read the sourc

[web2py:20456] Re: How to use the CRUD functions?

2009-04-24 Thread Gary
Turicas] wrote: > On Thu, Apr 23, 2009 at 7:17 PM, Gary wrote: > > Thank you Alvaro. > > > Is there a document that details the properties and methods of the > > CRUD classes or is it necessary to read the source? > > You can access web2py > epydoc:http://localh

[web2py:20479] Re: How to use the CRUD functions?

2009-04-24 Thread Gary
Massimo, I'm not sure what you are referring to by 'said that'. I'm just confused. Could you please review the entire thread and see if you could help? Thanks so much, Gary On Apr 24, 4:10 pm, mdipierro wrote: > On Apr 24, 1:27 pm, Gary wrote: > > > OK.  S

[web2py:20582] Override data/update SQLFORM behavior

2009-04-26 Thread Gary
Is there a simple way to replace the automatically generated SQLFORM in the various crud controllers with a custom SQLFORM? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To pos

[web2py:20670] Re: Override data/update SQLFORM behavior

2009-04-27 Thread Gary
dle this? Thank you. Gary On Apr 26, 9:22 pm, mdipierro wrote: > Yes, you can make the form in html as usual for SQLFORM. > > On 26 Apr, 18:37, Gary wrote: > > > Is there a simple way to replace the automatically generated SQLFORM > > in the various crud con

[web2py:20687] Re: Override data/update SQLFORM behavior

2009-04-27 Thread Gary
Massimo, Thank you, Thank you, Thank you! This clarified so much and makes a great deal of sense. Kindest regards, Gary On Apr 27, 5:48 pm, mdipierro wrote: > On Apr 27, 3:14 pm, Gary wrote: > > > Like myapp/default/display_manual_form() in the book, right? > > > Two

[web2py:20692] Re: Override data/update SQLFORM behavior

2009-04-27 Thread Gary
tribute to the documentation. Thanks again, Gary On Apr 27, 6:31 pm, mdipierro wrote: > when you call crud you can also specify lots of options... > > def mycreate(): >     return dict(form=crud.create(db.mytable,next=URL > (...),onaccept=lambda form:pass,onvalidation=lambda form:

[web2py:20804] Re: Override data/update SQLFORM behavior

2009-04-29 Thread Gary
Testfield2: Check to delete: It's obvious that the hidden field 'formname' is required and changes with each submission. I assume that there is a value that can be inserted there to fix that problem, but

[web2py:20991] Validation in Custom Form using crud

2009-05-02 Thread Gary
The following MVC is used to create/update/read a single table. The validation for not empty works with the {{=form}} but not the custom HTML. Both versions are displayed in the same form and the data is changed and validated via either submit button, but the error message is only displayed in t

[web2py:21014] Re: Validation in Custom Form using crud

2009-05-02 Thread Gary
syntax, I still have the same issue with the display. If you have any other ideas I would greatly appreciate them. Thanks and regards, Gary On May 2, 5:21 pm, dlypka wrote: > Look like there are some typos: > > typo #1 (perhaps?): > > > >     'for' in &#

[web2py:21068] Re: Validation in Custom Form using crud

2009-05-03 Thread Gary
ield2}} {{pass}} {{if session.action == "update":}} Check to delete: {{pass}} {{include 'buttons.html'}} ( The following is buttons.html) {{if session.action in ["update","create"]:}} {{else:}} {{pass}} {{=form.hidden_fie

[web2py:21085] Re: Validation in Custom Form using crud

2009-05-03 Thread Gary
ception of formatting (additional cr's and indentation), the generated html code is the same as the custom html code. Without additional code embedded in the form, how would the 'hasattr' be satisfied by the {{=form}} but not the custom html? Thanks, Gary On May 3, 4:09 pm, dlypka wrote

[web2py:21086] Re: Validation in Custom Form using crud

2009-05-03 Thread Gary
ception of formatting (additional cr's and indentation), the generated html code is the same as the custom html code. Without additional code embedded in the form, how would the 'hasattr' be satisfied by the {{=form}} but not the custom html? Thanks, Gary On May 3, 4:09 pm, dlypka wrote

[web2py:21102] Re: Validation in Custom Form using crud

2009-05-03 Thread Gary
Folks, I've taken note of your comments and work to help me with this. Although I'm afraid that I don't have the skills to participate, I really appreciate your efforts. Kindest regards, Gary On May 3, 8:59 pm, dlypka wrote: > FYI > If someone tries to run your cod

[web2py:21108] Re: Validation in Custom Form using crud

2009-05-03 Thread Gary
skeleton of the view that would take most of the work out of the process. I saw on AlterEgo at http://mdp.cti.depaul.edu/AlterEgo/default/show/82 that Massimo built a small application to create this functionality from SQL. I hope that this will be helpful to the project. Regards, Gary PS. He

[web2py:21269] Re: Open to suggestions

2009-05-06 Thread Gary
You might want to look at: http://www.web2py.com/AlterEgo/default/show/205 It provides an updated alternative to {{=form.record.fieldname}} with some additional functionality for custom forms including the data containing "" for add and field label values. Gary. On May 6, 1:11

[web2py:23027] Re: mediawiki markup in web2py wiki?

2009-06-01 Thread Gary
For what it's worth, it seems that this discussion revolves around the technology rather than the process. The repository is almost a mute point. Things are bound to change as the technology improves. A excellent example of this is Google Wave (video available at http://wave.google.com). It wo

[web2py] Urgent required Java Developer - Washington, DC

2014-05-29 Thread Gary .
, strong oops concept, design exposure, and oracle db exposure via java programming. Thanks and Regards, Gurjant Singh - (Gary) Technical Recruiter +1 212 389 9503 ext 208 E: gurjant.si...@damcosoft.com *NY Office: *112 W 34th St, 18th Floor, New York, NY 10120 *NJ Office: *894 Green

Re: [web2py] Re: Beginner questions

2010-08-26 Thread Gary Herron
On 08/26/2010 05:52 AM, mdipierro wrote: On Aug 25, 11:47 pm, Gary wrote: I'm a experienced Python programmer (15+ years), but mostly new to web programming and just several days into my first web2py application. Several questions have come up: 1. On SQLFORM and CRUD forms, is th

Re: [web2py] Another beginner question

2010-08-26 Thread Gary Herron
On 08/26/2010 02:52 PM, Jean-Guy wrote: On 2010-08-26 15:51, Gary wrote: I'm trying to put some access control around some of my functions. When I use the admin interface to define a new auth_permission, the form allows a tablename from a drop-down list containint *ONLY* the 4 predefined

Re: [web2py] Re: Thank You Massimo and all others

2010-09-03 Thread Gary Herron
As a new user of web2py, I agree. The framework has been a joy and the book (third edition) has been very helpful. And in regards to the book, I've found a number of errors, mostly syntax problems (both English and Python). Where, if anywhere, should such things be reported? --

Re: [web2py] Become another user

2010-09-23 Thread Gary Herron
which ever user you wanted without the password. Kenneth Lookup "impersonate" in web2py. -- Gary Herron, PhD. Department of Computer Science DigiPen Institute of Technology (425) 895-4418

Re: [web2py] How to loop through two items

2010-10-03 Thread Gary Herron
(stuff_list, product_list): ... Then the two lists will be walked through in lock step. See http://docs.python.org/library/functions.html for documentation. -- Gary Herron, PhD. Department of Computer Science DigiPen Institute of Technology (425) 895-4418

Re: [web2py] Re: how to: print pretty?

2010-10-04 Thread Gary Herron
'includeFile': {'path': '../aFolder/ file_man.xml'}}, 'packages': {'package': [{'deviceModel': 'Nokia6630', 'installRoot': '/mart/private/ 20008421/mo', 'name': 'package001', 'os': 'symbian', 'osver': 's60'}, {'deviceModel': 'Nokia6630', 'installRoot': '/mart/private/ 20008421/mo', 'name': 'package002', 'os': 'symbian', 'osver': 's60 On Oct 4, 9:29 am, mart wrote: Hi, -- Gary Herron, PhD. Department of Computer Science DigiPen Institute of Technology (425) 895-4418

Re: [web2py] web2py 1.89.2 is OUT

2010-11-16 Thread Gary Herron
On 11/16/2010 11:04 AM, mdipierro wrote: Please check it. It is almost minor bug fixes. Just tried this. Problem: The code tries to load a file named splashlogo.gif, but no such file exists. :-( -- Gary Herron, PhD. Department of Computer Science DigiPen Institute of Technology (425) 895

Re: [web2py] web2py 1.89.2 is OUT

2010-11-16 Thread Gary Herron
On 11/16/2010 11:29 AM, Gary Herron wrote: On 11/16/2010 11:04 AM, mdipierro wrote: Please check it. It is almost minor bug fixes. Just tried this. Problem: The code tries to load a file named splashlogo.gif, but no such file exists. :-( Sorry, I probably should have added that this

Re: [web2py] very long wait for http://127.0.0.1:8000/ on IE and Firefox browsers

2010-11-20 Thread Gary Herron
arlos I never see this with any browser, IE, Firefox, or Chrome. It seems more likely to be a function of the server -- but we'll need a lot more information to debug that. -- Gary Herron, PhD. Department of Computer Science DigiPen Institute of Technology (425) 895-4418

Re: [web2py] Re: web2py 1.90.1 is OUT

2010-12-19 Thread Gary Herron
ktable'is notdefined I (think I) fixed it by replacing two occurrences (lines 405 and 407) of "ktable" with "self.ktable". My app is working with those fixes, but since I have not attempted to figure out what that code is actually doing, I'm hoping that someone who k

Re: [web2py] reply-to setting in Mail()

2011-01-18 Thread Gary Herron
On 01/18/2011 07:18 AM, blackthorne wrote: Is it possible? how? See http://www.catb.org/~esr/faqs/smart-questions.html#intro -- Gary Herron, PhD. Department of Computer Science DigiPen Institute of Technology (425) 895-4418

Re: [web2py] Read excel sheet in web2py

2012-04-28 Thread Gary Herron
Then use with something like wb = xlrd.open_workbook('some-file-name') -- Gary Herron, PhD. Department of Computer Science DigiPen Institute of Technology (425) 895-4418

[web2py] Default Web2Py Application on GAE

2011-02-01 Thread Gary Bee
I have created an application for my business homepage. When I run web2py locally by default it opens a link to the welcome application. I have to edit the url to the application of my homepage. This works fine for development purposes, I can also access the site via the admin interface. I have suc

[web2py] Favicon on GAE

2011-02-01 Thread Gary Bee
I have used a favicon (.png) to get a nice little icon for my website in the browser. This works on my local web2py installation but now I have uploaded it to GAE the favicon does not appear? Any ideas?

[web2py] [SOLVED] Re: Default Web2Py Application on GAE

2011-02-01 Thread Gary Bee
I do apologize. I have found init.py and have edited it to my satisfaction On Feb 1, 9:08 pm, Gary Bee wrote: > I have created an application for my business homepage. > When I run web2py locally by default it opens a link to the welcome > application. I have to edit the u

[web2py] Re: Deployment Confusion

2011-02-02 Thread Gary Bee
Just to follow up on my troubles so far... I have deployed my site using google app engine, just to get it out there. I have adjusted the setting as described in the app engine documentation to get my domain forwarded (is that the right term) to google app engine. I had no succes when trying http:

[web2py] GAE and sending email

2011-02-10 Thread Gary Bee
I am successfully sending an email from my web2py app hosted on GAE: mail.send(to=['webs...@rtplanb.com'],reply_to=form.vars.email, subject=form.vars.Name+' from '+form.vars.Organisation +' Website Enquiry ', message=form.vars.email+' wrote '+form.vars.Enquiry) My p

Re: [web2py] Re: GAE for Dummies

2011-05-18 Thread Gary Bee
Thanks for your reply, I have double checked the app.yaml and the app name matches exactly that of the application in web2py I will just check that the softlinks appear correct as per the slice(again) On 18/05/11 23:09, howesc wrote: i have never seen this error myself, but it seems like perh

[web2py] Invalid view in 1.97.1

2011-06-29 Thread Gary Herron
get invalid view (simple_examples/hello6.html) Any clues, fixes, explanations would be welcome. Thanks, Gary Herron -- Gary Herron, PhD. Department of Computer Science DigiPen Institute of Technology (425) 895-4418

Re: [web2py] Invalid view in 1.97.1

2011-06-30 Thread Gary Herron
_patterns = ['*'] if request.is_local else [] I see. This is a nice solution. Thanks. I'm curious to know what is the security risk being avoided here. I vaguely remember it being discussed here -- time to search the archives I guess. -- Gary Herron, PhD. Department of Computer Scie

[web2py] Getting a reproducible web2py internal error

2011-07-15 Thread Gary Herron
ws XP machine everything works well. Thanks for any help -- Gary Herron, PhD. Department of Computer Science DigiPen Institute of Technology (425) 895-4418

Re: [web2py] Pagination

2011-07-15 Thread Gary Herron
(jquery plugin) layout tables of data with pagination. -- Gary Herron, PhD. Department of Computer Science DigiPen Institute of Technology (425) 895-4418

Re: [web2py] Re: Getting a reproducible web2py internal error

2011-07-15 Thread Gary Herron
t web2py or even the database. Is there an easy way, outside of web2py to test the database for correct functioning? On 07/15/2011 03:00 PM, Massimo Di Pierro wrote: OperationalErrors originate from database, not web2py. Are you using sqlite? It could be a file permission issue. On Jul 15,

[web2py] Re: Problems with the server stalling out. Setting up debuging.

2014-03-21 Thread Gary Climacosa
Hi any did anyone have a chance to fixed this issue? On Monday, February 3, 2014 2:14:21 AM UTC+8, Encompass solutions wrote: > > It seems that I have an issue I can't resolve. > Every once in a while at seemingly the worst and most random times, the > service will stall out. It simply doesn't

Re: [web2py] Re: Problems with the server stalling out. Setting up debuging.

2014-03-22 Thread Gary Climacosa
Thanks we are also planning to migrate to nginx. On Saturday, March 22, 2014, Encompass solutions wrote: > The issue was fixed. Sorry for not seeing the follow up. I switched to > NGIX and everything works perfectly. Haven't seen this issue since. > BR, > Jason Brower > > On Sunday, February

Re: [web2py] bootstrap3 formstyle checkboxes

2015-11-04 Thread Gary Cowell
uot;ul", or "divs" in order to match the formstyle of the > containing form. > > On Wed, Nov 4, 2015 at 2:27 AM, Gary Cowell > wrote: > >> That the labels for boolean fields are consistent in appearance with the >> labels for other classes of field. >> >

Re: [web2py] bootstrap3 formstyle checkboxes

2015-11-06 Thread Gary Cowell
Okay, I see that now. Thank you and everyone else for the input. On Friday, 6 November 2015 07:06:34 UTC, Annet wrote: > > > That the labels for boolean fields are consistent in appearance with the >> labels for other classes of field. >> >> So, emboldened and on the left. >> > > That's not th

[web2py] REST service POST responses

2015-11-09 Thread Gary Cowell
Lookint at providing simple REST API to database tables through web2py. I used this example from the book: @request.restful() def secapi(): response.view = 'generic.'+request.extension def GET(*args,**vars): patterns = 'auto' parser = db.parse_as_rest(patterns,args,vars)

[web2py] Re: Oracle perfomance issues with version 2.12.3

2015-11-09 Thread Gary Cowell
If it was me, I'd eneable oracle events trace and look at the plans and wait times for the two executions. There are a few ways to do this, don't know of a web2py DAL specific one, but look for This article explains. https://oracle-base.com/articles/misc/sql-trace-10046-trcsess-and-tkprof O

[web2py] Re: REST service POST responses

2015-11-10 Thread Gary Cowell
t; as the > response. > > You have a few options: > > 1. Put the result in a dictionary: > > return dict(result=db[table_name].validate_and_insert(**vars)) > > 2. Convert the Row object itself to a dictionary: > > return db[table_name].validate_and_

[web2py] Re: Scheduler - Worker node heartbeats stop randomly

2015-11-12 Thread Gary Cowell
I use supervisord because it brings the configuration of daemon services within a consistent configuration. I can write one supervisord.conf, and so long as the supervisor is installed in any given distro, I can run my services. No need to then worry about upstart vs systemd vs SysV init vs ..

[web2py] Make variable available to all sessions in memory

2015-12-16 Thread Gary Cowell
Hello I want to encrypt fields in the database, because of reasons. I've been through the arguments, but there we have it. I look at this web2py slice: http://www.web2pyslices.com/slice/show/2012/encrypt-information-into-the-database And it gives a good illustration of how to do it in model wi

[web2py] Re: web2py as an API provider

2015-12-16 Thread Gary Cowell
I'm using it to build REST services atop legacy data. So, it certainly can be used in a 'professional' way, whatever that means. I find that DAL is useful, and JSON and REST are easy to implement and as you say, can concentrate on the API rather than the nuts and bolts to a great extent. If yo

[web2py] Re: Make variable available to all sessions in memory

2015-12-16 Thread Gary Cowell
re is a passphrase per user, you would need a unique > key for each user (e.g., the user ID), and you would also need to do some > occasional cleanup of old passphrases. > > Anthony > > On Wednesday, December 16, 2015 at 10:27:22 AM UTC-5, Gary Cowell wrote: >> >> He

[web2py] Re: web2py 2.14.2

2016-03-30 Thread Gary Cowell
Hello Running 2.14.3 - upgraded from 2.12.(something) Seems all the btn-default are now almost invisible? E.g. from the log in page: Sign Up Gives me now. I upgraded web2py, then copied the static/js and static/css from welcome I notice bootstrap version changed from 3.3.4 to 3.3.5. butt

[web2py] Total newbie, advice on storing scans

2014-08-21 Thread Gary Cowell
Hi I'm writing a web app for my home server to allow me to scan and store images of official correspondence, so I can shred the paper and recycle it. A document archive. I have the scanner components written [using pyinsane] I have an idea of the models required, tables to hold the sender, da

[web2py] How to do references, and dropdowns?

2014-08-29 Thread Gary Cowell
Hello I have the following in models: db.define_table('senders', Field('sender','string',length=80,label="Sender")) db.define_table('documents', Field('description','text',requires=IS_LENGTH(256,1),label="Description"), Field('header_date','date',label="Header Date"), Field('rec

[web2py] Re: Total newbie, advice on storing scans

2014-08-29 Thread Gary Cowell
On Thursday, 21 August 2014 16:34:46 UTC+1, Michael Beller wrote: > > Web2py has an 'upload' field type that helps you manage file uploads. > "Upload" is a little bit of a misnomer because you can select the file > path to store the file (or an existing path) and the blob is not stored in > t

[web2py] Re: How to do references, and dropdowns?

2014-09-01 Thread Gary Cowell
On Friday, 29 August 2014 14:22:56 UTC+1, Gary Cowell wrote: > > Hello > > I have the following in models: > > db.define_table('senders', > Field('sender','string',length=80,label="Sender")) > > db.define_table('documen

[web2py] Dropdown based on multiple parents?

2015-01-01 Thread Gary Cowell
Hi, this is probably simple but searching as come up a blank and I'm still very new to web2py I have three tables, 'manufacturer' , 'model', and 'shoe' Manufacturer contains 'Asics','Nike' Then 'model' has parent of 'manufacturer', and will have 'Asics', 'Gel Nimbus' and 'Nike','Vomero' 'sho

[web2py] Format clause for multiple table relationships

2015-01-01 Thread Gary Cowell
I want the 'format' for the dropdown when I create a 'run' entry to be 'manufacturer.name model.model shoe.purchased' e.g. 'Mizuno Wave Rider 10-11-2014' for instance where 'Mizuno' is the manufacturer name, 'Wave Rider' is the model.model, and the date is shoe.purchased I managed to get the

[web2py] Re: Format clause for multiple table relationships

2015-01-02 Thread Gary Cowell
On Friday, 2 January 2015 20:12:31 UTC, Massimo Di Pierro wrote: > > I think you are asking about this: > > db.define_table( > 'manufacturer', > Field('name'), > format = '%(name)s') > > db.define_table( > 'model', > Field('manufacturer', db.manufacturer), > Field('model')

[web2py] Struggling with multi user

2015-01-03 Thread Gary Cowell
w, but I'm learning) Or perhaps using common_filter? Somehow like this: table._common_filter = lambda query: db.shoe.created_by == auth.user.id I don't mind really which way this gets done, but if there's a canonical way, or a best practice way, I'd like to learn that,

[web2py] Re: Struggling with multi user

2015-01-05 Thread Gary Cowell
_common_filter = lambda query: db.shoe.created_by == auth.user_id > > Massimo > > > > On Saturday, 3 January 2015 13:00:24 UTC-6, Gary Cowell wrote: >> >> Hello >> >> Sorry for the probably obvious questions, but I do search for answers >> hone

[web2py] How can I have optional, or vairable buttons in a sqlform.smartgrid 'links' ?

2015-01-14 Thread Gary Cowell
I have a smartgrid, thus: grid = SQLFORM.smartgrid(db.exsystem,linked_tables=['exsystem', 'disks'], user_signature=False, deletable=False, links = [ lambda row: A( SPAN(_class='icon

[web2py] Re: why use the admin interface, at all?

2015-01-29 Thread Gary Cowell
I use the built in editor heavily. Lots of my web2py coding is done on a chromebook, so it's completely perfect for me. Be really hard if it worked any other way than this. On Friday, 12 February 2010 17:35:49 UTC, snfctech wrote: > > I'm just getting started with web2py and I must say - I lo

[web2py] dynamic buttons in sqlform.grid

2015-01-29 Thread Gary Cowell
Hello I have a SQLFORM.grid, where I wanted some buttons to do different things, and to look different based on the status of the entities being reported in the grid. Here's what I did for one of them: links = [ dict(header=T('Running'),body=lambda row: testslot(row

[web2py] Re: submenus in layout

2015-02-10 Thread Gary Cowell
I don't know if I understand your problem, but I do this: adminmenu = [ (T('Admin'), False, '', [ (T('Disk'), False, URL('dynamic', 'diskadmin'), []), (T('Slot'), False, URL('dynamic', 'systemadmin'), []), ]), ] Which creates a cascaded menu option, then I if auth.has_mem

[web2py] web2py on Microsoft Azure PAAS

2015-02-10 Thread Gary Cowell
Anyone any experience on deploying a web2py app on Microsoft Azure Web? Can it be done? -- 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

[web2py] Re: submenus in layout

2015-02-11 Thread Gary Cowell
oh and the reason mine didn't work is, the layout plugins on web2py don't use bootstrap it seems. I changed to using a bootstrap3 scaffold, and a themed bootstrap.min.css, and it worked fine. On Tuesday, 10 February 2015 08:33:01 UTC, Yebach wrote: > > > I would like to create a drop down menu i

[web2py] can we have web2py groups with AD authentication ?

2015-02-11 Thread Gary Cowell
I would like my app to authenticate with AD (ldap) for users and passwords. But, I'm not in control of the LDAP, and I can't get them to add new groups etc. and the app requires users to be in a web2py admin group to do certain admin functions within the app. So at the moment, I'm using standar

[web2py] Difference in TEXT field presentation between View and Edit modes

2015-02-13 Thread Gary Cowell
I have a SQLFORM.grid containing : grid = SQLFORM.grid( query=queryInstalled, fields=[db.e5systemstatus.id, db.e5systemstatus.patch, db.e5systemstatus.patchstatus, db.e

[web2py] Re: can we have web2py groups with AD authentication ?

2015-02-13 Thread Gary Cowell
n actions. > > I've never used such a "mixed system". This is just what it came to my > mind... > > Regards. > > > El miércoles, 11 de febrero de 2015, 0:12:07 (UTC+1), Gary Cowell escribió: >> >> I would like my app to authenticate with AD (ldap) f

[web2py] Re: Difference in TEXT field presentation between View and Edit modes

2015-02-13 Thread Gary Cowell
Many thanks, that worked great. Looks good too in the way it formats it. On Friday, 13 February 2015 19:54:15 UTC, Niphlod wrote: > > HTML doesn't preserve line breaks by default: that's why there are > or tags > > you need a "custom" represent function to fill the cell of the grid with >

[web2py] Re: IMPORTANT - DROPPING SUPPORT FOR PYTHON 2.5?

2015-03-11 Thread Gary Cowell
On Saturday, 7 March 2015 19:18:17 UTC, Massimo Di Pierro wrote: > > Who is opposed? Why? > It would mean support going for Red Hat 5 I think Red Hat 6 is on 2.6, Red Hat 7 is 2.7. Everything I have is at least Red Hat 6. But that would be the reason, most probably -- Resources: - http://

[web2py] How to approach presenting API data in web2py ?

2015-03-28 Thread Gary Cowell
Hello Looking at writing a front end to an AWS orchestration tool in web2py, I already have the functionality required coded in python defs, so just looking at presenting things nicely. One thing I'll have to do a lot of, is present grids and dropdowns of data that have come from lists and dic

[web2py] w2p_clone broke web2py installation

2015-04-05 Thread Gary Cowell
Hello I installed web2py from pip, I think it's at 2.1.1 Then ran w2p_clone to bring in latest version. On launch I get the following error: Traceb Traceback (most recent call last): File "web2py.py", line 18, in import gluon.widget File "/home/gary/python

[web2py] Bug in SQLFORM.factory bootstrap3 formstyles ?

2015-04-12 Thread Gary Cowell
Hi Running with: 2.10.3-stable+timestamp.2015.04.02.21.42.07 (Running on Rocket 1.2.6, Python 2.7.5) I find that this code: xadb = DAL('sqlite:memory:') xadb.define_table('regiontable', Field('region', length=20,label= 'Region')) form = SQLFORM.factory(SQLField('Region', label=

  1   2   >