Hi, I use pythonanywhere and have an application on it. This application
use wkhtmltopdf, but how can I install wkhtmltopdf. on pythonanywhere You
can't use the console because you don't have sudo privilege. I can see that
if you go to Files section(pythonanywhere) you can upload folder or file
Is it possible to apply migration from console without changing
migrate=False in dal connection?
How can I do it?
Thx
Ivan
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (
Hi!
I'd like to disable selection of date outside a defined preriod
redefining the calendar widget for my datetime form field... I've tryied
this way without success:
1. defining the datetime field with a string widget:
Field("checkin", "datetime", label=T("Check-in date"),
d
Il 01/12/15 10:41, Ivan Gazzola ha scritto:
> Is it possible to apply migration from console without changing
> migrate=False in dal connection?
> How can I do it?
I would try running a script that load the application environment in
which the migrate variable is set to True before it is used in th
Massimo, thank you very much.
I actually had this vision, just like a comment from those involved in the
development of framewrok.
I feel more secure now at work, and I can pass the information to other
friends.
Every day more like web2py, who knows when you have more knowledge can
contribute to
this is much more a question for pythonanywhere techs than web2py users
. isn't it ?
On Tuesday, December 1, 2015 at 10:24:08 AM UTC+1, Alessio Varalta wrote:
>
> Hi, I use pythonanywhere and have an application on it. This application
> use wkhtmltopdf, but how can I install wkhtmltopdf. o
You need to give us more details. But obviously the long running task needs
some way to communicate so it knows it's time to stop. A possibility is to
have it periodically check a variable in the database to see if it has been
aborted.
--
Resources:
- http://web2py.com
- http://web2py.com/book
In the shell, you can do:
db._migrate = True
and if necessary:
db._migrate_enabled = True
Then migrations should work (note, you don't need to call db.commit(), as
create/alter/drop table commands are executed immediately without requiring
a commit).
Anthony
On Tuesday, December 1, 2015 at
Without seeing the traceback, I'm not sure what's causing that, but I see
at least two problems...
query = db(db.company.created_by.belongs(group_members))
>
>
The grid takes a Query, but the above is a Set object -- don't wrap the
query in db().
> grid = SQLFORM.grid(query, orderby=~
Hey Richard,
Sorry for the very late answer I had personal issues that kept me out of
this project.
Yes I try to create an app to "manage" parts of an ldap server such as
display query results (predefined queries) and later, maybe, modify
informations in this ldap server.
On Wednesday, Nove
I'm not sure I was clear enough since there is no answer :p
I have 2 ldap server (A and B) and my web app is using both as
authentication entity
the login_method list in auth.settings is the following :
auth.settings.login_methods=[
auth_ldap(server one,options 1), auth_ldap(server two, options 2)
So that is different... So I guess Simone miss understand your goal... I
think he may had thought you want to tamper with LDAP...
You need the administrator credentials then you can start doing
something... And you should have a look to this project :
https://pypi.python.org/pypi/ldap3
Python LDA
Another think about the problem and not sure if it relevent though...
Let says that what make web2py not support python 3 is SQLFORM or other
highlevel... We may leave them behind and write new tools which will be
compatible with python 2 and 3... And we can prevent user that if they plan
to use w
;-) By now we can plan jump to python4 and skip the (arguably useful)
python3 era entirely ;-)
2015-12-01 17:55 GMT+01:00 Richard Vézina :
> Another think about the problem and not sure if it relevent though...
>
> Let says that what make web2py not support python 3 is SQLFORM or other
> highlevel
That is another option!
:)
Richard
On Tue, Dec 1, 2015 at 1:20 PM, Michele Comitini wrote:
> ;-) By now we can plan jump to python4 and skip the (arguably useful)
> python3 era entirely ;-)
>
> 2015-12-01 17:55 GMT+01:00 Richard Vézina :
> > Another think about the problem and not sure if it r
web2py does not support the SQL UNION statement, but you can separately
query the two tables and generate the union of the two Rows objects via
Python:
all_records = db(db.mytable).select() | db(db.mytable_archive).select()
See
http://web2py.com/books/default/chapter/29/06/the-database-abstrac
it didn't work Stifan.
The links appear regardless If setting is_active == False or True
Perhaps the only way to use a represents clause and not use links
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.
After form processing, the value of a boolean is either True or False, not
"on" or None. If you want a message that works in onvalidation as well as
after processing, you can do:
if form.vars.is_booking:
Anthony
On Monday, November 30, 2015 at 8:33:31 PM UTC-5, 黄祥 wrote:
>
> the error trac
On Monday, November 30, 2015 at 8:26:01 PM UTC-5, 黄祥 wrote:
>
> please try :
> if db.auth_membership.is_active == True:
> links = [...]
> else:
> links = None
>
He wants conditional links for each row -- the above code either generates
all the links or no links.
Anthony
--
Resources:
- http://
On Monday, November 30, 2015 at 8:19:09 PM UTC-5, Alex Glaros wrote:
>
> what is syntax for making links conditional in grid?
>
> I only want links to appear if db.auth_membership.is_active == True
>
> links = [dict(header='Cancel connection', body=lambda row: A('Withdraw my
> invitation', _href=
thanks!
2015-12-01 17:21 GMT-02:00 Anthony :
> web2py does not support the SQL UNION statement, but you can separately
> query the two tables and generate the union of the two Rows objects via
> Python:
>
> all_records = db(db.mytable).select() | db(db.mytable_archive).select()
>
> See
> http://w
works, thanks Stifan and Anthony!
--
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 Group
Thanks for your suggestion, Johann.
I tried it, but doesn't seem to make much difference.
If I look at the source code in my browser, all the links to css and js
files seem to work well...
Tried to put the javascript and css in layout.html.. no results either.
What do I see over the head?
Hen
it works, thank you so much for detail explaination, anthony. another
thing, i encountered it with another field in table that use show_if
condition, and then check that field value
e.g.
in models
db.checking_in.booking_no.show_if = (table.is_booking == True)
in controllers
if form.vars.booking_
sorry, my bad, thank you so much for the correction, anthony
best regards,
stifan
On Wednesday, December 2, 2015 at 2:32:10 AM UTC+7, Anthony wrote:
>
> On Monday, November 30, 2015 at 8:19:09 PM UTC-5, Alex Glaros wrote:
>>
>> what is syntax for making links conditional in grid?
>>
>> I only wan
Hi all,
I'm looking for a way to be able to see all the SQL create statements the
DAL used to generate the database for my app. I was thinking I could use
_lastsql but I'd really rather not delete the whole database to get it to
run those queries again.
My apologies if I've overlooked somethin
there is sql.log file in databases folder of your applications, or you can
simply looking in the appadmin as well (near models)
best regards,
stifan
On Wednesday, December 2, 2015 at 6:37:12 AM UTC+7, Rob N wrote:
>
> Hi all,
>
> I'm looking for a way to be able to see all the SQL create stateme
HI Márcio Almeida,
* As per my opinion i can say Yes as per below points:-*
*1. Great Support from developer groups:-* I felt never stuck in Web2py
as i always got my solution quickly, even Massimo him self will reply
surly.
Many times i felt shy to ask small question but that als
28 matches
Mail list logo