[web2py] web2py | video course | license terms

2019-11-01 Thread Jay B
Friendly greetings Jay -- 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 message because you are subscribed to the Google Groups "web2

[web2py] Re: Validator IS_NOT_IN_DB not working | web2py

2019-10-18 Thread Jay B
Wow, that's actually how it works! Thank you very much! Am Freitag, 18. Oktober 2019 12:32:17 UTC+2 schrieb Annet: > > What about > > > form = SQLFORM() > if form.process(...).accepted > > > > instead of > > form = SQLFORM().process() > if form.accepted: > > > Best, > Annet > -- Resources: - htt

[web2py] Validator IS_NOT_IN_DB not working | web2py

2019-10-18 Thread Jay B
amount of db objects with the given name is > 0 , but i could not figure out how to stop the form from processing Please let me know how I can fix that problem. Thanks! Jay -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

[web2py] Re: How to easily implement another CSS-Framework

2019-10-12 Thread Jay B
So, do you delete all views or just the layout view? Am Freitag, 11. Oktober 2019 19:01:07 UTC+2 schrieb Ruslan Gareev: > > Hi. Yes, you can delete files. For me it's normal and i use that way in my > projects. > > пятница, 11 октября 2019 г., 10:38:52 UTC+5 пользо

[web2py] Changing the css framework

2019-10-10 Thread Jay B
Hello guys, i'd like to use another css framework for my web2py app. Is there a easy way to replace it and start with a fresh new app? Greetz Jay -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] How to easily implement another CSS-Framework

2019-10-10 Thread Jay B
d of Bootstrap and wonder how to do it best. Or am I forced to delete all CSS files and standard views? I would be happy if you could help me and thank you in advance for all the tips. Greetz Jay -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/w

Re: [web2py] Re: auth.messages.verify_email html template

2014-11-22 Thread Jay Martin
Extremely helpful! Thanks Lisandro. I'll be sure to share any tweaks... On Saturday, November 22, 2014 8:56:06 AM UTC-5, Lisandro wrote: > > ... > > I hope it helps! > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - htt

Re: [web2py] Re: auth.messages.verify_email html template

2014-11-22 Thread Jay Martin
@Lisandro, would happen to have these code snippets handy to share? I'm interested in using the mailgun api too. Either way, thanks for checking! My best, Jay On Tuesday, October 29, 2013 5:46:51 PM UTC-4, Lisandro wrote: > > ... > > For those interested in doing that, is

[web2py] Re: admin access under gunicorn on Heroku

2014-11-08 Thread Jay Martin
ers_443.py file. My site https://teststeps.herokuapp.com/ now has 2 paramters_.py files. The port 5000 file works for running locally with 'foreman start web'. Each heroku dyno sets the PORT var. I'm not sure why its not working. Any suggestions are appreciated... My best, Jay On

[web2py] Re: Correction for setup-web2py-heroku.sh script

2014-10-25 Thread Jay Martin
Thanks Massimo, I'll try it out and submit a PR if the new way doesn't break anything. My best, Jay On Thursday, October 23, 2014 10:20:59 AM UTC-4, Massimo Di Pierro wrote: > > It is a matter of preference but I think you are right. Your approach is > best. > > &

[web2py] Correction for setup-web2py-heroku.sh script

2014-10-22 Thread Jay Martin
ving the psycopg2 install command after venv is created? Like so: sudo pip install virtualenv virtualenv venv --distribute source venv/bin/activate sudo pip install psycopg2 pip freeze > requirements.txt My best, Jay -- Resources: - http://web2py.com - http://web2py.com/book (Documentat

[web2py] Seeking advice on Heroku db parity

2014-10-21 Thread Jay Martin
ku's recommended best practice? Thank you for any experience or advice! My best, Jay -- 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 th

Re: [web2py] Init Script in Web2Py

2014-03-31 Thread Jay Martin
I'm confused as to why this scenario needs caching. Isn't it true that for an empty user table: if cache.ram('init',lambda:db(db.auth_user).isempty(),None): arbitrary_function() will only cache the boolean value True and keep that value (True) in cache forever (until the app is restarted), a

[web2py] Re: Latest thinking -- Bootstrap vs. Foundation?

2014-03-15 Thread Jay Martin
Hi Arnon, Please see this post if you're interested in helping to test BS3 or want to keep up with the progress: https://groups.google.com/forum/#!topic/web2py/oSABtjmnYM0 My best, Jay On Tuesday, March 11, 2014 1:18:41 PM UTC-4, Arnon Marcus wrote: > > Any news on this? > >

[web2py] Re: web2py official site erroneously displays mobile view from google search

2014-03-04 Thread Jay Martin
ode should rule out cookies. I'm not sure what might be causing this, but its been going on for a couple months. Thanks you all for testing. My best, Jay On Tuesday, March 4, 2014 1:29:00 PM UTC-5, Jim S wrote: > > I should clarify. I can reproduce it but don't feel it is a

[web2py] SSL CDN (free)

