Are you running these commands from the command
line:
http://web2py.com/books/default/chapter/29/04/the-core#Command-line-options
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/
I found code to force modal to close on stackOverflow. Placed in .load
view.
Doesn't seem like the most elegant solution. but it works except that
session.flash doesn't display.
$(modal).on("click", 'input[type="submit"]', (e) ->
modal.modal('hide')
--
Resources:
- http://web2py.
https://www.packtpub.com/web-development/web2py-application-development-cookbook
Page 61
On Sunday, August 28, 2016 at 8:42:52 PM UTC-4, Massimo Di Pierro wrote:
>
> Do not know where it is. It is possible I did not save it.
>
> On Monday, 22 August 2016 16:29:17 UTC-5, pbreit wrote:
>>
>> Is the
darken modal mode doesn't go away after redirect from child .load document.
Data is correctly written that was entered
Perhaps the .load document needs some jquery or other js to work? Tool tip
needed this in the .load doc to work:
$(function () {
$('[data-toggle="tooltip"]').tool
>
> def f1(field,value):
> SQLFORM.widgets.string.widget(field,value,_placeholder='descripción'),
>
> Works.
> Field("Description", "text", label='alguna
> cosa',requires=IS_NOT_EMPTY(),default=None, lambda f,v:
> SQLFORM.widgets.string.widget(f, v, _placeholder='descripción')),
>
>
> But n
That's not the error you would get if you were using a reserved word. The
problem is that at that point in the code execution, the db object has not
been defined. Note, when you click the database admin button, the
appadmin.py controller is executed. Is your db object defined in another
control
>
> {{=A(site.website, _title = T("Web site"), _target = "_blank", _href =
> "%s" % site.website) }}
>
Note, _href="%s" % site.website is simply equivalent to _href=site.website
(no reason for the string formatting). The problem here is with the actual
value of site.website, not how it is spec
In HTML, if you want to specify an absolute URL, the "href" attribute must
start with "http(s)://". Otherwise, the "href" attribute is considered to
be relative to the URL of the current page (i.e., the browser simply
appends it to the current URL). The URL you see when hovering over the link
i
This cannot be done. It is a feature not a bug. The purpose of the salt in
the hashed password is to prevent brute force attacks to the database. What
you are doing is the brute force attack.
The only way to do it is to select all records. Loop one by one and compare
them with
encpwd =
CRYPT
break
form = SQLFORM.factory(db.auth_user, db.auth_dummy,
extra_fields=extra_fields)
form.append(Recaptcha2(public_key = '...', private_key = ''))
into
recaptcha = Recaptcha2(public_key = '...', private_key = '')
form = SQLFORM.factory(db.auth_user, db.auth_dummy,
extra_fields=extra_fields
It is telling you that Field('image','upload',uploadfs = myfs,
uploadfolder='...')) requires the uplaodfolder else does not know where to
put it in S3.
On Friday, 26 August 2016 16:07:51 UTC-5, ad...@swcacloud.com wrote:
>
> This works great when using SQLFORM:
>
> import fs.s3fs
> myfs = fs.s3f
Not sure I understand what you mean. Do you want emails to go out using a
different network interface than the incoming http connections?
On Friday, 26 August 2016 08:19:36 UTC-5, Saifuddin Rangwala wrote:
>
> I meant to say: I tried searching and found a few threads where people
> tried attem
It cannot handle self references.
On Monday, 22 August 2016 22:47:48 UTC-5, pbreit wrote:
>
> Trying to populate:
>
> db.define_table('comment',
> Field('post_id', 'reference post'),
> Field('parent_comment', 'reference comment'),
> Field('body', 'text', requires=IS_NOT_EMPTY()),
>
Do not know where it is. It is possible I did not save it.
On Monday, 22 August 2016 16:29:17 UTC-5, pbreit wrote:
>
> Is the Reddit Clone source code from the Vimeo videos (
> https://vimeo.com/104823162) available anywhere? I saw the Reddit app in
> the "appliances" source: https://github.com/m
if you have a .w2p file you can do:
cd web2py/applications
mkdir myapp
cd myapp
tar zxvf /path/to/the/web2py.app..w2p
On Monday, 22 August 2016 13:17:08 UTC-5, Varad Karmarkar wrote:
>
> I'm not using the web interface. Any assistance would be appreciated.
>
--
Resources:
- http://web2py.com
-
Hi All.
I have a big problem to connect to my DB2 with nginx+uwsgi+web2py.
everything works fine via "python web2py.py -p 8080"
If start my Webpage,i get this error:
Error ticket for "init"
Ticket ID
127.0.0.1.2016-08-26.04-58-56.762c9daf-b362-412c-a0e5-8597f467f3a0
Failure to connect, tried 5
I've tried adding a model for "Containers" and "ContainerTypes" each time I
get an error when it tries to create the tables when I click the Database
Admin button.
The other tables I'm defining are working fine. I have a few other tables
that have "Type" in their mode/table name so when I could
Hi Tim,
I tried the inline edit for sqlform grid.
The problem I have is there is only one submit button and whenever I edit
something and submit, all the records' update time becomes the same.
Is it possible to have one submit button for each row?
On Friday, February 13, 2015 at 11:36:32 AM UTC-
ola,
def not lambda?
def f1(field,value):
SQLFORM.widgets.string.widget(field,value,_placeholder='descripción'),
Works.
Field("Description", "text", label='alguna
cosa',requires=IS_NOT_EMPTY(),default=None, lambda f,v:
SQLFORM.widgets.string.widget(f, v, _placeholder='descripción')),
Bu
Hi
Need help
new installation error: unable to create welcome.w2p file
I have this error on first run of web2py. Then is i run it again it works
but does not load the welcome page.
I installed web2py using git clone. and trying to run Eden on my macbook
but web2py does not seem to run.
anyth
I have this error running it on macbook pro
I installed it thru git clone.
It does not also show the welcome page when i do 127.0.0.1:8000
any thing I can do to fix it?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
-
Hi, I'm having an issue with generating url with the URL helper.
URL('default', 'home', scheme=True, host=True) will generate
"\https://127.0.0.1/myapp/default/home";
I am using web2py from the python-web2py package from the ubuntu (or
debian?) repos. Now I also have my app installed on a serve
I have this pattern:
"/jobs/year-start/{jobs.year_start.year}/amount-range-id/{jobs.amount_range_id}/neighbourhood-id/{jobs.neighbourhood_id}"
I have tree fields that im using to filter the 'jobs' table. How can i make
those filters optional?
Let's say i want to use only two of the tree possib
Hi, See below (or above) where I provide the entire traceback. Your code
does the same thing as Luise's in that when I hover over the link, it shows
it will try to resolve to:
127.0.0.1:8000/welcome/view_a_site/www.huffingtonpost.com
My app is 'welcome' and 'view_a_site' is the current view whi
I was trying not to clutter things up. I can tell you though, when I hover
over the link with my mouse, the URL that shows up is
127.0.0.1:8000/www.huffington.post.com
This is the same thing when I use the code offered below from the japanese
(or chinese) person below, sorry I can't read your n
pls try:
{{if site.website:}}
{{=A(site.website, _title = T("Web site"), _target = "_blank", _href = "%s"
% site.website) }}
{{pass}}
best regards,
stifan
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.go
Can you post the full traceback? it seems like youre trying to convert the
url to some numeric class. So with the full trace back we can get a clear
look of that
El domingo, 28 de agosto de 2016, 19:25:10 (UTC-4), Steven Vannoy escribió:
>
> That seemed promising but gave me an exception with to
That seemed promising but gave me an exception with top-most error as:
* invalid literal for long() with base 10:
'www.huffingtonpost.com'*
You can see that I'm using 'www.huffingtonpost.com' as my test case, which
does resolve correctly if pasted strait into the browser.
On Sunday, August
Hello!
Try this:
{{=site.website}}
El domingo, 28 de agosto de 2016, 17:29:40 (UTC-4), Steven Vannoy escribió:
>
> I have a view that displays a database form. One of the fields in that
> form is my user's own website. I'd like to display that as an active link
> in the browser. I've tried tw
I have a view that displays a database form. One of the fields in that form
is my user's own website. I'd like to display that as an active link in the
browser. I've tried two different forms, the first produces an error
because it is trying to resolve to a view within my application, and the
o
Hello!
I've this data structure in my database: i've two tables events and
modificators, one event can have many modificators so i've a one to many
relation. Im trying to build an HTTP endpoint that returns a json with
multiple events and all the asociated modificators, i order to do this i do
db((db.auth_user.username == request.vars.username) &
(db.auth_user.password ==
CRYPT(digest_alg='pbkdf2(1000,20,sha512)')(request.vars.password)[0])).select()
this doesn't work at all too.
On Saturday, August 27, 2016 at 5:44:53 PM UTC+5:30, Kiran Subbaraman wrote:
>
> The book can help you:
>
my content (buttons, text, tables) from one sidebar crosses over columns a
bit
am I doing anything wrong?
View:
{{left_sidebar_enabled = globals().get('left_sidebar_enabled', True)}}
{{right_sidebar_enabled = globals().get('right_sidebar_enabled', True)}}
{{block left_sidebar}}
content goes
In my controller I have the following code:
form = SQLFORM.factory(db.auth_user, db.auth_dummy,
extra_fields=extra_fields)
form.append(Recaptcha2(public_key = '...', private_key = ''))
When I have a view with {{=form}} the recaptcha displays correctly, I
changed
the view to display a custom
34 matches
Mail list logo