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
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
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
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 пользо
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)
-
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
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
@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
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
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.
>
>
&
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
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
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
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?
>
>
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
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
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
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
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
@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
_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
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
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
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
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.
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
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
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
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,
before calling auth.register, or by using custom forms.
Jay
ee if I've
somehow broken web2py.
Thanks,
Jay
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
>
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
46 matches
Mail list logo