2013-07-06 Thread Jay Martin
Just found a free SSL CDN and wanted to share with everyone: http://www.jsdelivr.com/ Hope this helpful for someone... -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send

[web2py] Re: web2py components and browser history

2013-05-28 Thread Jay Martin
Thanks for the great detail. I'm curious if you were able to smooth out the flakiness you mentioned or have made any new discoveries since last year? Thanks! Jay On Saturday, January 21, 2012 6:30:58 AM UTC-5, LightDot wrote: > > It seems that nobody cares much for web2py, ajax

[web2py] Re: SPA vs ROCA (and greetings)

2013-05-20 Thread Jay Martin
w is SPA because > it reduces latency, and bandwidth. It seems like so much waste with loading > everything again on each page load for each user action. > > On Monday, May 20, 2013 1:10:49 AM UTC-7, Jay Martin wrote: >> >> Greetings All, >> >> I'm new here. Co

[web2py] SPA vs ROCA (and greetings)

2013-05-20 Thread Jay Martin
o be up to speed soon. In the mean time, *if I can help with anything at all, please let me know.* * * All my best, Jay Meals7, Inc. webapphero.com -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe f

[web2py] Re: why won't web2py create the databases

2012-01-12 Thread Jay
@Likit, > ProgrammingError: (1146, u"Table 'jodb.joke_category' doesn't exist") It looks as though you have '.' (period) in the table name and that is probably causing the problem. If that is not the case, could you show us your db.py file? We could really help then. On Jan 12, 12:03 am, Likit

[web2py] Re: Validators

2011-11-15 Thread Jay
_OR > <http://web2py.com/book/default/docstring/IS_EMPTY_OR>(IS_DATE > <http://web2py.com/book/default/docstring/IS_DATE>()) > > Do what you want.. > > Richard > > > > > > > > On Tue, Nov 15, 2011 at 2:03 PM, Jay wrote: > > In my app some

[web2py] Validators

2011-11-15 Thread Jay
In my app some input fields are optional. As an example, currently IS_DATE() forces the date to be present. I was wondering if it makes sense to allow Null or '' (empty) dates and then use IS_NOT_EMPTY() to force a value to be present in that field. In general, does it appeal to web2py users to us

[web2py] Re: MongoDB and Web2py

2011-10-12 Thread Jay
Here is what I use (in a file models/0.py): import pymongo from pymongo import ASCENDING, DESCENDING def make_mongo_connection(): mdb = pymongo.Connection() return mdb mdb = cache.ram('mongodb', make_mongo_connection, 0) # in the code I use mdb as needed. # On a busy site, it may make s

[web2py] Re: CAS Auth redirect loop

2011-08-31 Thread Jay
The only comment I have is that there may be problem in the code at redirect. Raising an exception in redirect does not seem to work. I would look there. My $.02. Jay

[web2py] Re: Speeding up model execution for large models

2011-08-16 Thread Jay
app. It could have 100's of tables. So keeping up the conditional models could be a nightmare! Regards, Jay Kelkar P.S. Happy 4th Birthday web2py! Many happy returns.

[web2py] Re: MySQL query not reflecting actual state of db

2011-08-14 Thread Jay
This is required because you are using the DAL outside web2py framework, """ from gluon import * import time db = DAL('mysql://web2py:web2p ... """ When used like above, you have to call db.commit to complete the transaction. Normally all database insert/updates/deletes are committed at the end

[web2py] Re: How to use Web2py with Postgres SQL or MySQL installed through XAMPP (Windows) ?

2011-07-23 Thread Jay
ArrC, the proper way is to start the database using xampp (using control panel, or script) then use web2py. Actually web2py will come up even when the database it not up, but to actually interact with it the db needs to be up. So if yo get something like, "failed to ... after 5 tries", just start

Re: [web2py] Re: Making a field non-editable, but writable using SQLFORM

2011-06-16 Thread Jay Shaffstall
I'd been thinking I needed to do that between form creation and the accepts call, but you're right, it works even after that point. I make the call to auth.register, and then modify the readonly attribute, and it works fine. Thanks! Jay On Thu, Jun 16, 2011 at 5:06 PM, DenesL wrot

Re: [web2py] Making a field non-editable, but writable using SQLFORM

2011-06-16 Thread Jay Shaffstall
ag; but I don't know how to do that in this context, where I cannot insert code between the creation on the SQLFORM and the accepts call. Jay On Thu, Jun 16, 2011 at 2:21 PM, Bruno Rocha wrote: > > Sorry, I answered before read entire message, > if you want to chamhe it in form only,

[web2py] Making a field non-editable, but writable using SQLFORM

2011-06-16 Thread Jay Shaffstall
before calling auth.register, or by using custom forms. Jay

[web2py] Controller specific models

2011-06-15 Thread Jay Shaffstall
ee if I've somehow broken web2py. Thanks, Jay

[web2py] Changing columns for TEXTAREA

