[web2py] Re: Display IS_IN_SET() label

2010-08-25 Thread jeff
Wuth SQLFORM.factory, the way to do that is to use the default arg the Field. On 25 août, 02:58, annet wrote: > In a controller I defined a form: > > form=SQLFORM.factory(Field('bedrijf',requires=IS_IN_SET([2,3,4,5,6,7],labels=['Fitnesscentrum','Fysiofitnesscentrum','Personal > Trainer','Dietist(

[web2py:31322] Re: for row in rows

2009-09-19 Thread jeff
Hello, I'm new to this group and to web2py and even to web development but not completely to Python and thus this suggestion (that could be completely wrong): (and BTW, I would like to use this first post to thank a lot Massimo Di Pierro for his fantastic work !!! ) On 19 sep, 09:27, annet wro

[web2py:20532] Re: psycopg2-2.0.10 install linux ,help me

2009-04-26 Thread jeff
On 26 avr, 00:54, mdipierro wrote: > This looks like a psycopg issue. Mind that you need python 2.5 to run > web2py. > > On Apr 25, 11:53 am, "wengfei2...@163.com" > wrote: > > > [r...@localhost psycopg2-2.0.10]# python setup.py install > > running install > > running build > > running build_p

[web2py] Re: Run Web2py as a Service? on Ubuntu Lucid?

2010-12-18 Thread jeff
When I had this kind of problem, I removed the --quiet and -- background in the /etc/init.d/web2py file (line 65 and 67 of your 3rd file). I was then able to get some error messages when doing /etc/init.d/ web2py start In my case, it helped me to find a stupid error I did. Good luck. On Dec 18,

[web2py] Re: Running PHP on top of Web2Py

2010-12-30 Thread jeff
This is very interesting and could make me save (or waste) a lot of time : I have to move a website from PHP to web2py. The website is small and not really dynamic : the content is in tables and so but the site will be extended (in web2py) and can be see as a static website (but with ugly urls w

[web2py] Re: Running PHP on top of Web2Py

2011-01-08 Thread jeff
I had another idea which is a simplification on my first one : an action acting like a proxy on the php server. I just wrote a little POC that seems to work. Here are the few lines to put in a controller: import urllib def make_get_stuff(an_url): def get_stuff(): stuff=urllib.urlopen

[web2py] Re: T-Shirts web2py

2011-01-29 Thread jeff
How about : Build th web! (AND GET A LIFE) On Jan 26, 3:24 pm, Massimo Di Pierro wrote: > How about > > "get it done!" or "build the web!" > > "get the things done" seems too long. I would buy some T-shirts. :-) > > On Jan 26, 2011, at 7:28 AM, Bruno Rocha wrote: > > > I dont like too much the

[web2py] Re: OpenERP like widgets

2011-03-25 Thread jeff
Some elements about what you are asking about : - The company behind OpenERP (Tiny) wrote the OpenERP client/web server with another (french) company and I guess that the reason they didn't do that on their own is that this is a huge work. - Both clients (the web server you want to rewrote and the

[web2py] Help needed adding rows to a database table...

2010-06-14 Thread Jeff Elkner
addquote.html view, I can fill in the forms and click the submit button without error, but no rows are added to the table. How can I get that to work? The database chapter in the book is not very helpful to a database beginner such as myself, since all the examples are from a shell, and it doesn't show how to connect the pieces together inside an application. Thanks! jeff elkner

[web2py] Setting up a web2py server...

2010-06-14 Thread Jeff Elkner
e would be most appreciated! Thanks. jeff elkner

[web2py] T2, T3, Cube2py ...

2010-07-13 Thread Jeff S
Hi, I'm not sure I understand all of this T2 T3 and Cube2py stuff. I have recently installed web2py(1.76.3) on my computer and I read somewhere that T2, T3 are deprecated and Cube2py would be the new stuff. But what is T2 and T3 anyway? Is it like project code names that were included in web2py

[web2py] Upgrade web2py now(from 1.76.3 to 1.80.1)

2010-07-13 Thread Jeff S
Is there any known caveats to upgrade web2py from from 1.76.3 to 1.80.1? I get the following error: unable to upgrade because "[Errno 13] Permission denied: 'D:\\Inbox\ \Web2py\\web2py/MSVCR71.dll'" Thanks,

[web2py] Re: Upgrade web2py now(from 1.76.3 to 1.80.1)

2010-07-13 Thread Jeff S
Microsoft Windows XP, Professional Version 2002 Service Pack 3 I will re-install web2py. Thanks,

[web2py] SOAP Access

2010-07-14 Thread Jeff S
Any chance that an easy tool will be added to web2py for SOAP access, both in service and client? Although it is not that hard to add a third party like I did with SUDS, but a tightly coupled tool could be usefull. Just a wish. SOAP is a W3C Recommendation Reference: http://www.w3schools.com/soa

[web2py] Re: SOAP Access

2010-07-14 Thread Jeff S
I actually only use the client side to retrieve information from a service provider, but I thought it could be great for some other person/companies to also have the service side to provide on-demand data other than through a web-browser. I mean, some services like Google have the browser access a

[web2py] Wiki in Chap 3 of Documentation

2010-07-21 Thread Jeff S
Does someone have an uploadable version of the wiki application found in chapter 3? The search page does not work on my computer, but I can't understand why. My best guess would be a security feature in Internet Explorer, but I would like to exclude the possibility of an error in my code. The be

[web2py] Re: Wiki in Chap 3 of Documentation

2010-07-23 Thread Jeff S
You can attach the w2p package if you want to, but I modified the "def bg_find()" as you did and now it's working as expected. Thank you, Jeff

[web2py] Re: SOAP Access

2010-07-24 Thread Jeff S
So far, SUDS is working okay. I think I'll stay with it unless I really have problems with it. Thanks all!

[web2py] Re: book revision

2010-07-24 Thread Jeff S
For new users like me, downloadable packed applications would be great with each examples in the book. A few times, the examples were not showing correctly online and the cut&paste on IE browser is not providing the line feed and carriage return showing online. Although, the packed applications d

[web2py] exec_environment exception

2010-01-09 Thread Jeff Bauer
self.url('user', args='login') File "gluon/tools.py", line 500, in url f=f, args=args, vars=vars) File "gluon/html.py", line 173, in URL raise SyntaxError, 'not enough information to build the url' SyntaxError: not enough information

[web2py] repopulating form with data after form.errors encountered

2010-01-09 Thread Jeff Bauer
db.socdiag) 8if form.accepts(request.vars, session): 9response.flash = 'form accepted' 10elif form.errors: 11response.flash = 'form has errors' 12return dict(form=form) Jeff Bauer Rubicon, Inc. -- You received this message because you are subscribed to

[web2py] enforcing a one-to-one relationship

2010-01-09 Thread Jeff Bauer
form column. I'm using sqlite. Jeff Bauer Rubicon, Inc. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr

Re: [web2py] Re: repopulating form with data after form.errors encountered

2010-01-10 Thread Jeff Bauer
form.vars.update(request.vars) <-- what I was looking for, thanks. I also appreciate the simplified code. The original code posted was taken from page 193 of the web2py manual. -Jeff On 01/09/2010 11:32 PM, mdipierro wrote: You can simplify your code def diag_form(): form = SQLF

Re: [web2py] Re: enforcing a one-to-one relationship

2010-01-10 Thread Jeff Bauer
_NOT_IN_DB(db, 'socdiag.socform')) However, with the above code, I was expecting only valid id's (unused) to show appear in the dropdown. Instead ALL socform.id's appear. In any case the suggestion to add: _and=IS_NOT_IN_DB(... to enforce integrity solves my immediate issue.

Re: [web2py] Re: repopulating form with data after form.errors encountered

2010-01-10 Thread Jeff Bauer
s aren't displayed on the form even when they exist, so it's a widget problem I suppose. For completeness: db.socdiag.inpatient_procedure.requires = IS_IN_SET([ \ 'NA - Not applicable','UK - Unknown']) -Jeff On 01/10/2010 12:25 AM, mdipierro wrote: That is the def

Re: [web2py] Re: repopulating form with data after form.errors encountered

2010-01-10 Thread Jeff Bauer
As I'm the one with the issue, I'll take a look. I've got no experience with this codebase however and will probably make queries on irc #web2py if anyone's listening. Should I file a bug report? -Jeff On 01/10/2010 09:30 AM, mdipierro wrote: You are right. it s widget

Re: [web2py] new in trunk RFC

2010-01-10 Thread Jeff Bauer
ns.py", line 5, in for file in os.listdir(path): OSError: [Errno 2] No such file or directory: 'applications/admin/sessions' changeset: 95:451c84611bbc -Jeff On 01/10/2010 09:38 AM, mdipierro wrote: There are two new features in trunk. One will probably stay, the other I do not k

Re: [web2py] Re: enforcing a one-to-one relationship

2010-01-10 Thread Jeff Bauer
There's a further problem here. The scheme below also prevents socdiag from ever being updated, because once the record is created then IS_NOT_IN_DB always fails. -Jeff On 01/10/2010 09:28 AM, mdipierro wrote: Good point. Perhaps the _and solution is not a good one. On Jan 10, 7:59 am,

Re: [web2py] Re: enforcing a one-to-one relationship

2010-01-11 Thread Jeff Bauer
Still fails for me on a record update: 'value already in database' -Jeff On 01/10/2010 09:53 PM, mdipierro wrote: That is easy to fix. In fact it is now fixed in trunk. On Jan 10, 9:42 pm, Jeff Bauer wrote: There's a further problem here. The scheme below also prevents so

Re: [web2py] Anybody going to PyCon?

2010-01-13 Thread Jeff Bauer
If work will let up long enough, I hope to attend ... the reason I couldn't take advantage of pre-registration discount. Assuming I'll be there (60%+), I'd like to see what other people are doing with web2py. -Jeff On 01/12/2010 06:20 PM, mdipierro wrote: Anybody going to

Re: [web2py] Re: choose a value

2010-01-13 Thread Jeff Bauer
7;s a difficult problem to cover all the use cases. By putting your thoughts on a blog, you might encourage comments from other people who have different perspectives. Best regards, -Jeff On 01/13/2010 02:59 PM, Thadeus Burgess wrote: I'm not sure there is a good solution with the curr

[web2py] migration reboot

2010-01-15 Thread Jeff Bauer
not what I'm looking for. I don't want to stop using migration. I just want to remove clutter and restart the process from zero. Use case: When I access my database outside of DAL, I've got a bunch of old columns that are no longer in use. Jeff Bauer Rubicon, Inc. -- You received th

Re: [web2py] settting two vars to same text

2010-01-15 Thread Jeff Bauer
ine? The idiom of a = b = c is common in Python, e.g.: s = longVarName = "My String of Text Thank You Very Much" is Pythonic and often easier to follow the writer's intent. -Jeff -- You received this message because you are subscribed to the Google Groups "web2py-users

Re: [web2py] Re: migration reboot

2010-01-15 Thread Jeff Bauer
On 01/15/2010 03:36 PM, mdipierro wrote: On Jan 15, 3:24 pm, Jeff Bauer wrote: Use case: When I access my database outside of DAL, I've got a bunch of old columns that are no longer in use. I assume you use sqlite. sqlite cannot drop columns.With a different database (if migrate!=False

Re: [web2py] testers needed

2010-01-17 Thread Jeff Bauer
IS_DATE_IN_RANGE and will try it out tomorrow. Jeff Bauer Rubicon, Inc. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2p

[web2py] --no-gui option

2010-01-17 Thread Jeff Bauer
When running web2py on a headless server (e.g. Amazon EC2 instance), it's annoying to get a warning message from the command line and not be able to turn it off. I've attached a patch to fix this behavior as an issue in the mercurial repository. -- Jeff Bauer Rubicon, Inc. -- You rec

Re: [web2py] Table id referenced to another table error?

2010-01-17 Thread Jeff Bauer
',) Or formatted however you want it to appear. BTW: The convention would probably be to use 'person' as your field name in Activity, rather than 'person_id'. Jeff Bauer Rubicon, Inc. On 01/17/2010 08:20 PM, Gibran Rodriguez wrote: I have 2 tables db.define_table

[web2py] dynamic importing from an external module

2010-01-17 Thread Jeff Bauer
ortError: cannot import name RPATH2 Once I've shut down the server and restarted, everything's fine and RPATH2 can be readily imported into the default.py controller. Interesting. -- Jeff Bauer Rubicon, Inc. -- You received this message because you are subscribed to the Google Groups

Re: [web2py] Re: dynamic importing from an external module

2010-01-18 Thread Jeff Bauer
I did not modify sys.path. The dispatcher module is on PYTHONPATH and can be imported from within or outside the web2py server. Jeff Bauer Rubicon, Inc. On 01/18/2010 01:53 AM, mdipierro wrote: Where is the module? Did you chance sys.path? If so, how/where? On Jan 17, 11:32 pm, Jeff Bauer

Re: [web2py] Re: dynamic importing from an external module

2010-01-18 Thread Jeff Bauer
n simply restarting the server. -Jeff On Jan 17, 11:32 pm, Jeff Bauer wrote: I've got an external module /odt/dispatcher.py, with a class defined: class Dispatcher: pass I can import Dispatcher into controllers/default.py. However, if I edit dispatcher.py to add a new element whi

[web2py] UnboundLocalError in gluon/cache.py

2010-01-21 Thread Jeff Bauer
#x27;ve posted the last 5 tickets, and there weren't all that many to begin with. Is this activity taking place elsewhere? One suggestion -- since the project is using mercurial would be to consider bitbucket.org, which we're using for our company. Like google, it would be free for this

[web2py] suggestion: decouple tickets from admin interface

2010-01-21 Thread Jeff Bauer
001:127.0.0.1:8001 m...@192.168.2.56 - get the ticket info - shut everything down That's a lot of work just to get a traceback when attempting rapid development. There are settings where read-only access to the ticket info is justified, even if you don't want to grant users full admin access. -- Je

Re: [web2py] Re: suggestion: decouple tickets from admin interface

2010-01-21 Thread Jeff Bauer
That shouldn't be too hard to do. In the meantime, I realized that I could just grab the tickets from: web2py/applications/myapp/errors Jeff Bauer Rubicon, Inc. On 01/21/2010 08:12 AM, mdipierro wrote: It should be trivial to make a view_tickets app by taking the appropriate action

Re: [web2py] Re: suggestion: decouple tickets from admin interface

2010-01-21 Thread Jeff Bauer
ded a new issue to google code and linked it to this thread. http://code.google.com/p/web2py/issues/detail?id=69 Jeff Bauer Rubicon, Inc. On 01/21/2010 04:07 PM, howesc wrote: I'm using web2py on GAE, and wanted to be able to click on a link and view tickets in that world, so i basical

Re: [web2py] downloading to IE& over https

2010-01-23 Thread Jeff Bauer
ation, and easier to implement than getting your clients to switch/upgrade browsers. You'd only need to do this on a case-by-case basis by checking the browser type/version. With most browsers you could continue to serve your pdfs dynamically. Jeff Bauer Rubicon, Inc. On 01/23/2010 04:22

[web2py:14593] Re: Postgres error

2009-01-05 Thread Jeff Koftinoff
ger, name varchar(40) ); mydb=# create table "user" ( did integer, name varchar(40) ); CREATE TABLE mydb=# insert into "user" VALUES (1,'Jeff Koftinoff'); INSERT 0 1 mydb=# select * from "user"; did | name -+ 1 | Jeff Koftinoff (1

[web2py] Re: janrain logs in but stuck on login screen

2012-12-07 Thread Jeff Kusi
Could somebody address this issue please? Mine is also doing the same thing. here's how my config looks: --- from gluon.tools import Auth, Crud, Service, PluginManager, prettydate auth = Auth(db) from gluon.contrib.login_methods.rpx_account import RPXAccount auth.settings.acti

[web2py] AttributeError: type object 'Field' has no attribute 'Method'

2012-12-24 Thread Jeff Kusi
I am attempting to use the virtual Methods of the dal but I am running into this issue. Here's my code db.define_table('Posts', db.Field('zipcode'), db.Field.Method('distance',lambda row, loc_zip=3:abs(row .zipcode-loc_zip)) ) But I am running

[web2py] Re: AttributeError: type object 'Field' has no attribute 'Method'

2012-12-24 Thread Jeff Kusi
need the functionality for my project anyways. thanks. On Monday, December 24, 2012 8:24:02 AM UTC-5, DenesL wrote: > > Hi Jeff, > > I believe you need web2py 2.3.1 or higher for that. > > > > On Monday, December 24, 2012 1:36:25 AM UTC-5, Jeff Kusi wrote: >>

Re: [web2py] Interesting - Brython (python to javascript)

2012-12-26 Thread Jeff Kusi
I have a question about security (it may be unfounded), Isn't server-side interpretation more secure? Especially when business logic that doesn't pass as "controller" code is embedded into the view code. Brython would exposed such code to a front-end user. What are your thoughts? On Saturday

[web2py] REST API no matching pattern

2012-12-30 Thread Jeff Kusi
I followed the example for the REST API (multiple times actually). However I keep getting *"**no matching pattern"* every time. In fact it looks like the auto pattern is not generating because when I navigate to api/patterns.json, I see {"content": "auto"} instead of the beautiful rendering

[web2py] Re: SQLFORM.factory + Multiple Tables + Upload Field + GAE Blob Problem

2013-01-01 Thread Jeff Kusi
Is there any update on this bug? I am also experiencing it. I am using the workaround suggested by JungHyun Kim I am using 2.3.2. On Monday, August 20, 2012 12:49:14 PM UTC-4, JungHyun Kim wrote: > > Hello! > > I have a problem with upload field. > > I tried to upload a file through one form wi

[web2py] Re: import error debian package

2011-06-09 Thread Jeff Elkner
We copy the math_quiz directory and all its contents from a source install of web2py, where it works, to the application directory of a user created by the debian package, where it gives the error above. Three of us have confirmed this on three separate installations. We are pretty confident i

[web2py] Re: Localize JavaScript

2016-05-28 Thread Jeff Riley
All, Ok I think this would help my situation, but I am missing how to execute the Ajax. I have four views that contain the same javascript and would really like to move to the static js folder, but the javascript requires elements passed to the views from the controllers. The "Drawtext" item

[web2py] Weird form issue

2016-06-05 Thread Jeff Riley
Hello all. I have built many forms in Web2py, but I clearly need another set of eyes. This form only works if I display every signal field for some reason. I am at a loss as to what I have set wrong. I will add a file with all the relevant code. Thank you all very much for you help with thi

[web2py] Re: Weird form issue

2016-06-05 Thread Jeff Riley
Sunday, June 5, 2016 at 6:14:35 PM UTC-5, Mark Graves wrote: > Hey Jeff, > > It looks like you created a sqlform expecting all fields, then the form > was expecting all fields back, but you only used some of them in the view, > so they were not processed. > > Specifically, the

[web2py] Re: Weird form issue

2016-06-06 Thread Jeff Riley
-5, Jeff Riley wrote: > > Hello all. I have built many forms in Web2py, but I clearly need another > set of eyes. This form only works if I display every signal field for some > reason. I am at a loss as to what I have set wrong. I will add a file > with all the relevant code.

[web2py] Re: Weird form issue

2016-06-06 Thread Jeff Riley
Sorry quick update. Rows is returning information, so I must have a problem with my javascript. I still however cannot delete the record from the SQLgrid view. On Monday, June 6, 2016 at 2:38:03 PM UTC-5, Jeff Riley wrote: > > Now I am truly confused. I am able to submit the form and

[web2py] Re: Weird form issue

2016-06-07 Thread Jeff Riley
Mark. Could you contact me at javajeff...@gmail.com. I would like to see if you could help me finish this out and what that might cost. On Monday, June 6, 2016 at 5:10:37 PM UTC-5, Mark Graves wrote: > > Hey Jeff, > > Most likely the date/time format. > > If you can post a

[web2py] Save Full Calendar event to Mysql

2016-06-08 Thread Jeff Riley
Hello all. Has anyone figured out how to save a Jquery Full Calendar event to their Mysql database? I know I should use the Ajax function, but I am not seeing how to get the information from the Full Calendar jquery event dialog. -- Resources: - http://web2py.com - http://web2py.com/book (Do

[web2py] Jquery dropdown

2016-06-10 Thread Jeff Riley
Hello all. I am trying to get Jquery to work on a dropdown. I have the tax payer example from the book working just fine. if(jQuery('#taxpayer_married').prop('checked')) But when I try to get the text of my dropdown it is not seeing it. Do I have something wrong in my syntax? if(jQuery('#

[web2py] Pure HTML form

2016-06-13 Thread Jeff Riley
Hello all. So sorry to bother you again. Since I have to overlay form fields on top of a canvas, I have to build pure HTML form elements (at least that is all I can think to do). My problem is when I submit the form I am getting errors in form even though I am filling out every field. I am

Re: [web2py] Re: Pure HTML form

2016-06-13 Thread Jeff Riley
Dave thank you. I will check this out and see. As far as errors I am just getting the pop-up with no field showing issues. Which I am assuming is because the Web2py Ajax does not handle html form elements. Thank you, Jeff Riley > On Jun 13, 2016, at 6:47 PM, Dave S wrote: > >

[web2py] Re: Pure HTML form

2016-06-14 Thread Jeff Riley
Oh lord folks. I had the same name for two fields. That was my only problem. Thank you all very much. On Monday, June 13, 2016 at 6:27:20 PM UTC-5, Jeff Riley wrote: > Hello all. So sorry to bother you again. Since I have to overlay form > fields on top of a canvas, I have to buil

[web2py] Update Pure HTML form

2016-06-15 Thread Jeff Riley
All. I was going to link this to my "Pure HTML Form" question just not sure how to do that. As you see in that question I was able to get past my copy paste issue and get the create form to work perfectly. Thank you all for the extra eyes. Now I am building the update form and I am getting "

[web2py] Update Pure HTML form

2016-06-15 Thread Jeff Riley
Sorry to be a pest but I really do need an answer for this one so I can finish this update form page please. -- 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) -

[web2py] Re: Update Pure HTML form

2016-06-16 Thread Jeff Riley
Wednesday, June 15, 2016 at 8:52:22 AM UTC-5, Jeff Riley wrote: > > All. I was going to link this to my "Pure HTML Form" question just not > sure how to do that. As you see in that question I was able to get past my > copy paste issue and get the create form to work perfectly. Th

Re: [web2py] Re: Update Pure HTML form

2016-06-16 Thread Jeff Riley
Anthony thank you so very much. I will make these changes. Thank you, Jeff Riley > On Jun 16, 2016, at 11:17 AM, Anthony wrote: > > For update forms, web2py includes the record ID as a hidden field and > verifies that it matches the original record ID on the server to ensure

[web2py] Re: Update Pure HTML form

2016-06-16 Thread Jeff Riley
So I need to know who to get the record ID from the database to pass to the update view. Using the form start and end calls is not working. On Wednesday, June 15, 2016 at 8:52:22 AM UTC-5, Jeff Riley wrote: > > All. I was going to link this to my "Pure HTML Form" question just

[web2py] Re: Update Pure HTML form

2016-06-17 Thread Jeff Riley
Anthony. It was me being a complete idiot. I had not removed the HTML form tags. I have attached the code that is working perfectly now. Thank you so much for have the patience of a Saint. On Wednesday, June 15, 2016 at 8:52:22 AM UTC-5, Jeff Riley wrote: > > All. I was going to lin

[web2py] Behave testing question

2016-06-23 Thread Jeff Riley
Good morning everyone. This is not really a Web2py question, but this group has been so helpful during my little app development. I am using Behave, Selenium and Splinter for my automated testing of my Web2py app. I have run into a dropdown list situation where my db model (attached) is refe

[web2py] Re: Behave testing question

2016-06-23 Thread Jeff Riley
; field, which stores record IDs from the db.manufacturers table, not > manufacturer names. So, in the Behave specification, the value should be > the integer record ID associated with the "Storm Producs Inc." manufacturer. > > Anthony > > On Thursday, June 23, 20

[web2py] Re: Behave testing question

2016-06-23 Thread Jeff Riley
he auth.signature ? > > Em quinta-feira, 23 de junho de 2016 09:50:55 UTC-3, Jeff Riley escreveu: >> >> Good morning everyone. This is not really a Web2py question, but this >> group has been so helpful during my little app development. I am using >> Behave, Selen

[web2py] show_if multiple selections

2016-07-07 Thread Jeff Riley
Hello all. I am trying to get the line below from my db.py file to work. Currently it is only working for the first entry "Mood". Any ideas? db.events.event_level.show_if = ((db.events.event_type == "Mood") or (db.events.event_type == "Headache") or (db.events

[web2py] Re: show_if multiple selections

2016-07-07 Thread Jeff Riley
> > http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#belongs > > Em quinta-feira, 7 de julho de 2016 06:24:08 UTC-3, Jeff Riley escreveu: >> >> Hello all. I am trying to get the line below from my db.py file to >

[web2py] Pythonanywhere Timezone

2016-07-07 Thread Jeff Riley
Hello all. Me again. I have run into an interesting issue. I have installed and followed niphlod's w2p_timezone_plugin. In order to make it work on my local PC I need to setup my db.py as follows. import pytz user_timezone = session.plugin_timezone_tx or 'UTC' db.define_table('events',

Re: [web2py] Re: Pythonanywhere Timezone

2016-07-07 Thread Jeff Riley
I have that in the default.py file. I will send the code when I get to my computer. Thank you, Jeff Riley > On Jul 7, 2016, at 5:10 PM, Marlysson Silva wrote: > > Where you are inicialize session.plugin_timezone_tx ? > > I too already had this issue, this happen because

[web2py] Re: Pythonanywhere Timezone

2016-07-07 Thread Jeff Riley
Here is the code as promised for the db.py and default.py. On Thursday, July 7, 2016 at 2:19:10 PM UTC-5, Jeff Riley wrote: > > Hello all. Me again. I have run into an interesting issue. I have > installed and followed niphlod's w2p_timezone_plugin. In order to make it > wo

[web2py] Re: Pythonanywhere Timezone

2016-07-08 Thread Jeff Riley
PM UTC-5, Jeff Riley wrote: > > Hello all. Me again. I have run into an interesting issue. I have > installed and followed niphlod's w2p_timezone_plugin. In order to make it > work on my local PC I need to setup my db.py as follows. > > import pytz > user_timezone =

[web2py] Re: Pythonanywhere Timezone

2016-07-08 Thread Jeff Riley
want timezone by any place, then I go prepare a article showing > what I made to solved this. > > Em sexta-feira, 8 de julho de 2016 09:56:48 UTC-3, Jeff Riley escreveu: >> >> Just in case anyone is wondering why I would build such a strange little >> web app, it is for my

RE: [web2py] Re: Pythonanywhere Timezone

2016-07-08 Thread Jeff Riley
https://github.com/Sailor972/medicaltracker.git Sent from Mail for Windows 10 From: Marlysson Silva -- 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

Re: [web2py] Re: Pythonanywhere Timezone

2016-07-10 Thread Jeff Riley
Great thank you Marlysson. I will try this as soon as I can. Hopefully tomorrow. Thank you, Jeff Riley > On Jul 10, 2016, at 4:39 PM, Marlysson Silva wrote: > > You try to make this: > > 1. Add library in the front-end to get user timezone ( this code need to be > in t

[web2py] Re: Anyone ever done a braintree integration with web2py?

2016-07-10 Thread Jeff Lipkowitz
No, but I wonder how you would do an integration for payment. On Friday, 30 May 2014 03:19:20 UTC-5, Mark Graves wrote: > > Hey everyone, > > Using braintree to process payments in an app I'm working on. Anyone ever > done it and willing to answer a few questions? > > (I checked their documenta

[web2py] Re: Pythonanywhere Timezone

2016-07-11 Thread Jeff Riley
re handled by > timezones. > > I'm creating this application to demonstrate this, if you want look.. > > http://marlysson.pythonanywhere.com/timezone > > At app, the *Hour "your PC"* is datetime.now() simulating datetime of user, > just that it's datetim

Re: [web2py] Re: Pythonanywhere Timezone

2016-07-11 Thread Jeff Riley
The plugin Thank you, Jeff Riley > On Jul 11, 2016, at 7:25 AM, Marlysson Silva wrote: > > Hm, in which file? > > You removed the pytz library or a plugin that already was in your code > previously? > > > 2016-07-11 9:19 GMT-03:00 Jeff Riley : >> H

Re: [web2py] Re: Pythonanywhere Timezone

2016-07-11 Thread Jeff Riley
Let me attach the new code or are you able to see the git hub. If so I will push to that. Thank you, Jeff Riley > On Jul 11, 2016, at 7:29 AM, Marlysson Silva wrote: > > I think that I know where are missing pytz.. you put library in controller > define_timezone() .. > >

Re: [web2py] Re: Pythonanywhere Timezone

2016-07-11 Thread Jeff Riley
here is the new db.py, default.py, and index.html since that is the opening page. On Monday, July 11, 2016 at 7:31:04 AM UTC-5, Jeff Riley wrote: > > Let me attach the new code or are you able to see the git hub. If so I > will push to that. > > Thank you, > Jeff Riley > &g

Re: [web2py] Re: Pythonanywhere Timezone

2016-07-11 Thread Jeff Riley
I have tried to get to the index page and I have gone to admin and then the database tab so I can setup the authorized user. Both give me the same error Thank you, Jeff Riley > On Jul 11, 2016, at 7:38 AM, Marlysson Silva wrote: > > Might put on github , but dont I can access them n

Re: [web2py] Re: Pythonanywhere Timezone

2016-07-11 Thread Jeff Riley
Yes I do. I am not that advanced to be able to handle more than one lol. I will make that change. Thank you, Jeff Riley > On Jul 11, 2016, at 7:48 AM, Marlysson Silva wrote: > > You use just one model.py? > if yes, change this line: > > IS_DATETIME(format=("%m

[web2py] Looking for a web2py contractor

2016-09-23 Thread Jeff Lipkowitz
I'm looking for a web2py contractor with SOAP experience. Please send resumes and work experience examples to j...@redbrickanalytics.com -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2

[web2py] Re: Looking for a web2py contractor

2016-09-26 Thread Jeff Lipkowitz
Looking forward! On Friday, 23 September 2016 10:49:52 UTC-5, Jeff Lipkowitz wrote: > > I'm looking for a web2py contractor with SOAP experience. > > Please send resumes and work experience examples to > j...@redbrickanalytics.com > -- Resources: - http://web2py.com -

[web2py] Re: Looking for a web2py contractor

2016-09-26 Thread Jeff Lipkowitz
Please send a email for more details On Friday, 23 September 2016 10:49:52 UTC-5, Jeff Lipkowitz wrote: > > I'm looking for a web2py contractor with SOAP experience. > > Please send resumes and work experience examples to > j...@redbrickanalytics.com > -- Resourc

[web2py] looking for a web2py contractor with SOAP experience.

2016-09-26 Thread Jeff Lipkowitz
I'm looking for a web2py contractor with SOAP experience. Please send resumes and work experience examples to j...@redbrickanalytics.com -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2

[web2py] Change Grid Add Button URL

2016-03-13 Thread Jeff Riley
Hello everyone, I am so close to having my project finished. I need to be able to override the URL in the SQLFORM.grid 'Add Record' button. I also have the added problem in that I have linked tables in my grid and would like to override their add buttons also. I have gone through almost all

[web2py] Re: Change Grid Add Button URL

2016-03-13 Thread Jeff Riley
On Sunday, March 13, 2016 at 7:04:56 PM UTC-5, Jeff Riley wrote: > > Hello everyone, > > I am so close to having my project finished. I need to be able to > override the URL in the SQLFORM.grid 'Add Record' button. I also have the > added problem in that I have

[web2py] SQLFORM.smartgrid displaying links

2016-03-15 Thread Jeff Riley
Hello all, I have the following SQLFORM.smartgrid defined. form = SQLFORM.smartgrid(db.customer, linked_tables=['address', 'sheet', 'sheet_archive'], searchable= dict(customer=True, address=False, sheet=True), create=True, paginate=20, m

[web2py] URL parsing in controller

2016-03-18 Thread Jeff Riley
Hello All, I am pulling my hair out. I am trying to redirect the view button on a smartgrid. I can get the button to redirect to the view I want, but I cannot parse the URL correctly to get the correct sheet id. Here is my controller @auth.requires_membership('manager') def manage_customers(

[web2py] Re: URL parsing in controller

2016-03-18 Thread Jeff Riley
Ah you are totally correct. The controller is default and manage_customers is the function. I am still getting used to these constructs. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/i

Re: [web2py] Re: URL parsing in controller

2016-03-19 Thread Jeff Riley
trouble understanding how to grab the customer id and the sheet id. Thank you, Jeff Riley > On Mar 18, 2016, at 3:58 PM, Dave S wrote: > > > >> On Friday, March 18, 2016 at 1:18:23 PM UTC-7, webm...@trytha.com wrote: >> Maybe something about "args=request.args(2,

[web2py] Re: URL parsing in controller

2016-03-19 Thread Jeff Riley
trouble understanding how to grab the customer id and the sheet id. Thank you, Jeff Riley -- 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

  1   2   >