greetings, one has implemented a system
Login using the following code?: https://peterhudec.github.io/authomatic
--
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
On Thursday, May 21, 2015 at 8:42:12 PM UTC-7,
ke...@amplifieddevelopment.net wrote:
>
> Thanks, Massimo. I can see how that would work well in the web2py
> environment.
>
> In our organization, however, we have heterogeneous systems that use REST
> interfaces to share data. So, I am hoping
Thanks, Massimo. I can see how that would work well in the web2py
environment.
In our organization, however, we have heterogeneous systems that use REST
interfaces to share data. So, I am hoping to find a solution that aligns
as closely as possible with REST principles.
On Tuesday, May 19,
Thanks, yes the web2py is started from /etc/init.d
I wonder if I do that the imported pins will be in the web2py environment?
On Wednesday, 20 May 2015 17:50:11 UTC-4, Dave S wrote:
>
>
>
> On Wednesday, May 20, 2015 at 1:56:50 PM UTC-7, Aydin S wrote:
>>
>> I'm trying to set a GPOI pin to be outp
Thanks for the response, it gives the same response.
In general what's the right way to define more than one scheduled tasks?
I have tried both the following and non worked:
1- Create to models and define each function in there (and set
migrate=False)
2- Define two functions in the same model (a
for anthony's post, i think you can see it in the web2py google groups. he
explain detail about this. for your another question, this is my full code
of the cutted code above that work.
*modules/transaction.py*
def callback_0(session_order):
id = int(current.request.vars.id)
if current.request.va
On Thursday, May 21, 2015 at 4:06:07 PM UTC-7, 黄祥 wrote:
>
> I don't understand why you have the same calculation in your controller
>> and your view,
>>
>
> not sure what do you mean about calculation, i think is about variable
> definition (status and value) i define it on controllers and vi
>
> I don't understand why you have the same calculation in your controller
> and your view,
>
not sure what do you mean about calculation, i think is about variable
definition (status and value) i define it on controllers and views
e.g.
1. if i'm not define the variable status and value in vi
no worries, PR sent out https://github.com/web2py/web2py/pull/974
On Thursday, May 21, 2015 at 9:25:12 PM UTC+2, Lisandro wrote:
>
> Awesome! The fix worked like a charm ;)
>
> Thank you very much Niphlod, I really appreciate your help, you're
> definitely a wise "web2py guru".
> I've been alway
There is a extract tool in script folder. I couldn't get it to work but if
you do, please share:-)
On Thursday, May 21, 2015 at 1:45:37 PM UTC-4, Dave S wrote:
>
>
>
> On Thursday, May 21, 2015 at 4:06:34 AM UTC-7, goome wrote:
>>
>> hello there is some way to export all the data (that have some
Awesome! The fix worked like a charm ;)
Thank you very much Niphlod, I really appreciate your help, you're
definitely a wise "web2py guru".
I've been always grateful for the help received here. I really want to give
something back, but then I read the questions posted, and I really can't
find
Hi,
I'm using a parameter based router like this:
routers = dict(
>
>
>> # base router
>
> BASE=dict(
>
> default_application='welcome',
>
> default_controller = "default",
>
> default_function = "index",
>
> domains={'www.mydomain.nl':'myapp'}
>
> ),
>
On Thursday, May 21, 2015 at 7:13:10 PM UTC+2, Lisandro wrote:
>
> Let me post a more detailed example.
>
> This is a test with three applications.
>
> Two of them ("demo" and "fundapres") use redis to cache the html for
> default/index, with this decorator (notice empty prefix):
> @cache.action
You didn't turn off migrations in the new app, so web2py thinks it needs to
create the table. If you want the new app to control the migrations, you'll
have to run one fake migrate so the new app will have a record of the current
state of the database.
Anthony
--
Resources:
- http://web2py.co
On Thursday, May 21, 2015 at 4:06:34 AM UTC-7, goome wrote:
>
> hello there is some way to export all the data (that have some type
> mismatch from modles/db definitions and real values present) and then
> reload cleaned?
> i tried with db.export_to_csv_file but give me error :
> ValueError: in
from the book :"define_table checks whether or not the corresponding table
exists. If it does not, it generates the SQL to create it and executes the
SQL. If the table does exist but differs from the one being defined, it
generates the SQL to alter the table and executes it. If a field has
chan
Finally!
http://blog.pythonanywhere.com/103/
Not free, but fully managed
mic
--
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 b
On Wednesday, May 20, 2015 at 10:41:16 PM UTC-7, 黄祥 wrote:
>
> hi,
>
> is it possible to have ajax callback return that update css value?
> e.g.
> *controller*
> def callback_2(session_order):
> """ cutted """
> if int(total_debit) == int(total_credit):
> status = 'Balance'
> value = 'text-succes
On Wednesday, May 20, 2015 at 8:30:53 PM UTC-7, 黄祥 wrote:
>
> perhaps you can use form (form, sqlform, grid or crud), and then do form
> validation (onvalidate or form.validate) for compare form vars (form.vars
> or request.vars) value.
>
> ref:
> http://web2py.com/books/default/chapter/29/07/f
Let me post a more detailed example.
This is a test with three applications.
Two of them ("demo" and "fundapres") use redis to cache the html for
default/index, with this decorator (notice empty prefix):
@cache.action(time_expire=30, cache_model=cache.redis, session=False, vars=
False, public=Tr
On Thursday, May 21, 2015 at 6:13:56 PM UTC+2, Manuele wrote:
>
> Hi,
> I need a task that runs every 20" but ti seams that sometimes it gets
> more than the 19" I setup for the timeout.
>
set 18'' . it's a "python issue" that the timeout is not that precise-thing
to rely on. In their defens
XDebug looks nice but is for php only ?
2015-05-20 20:05 GMT+01:00 Ron Chatterjee :
> Few good links for sublime I thought I can share within the community if
> anyone is interested. The django sublime interface walks you through the
> entire sublime setup. I am sure, web2py will be same. That s
the prefix is dependant from request.application, so as long as that one
changes, I don't see how it'll be merged with another application. The keys
you have seems to point out that "demo" is the application name
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- h
Hi,
I need a task that runs every 20" but ti seams that sometimes it gets
more than the 19" I setup for the timeout.
If the task goes timeout it seams the db remains locked and the whole
application stops to answere... How can I by-pass the task timeout?
Any idea?
Thanks a lot
Manuele
--
Re
I have formstyle set to boostrap3_stacked, in case of a readonly field
these fields are rendered rather ugly. I added the following line of
code to the formstyle_bootstrap3_stacked(form, fields) function
if isinstance(controls, basestring) or isinstance(controls, int):
_controls = DIV
Hi! I have a problem while I wanna download a file from database. I dont
wanna save the file in the folder 'uploads', I wanna save it in my
database. I use this example.
db.define_table('libro',
Field('titulo','string',
requires=IS_NOT_EMPTY(error_message='Introduzca título'),label='Titulo'
hi,
i want to create table inheritance using dummy table (from web2py book),
but when i try to mix it with on_define, the result is not expected (no
errors occured)
e.g.
*not work*
def on_define_detail_0(table):
table.product.label = T('123')
""" cutted """
detail_0 = db.Table(db, 'detai
Ifigured out that the function worked because I defined the auth_user table
myself,
since this is not recommenden I customized the table by adding extra fields.
In my self defined table I had tthe following password field:
Field('password', type='password', length=512,
requires=[IS_STRONG(),CRY
I've got the following auth_user table definition:
## add extra fields to auth_user table
auth.settings.extra_fields['auth_user']= [
Field('username', length=32, default='', requires=[IS_LENGTH(32,
error_message='Lengte overschreidt 32 tekens'),
IS_NOT_EMPTY(error_message='Vul gebruikersnaam i
It's a for-profit company. Write to them and tell them you want their
product for web2py.
On Wednesday, May 20, 2015 at 9:03:14 PM UTC-4, jjs0sbw wrote:
>
> https://opbeat.com/
>
> --
> Joe Simpson
> “Reasonable people adapt themselves to the world. Unreasonable people
> attempt to adapt the w
I thought I should show the case here, before submitting any issue, because
I'm not sure if it's really a bug.
I'm using web2py with multiple apps, each app served by a specific domain.
For this, I'm using parameter-based router, and I've set
exclusive_domain=True (with this, the app name is re
hello there is some way to export all the data (that have some type
mismatch from modles/db definitions and real values present) and then
reload cleaned?
i tried with db.export_to_csv_file but give me error :
ValueError: invalid literal for long()
in fact, there are alues that should be double (
that's do the trick, thank you so much anthony for your help.
e.g.
*controllers*
return "jQuery('#status').html('%s');
jQuery('#status').removeClass().addClass('%s');" % (status, value)
*views*
{{if total_debit == total_credit:}}
{{status = "Balance" }}
{{value = "text-success" }}
{{=SPAN(status,
I think there are two problems. First, the class of an element is not a CSS
property, so you probably have to use removeClass and addClass. Second, you
have attempted to pass the Python "value" variable directly into the
Javascript code rather than use string formatting as you (properly) did
wi
34 matches
Mail list logo