2011-05-18 Thread Jay Shaffstall
utput does have cols="80" and rows="30". And the number of rows does change appropriately. However, the number of columns displayed for the textarea does not change, despite the HTML having the right value. Is there something else that could be overriding the number of columns? Something in Javascript perhaps? Jay

[web2py] Re: Multiple tables: update/insert/delete: in one form

2011-05-16 Thread Jay
See the very bottom, I am so used to emacs keystrokes, that I accidentally posted this before I was done. :( Similar code works for update too. Jay On May 16, 6:33 pm, Jay wrote: > Vineet, > >  I wonder if this is what you want? > > I use this all the time. I have company info

[web2py] Re: Multiple tables: update/insert/delete: in one form

2011-05-16 Thread Jay
Vineet, I wonder if this is what you want? I use this all the time. I have company info in a table and address in another, and my form contains company and address fields. db.define_table('company', Field('name'), Field('addressid', db.address), migrate='company.table') db.define_ta

[web2py] Two questions: one about markmin and one about SQLFORM

2011-05-16 Thread Jay Shaffstall
I've searched, but not found any information that helps me at my current level of web2py experience. Question 1: how do you insert a single line break (e.g. ) in markmin? I've seen two spaces at the end of lines, but that doesn't seem to work for me. I've seen that you can use as a separator in

[web2py] Re: DB may not be updating fast enough...

2011-04-16 Thread Jay
Just a thought Jason. If this is happening on a MySQL database this may be the problem. This may have to do with transaction isolation. You may have to set the isolation level to READ-COMMITTED. Here is more info: http://www.databasejournal.com/features/mysql/article.php/3393161/MySQL-Transactions

[web2py] Re: Multi-Tenant Web2py

2011-04-11 Thread Jay
SAP the world's biggest ERP program uses the option #3 above. They can host many companies in one system (a system has only one database). Each company has a client number (3 digits). The login screen has four fields. 1. userid, 2. password 3. client# and 4. Language. In the data dictionary - that

[web2py] Re: Dynamic virtual fields

2011-04-10 Thread Jay
Good one Serbitar. Much better than my solution. When I saw your "I dont get it" post, I was reminded of why JavaScript functions return functions instead of values. So they can capture the scope too. Now you have to call this every time you have to access this table, is that right? On Apr 10, 5

[web2py] Re: Dynamic virtual fields

2011-04-09 Thread Jay
PART OF WHAT YOU EVAL, because you open a way to get hacked. NEVER FORGET THIS! This is where programming gets interesting. Jay On Apr 9, 7:34 am, Serbitar wrote: > Sorry, misstyped and sent the message early. So once again: > > I can create database fields from a list like this: &g

[web2py] Re: Major Speedup in trunk 10x

2011-04-06 Thread Jay
translate http://host/CVGFsdf87 to http://google.com (assuming data in cache), what is the fastest way to do it using web2py? Regards, Jay On Mar 16, 1:57 pm, Massimo Di Pierro wrote: > You should also thank Jonathan, we have been working together on this. > > Massimo > > On Mar 1

[web2py] Re: Custom functions in Model

2010-02-17 Thread JAY
there is another way to do this? The way from above works for automatic operations: def _compute(): return request.vars.field1.split(" ")[:1] Field("field2", "string", compute=_compute) But as i said, its not visible in the form for the user. Thanks,

[web2py] Custom functions in Model

2010-02-17 Thread JAY
Execute functions in Model Hi Guys, first i´ve to say i am n(oob)ew to Python and Database things, so please be patient. Is there any general way to execute custom functions in Model, which not only validate and how to implement them? I´ll try to explain with a few examples: First the simple o

[web2py:37468] Re: Switch from http to https within app

2009-12-17 Thread Jay
workspace/newsite/app/gluon/tools.py", line 1418, in f return action(*a, **b) File "/home/jayr/workspace/newsite/app/applications/init/controllers/ profile.py", line 199, in notes print_notes = URL(r=request, a=request.application, c='profile', f='notes_print

[web2py:37451] Re: Switch from http to https within app

2009-12-17 Thread Jay
How do I integrate 0_redefine_url.py into my app such that the URL helper will accept the keyword argument 'secure'? Thanks - Jay On Dec 17, 1:20 am, mdipierro wrote: > I do not think it is a idea because would encourage people to use it > and build non-portable applicati

[web2py:37420] Re: Switch from http to https within app

2009-12-16 Thread Jay
module? 2. How do I integrate 0_redefine_url.py into my app such that the URL helper will accept the keyword argument 'secure'? Thanks - Jay On Dec 10, 5:50 pm, mdipierro wrote: > I would suggest creating a model 0_redefine_url.py that contains: > > _URL=URL >

[web2py:36977] Switch from http to https within app

2009-12-10 Thread Jay
ault/login. We need some controller functions to use http and some https. Can this be done from within the controller/function? If not, what is the ‘best practice’ approach to accomplishing this? - Jay -- You received this message because you are subscribed to the Google Groups "web