—
Hello Everyone,
I am using the *from gluon.tools import fetch* to *fetch(URL)* from
external website.
The external site has links on the page which get reloaded as
*127.0.0.1:8000/LINK* on the displayed page.
*Questions*:
*— When such a link clicked, how to extract that link from
On Wednesday, April 23, 2014 10:53:01 PM UTC+2, ureal frank wrote:
Hi Niphold,
many thanks for your reply and valuable tips.
On 23 Apr 2014 at 20:59:52, Niphlod (nip...@gmail.com javascript:)
wrote:
you're doing all wrong. Stop copy/pasting for a sec and take a look to
docs.it'll
*example with a button. You can put the button in SQLFORM.factory:*
def index():
# in an new tab
# *_target='_blank'*
*# set start and end for example with SQLFORM.factory*
button = A('create a pdf-report in an new tab', _class=btn ,
_title=T(create PDF-report),
Am Mittwoch, 23. April 2014 15:55:50 UTC+2 schrieb csavorgn:
Hi everyone,
I'm using a SQLFORM.factory to get the data I need to generate a PDF file
using ReportLab.
I'm using a submit button to check for the data entered and to open a new
page using redirect:
I managed to put the link in the SQLFORM.factory, but I don't manage to use
the form validation. The reason is that startand endmust be defined
when the html page is created (to put their values in button). Is this
correct or am I missing something? Thanks
Carlo
On Thursday, April 24, 2014
Thanks!!
Fabiano.
2014-04-24 0:17 GMT-03:00 Massimo Di Pierro massimo.dipie...@gmail.com:
You only have the buttons because you did not create a view for the action.
On Wednesday, 23 April 2014 14:22:20 UTC-5, Fabiano Almeida wrote:
Hi,
How to hide buttons from form?
solved the issue by implementing temporal table, thanks a lot...
вторник, 22 апреля 2014 г., 9:38:01 UTC+3 пользователь alex написал:
yep. Making a temporary table for collected data was the first obvious
option, but it would be much better to convey somehow a list of rows to the
grid
Hi Web2py users,
we are struggling, for some time now, with a migration of our apps from
sqlite to postgres. We tried a couple of approaches: first we tried doing
it with cp_db.py but that had problems with relations and seems broken. Our
current approach consist of these steps:
1) export
Hi,
I'm trying to do a master detail form. It is possible that the details form
is grid style? How?
Thanks,
Fabiano.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list
On 24 Apr 2014 at 08:42:27, Niphlod (niph...@gmail.com) wrote:
On Wednesday, April 23, 2014 10:53:01 PM UTC+2, ureal frank wrote:
Hi Niphold,
many thanks for your reply and valuable tips.
On 23 Apr 2014 at 20:59:52, Niphlod (nip...@gmail.com) wrote:
you're doing all wrong. Stop copy/pasting
I'm trying to migrate a django project to web2py. I have defined a search
form with selectoption fields populated from the database and using
code similar to below, but I can't see a way of changing the ordering of
the SQLFORM fields:
db.define_table('pet_type',
Field('description',
I am not completely sure I understand when you are asking. The only reason
to use fetch is for portability because urllib.urlopen does not run on the
Google App Engine. If you are not running and not planning to run on the
google app engine, I would use urllib.urlopen instead.
If I understand
db.search_form.pet_type_ref.requires =
IS_IN_DB(db,'pet_type',orderby=db.pet_type.description)
OR this may work too:
db.search_form.pet_type_ref.requires.orderby = db.pet_type.description
On Thursday, 24 April 2014 07:31:40 UTC-5, M Bailey wrote:
I'm trying to migrate a django project to
Hi everyone...
I am using a LOAD function for a notes field in the sidebar of my app. I am
able to load the notes for a specific business by hardcoding the id of the
business in the controller like so...
@auth.requires_login()
def note():
current==1
Ahhh I see... thanks once again
On Tuesday, 22 April 2014 19:17:08 UTC+10, Niphlod wrote:
SQLFORM.factory creates a form based on what fields you pass to it. If you
pass tables, fields are extracted from the table definitions. However, it's
still managed as if it was a single table
This one is old don't know if still work :
http://www.web2pyslices.com/slice/show/1395/jquery-multi-select-widget
This is another option :
http://dev.s-cubism.com/plugin_multiselect_widget
Here another with bootstrap :
http://davidstutz.github.io/bootstrap-multiselect/
You have to work your
Hello,
Is it possible to create my own search widget? How does I get the grid to
use it?
Thanks
Richard
--
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)
Yes, you definitely can.
I don't ever use the default search.
In a nutshell, you have to create your own search form and then apply the
results of that form to the query passed to the grid. Let me know if you
need an example and I'll see if I can put a quick one together for you
today.
Hi, I'm new to web2py, I'm trying to build an authentication system where
the user can skip his email, firstname, lastname, How can i do this other
than creating a custom table for authentication?
I did try
auth.settings.registration_requires_email = False
auth.define_tables(username=True,
Are you saying you want to allow users to register with just a username and
password and optionally fill in their email address and name at a later
time (via the profile function)? Not tested, but maybe something like:
def user():
if request.args(0) == 'register':
for field in
why are you saying that vars are unavailable for LOAD ?
On Thursday, April 24, 2014 3:05:20 PM UTC+2, Greg Vaughan wrote:
Hi everyone...
I am using a LOAD function for a notes field in the sidebar of my app. I
am able to load the notes for a specific business by hardcoding the id of
the
Yes, That does work Thank you!!
On Thu, Apr 24, 2014 at 8:26 PM, Anthony abasta...@gmail.com wrote:
Are you saying you want to allow users to register with just a username
and password and optionally fill in their email address and name at a later
time (via the profile function)? Not tested,
I am reading the sqlhtml.py search_widget...
So I would just pass my function (search widget) like that :
SQLFORM.grid(...,
search_widget=my_search_widget_function)
?
Thanks
Richard
On Thu, Apr 24, 2014 at 10:38 AM, Jim S j...@qlf.com wrote:
Yes, you definitely can.
There is one more to the first web2py conference
http://www.experts4solutions.com/web2py_conference
We got a bigger room and we can take 10-15 more people. register now!
Massimo
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py
Hi Niphlod...
{{=response.vars}} shows nothing... nor does {{response.toolbar()}}...
db stats shows notes.business = 1 when I hardcode it as above...
I took a screenshot here http://screencast.com/t/mmRPGOHUAjt
I assume that the filter will have to be sorted in the controller as the
LOAD
how are you using LOAD to load the component ?
On Thursday, April 24, 2014 5:23:21 PM UTC+2, Greg Vaughan wrote:
Hi Niphlod...
{{=response.vars}} shows nothing... nor does {{response.toolbar()}}...
db stats shows notes.business = 1 when I hardcode it as above...
I took a screenshot here
Al of a sudden my callbacks aren't working. Whenever i specify :eval as the
target, i get this error:
Uncaught Error: Syntax error, unrecognized expression: #:eval
which comes from jquery.js
This is my callback trigger, returned from a function:
return A(T('Send friend request'),
Hello,
I would improve default search widget a bit like that :
if expert_search:
search_widget = lambda sfield, url: CAT(FORM(
TEXTAREA(_name='keywords',
_class='expert_search',
Are you not returning javascript?
On Thursday, April 24, 2014 9:20:31 AM UTC-7, Ruud Schroen wrote:
Al of a sudden my callbacks aren't working. Whenever i specify :eval as
the target, i get this error:
Uncaught Error: Syntax error, unrecognized expression: #:eval
which comes from
new_button = SPAN(XML(T(#10004; Friend request sent)), _class='button
white friendship')
return jQuery('#friendship_button').replaceWith('%s'); % new_button
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
-
Sorry I should have given you all the data...
The db table is a simple one
# HISTORY
db.define_table('notes',
Field('business', 'reference calls',
writable=False
),
Field('note', 'text',
label='Add Note'
),
auth.signature,
ah I caught it. you are doing this...
http://www.w3schools.com/tags/att_a_target.asp
specifying a target for the 'a' tag. Unless it's _blank, _self, _parent,
_top, or the name of a frame, that won't work.
I assumed you meant to do something like this:
ajax('echo', ['name'], ':eval')
On
I'm pretty sure you can pass the 'input' function a _
data-loading-text=Loading...
I believe that anything with an underscore in front of it gets added as an
attribute. You could do it like this...
INPUT(_type='submit', _data-loading-text=Loading..., _cheese=Casu marzu)
and your input tag will
put it in the session...
On Thursday, April 24, 2014 9:49:28 AM UTC-7, Greg Vaughan wrote:
Sorry I should have given you all the data...
The db table is a simple one
# HISTORY
db.define_table('notes',
Field('business', 'reference calls',
writable=False
),
{{extend 'layout.html'}}
{{=form}}
{{pass}}
{{block right_sidebar}}
{{=LOAD('default','note.load',ajax=True)}}
{{end}}
Just do:
{{=LOAD('default', 'note.load', vars=dict(id=request.vars.id), ajax=True)}}
And in the note() function:
def note():
notes = db(db.notes.business ==
Wow!
I see great speakers in the attende list,
Do you have a schedule with the talks / tutorials abstracts?
I think that could be useful for the advocacy efforts and also it could
help anyone that need more info to confirm the trip with their boss or
similar.
Best regards
Mariano Reingart
I just test, and it doesn't seem to make problem having line break...
The form didn't get parsed the way I thought... keywords is not empty in
case there is query parameters in the search field (name keywords) then
build_query() kicks in...
if key and not ' ' in key and not '' in key and
session.lead_id=request.vars.id
in the 'leads' function. Then the note...
current = session.lead_id
= is assignment
== is comparison
On Thursday, April 24, 2014 10:11:29 AM UTC-7, Derek wrote:
put it in the session...
On Thursday, April 24, 2014 9:49:28 AM UTC-7, Greg Vaughan wrote:
Sorry
Thanks Derek! Although i went for another approach:
I removed target=':eval' from the A helper, and instead of using a return,
i used response.js
So now it's like this
new_button = SPAN(XML(T(#10004; Friend request sent)), _class='button
white friendship')
response.js =
Cheers Anthony
Worked a treat...
Thanks everyone for the help...
On Friday, 25 April 2014 03:12:00 UTC+10, Anthony wrote:
{{extend 'layout.html'}}
{{=form}}
{{pass}}
{{block right_sidebar}}
{{=LOAD('default','note.load',ajax=True)}}
{{end}}
Just do:
{{=LOAD('default', 'note.load',
We are close to capacity. We can only let 10 more people in. I am finalizing
the schedule. Will post later today
--
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
I just implemented two-factor authentication in an app that I am working
on. Unfortunately it required changing the login() method of the
gluon/tools.py file directly, there was no mechanism that would allow a
secondary login requirements. Is this still useful? If someone is more
experienced
Hmm , I tried this approach (and some other variants from this thread.):
but I run into an error after 15? minutes or so;
The error occurs during the execution of the import_from_csv...
---
Traceback (most recent call last):
File console, line 1, in module
File
Hi!
I want to notify a strange behaviour. If I run any kind of parallel
command, such as calling web2py.py with -K option to run my scheduled
task or with -S app -M to test manually some function in my
environment it cause a portal block. The portal will reply again only
from the moment I kill the
It might be that database is blocking because you never end a transaction.
Do you have db.commit() in your task?
Marin
On Thu, Apr 24, 2014 at 8:58 PM, Manuele Pesenti
manuele.pese...@gmail.comwrote:
Hi!
I want to notify a strange behaviour. If I run any kind of parallel
command, such as
python won't let you do _data-loading-text in that way (because of the -
sign)
However, recent web2py releases allow you to use data={'loading-text'} ^__^
you can review this section of the book for a complete reference
http://web2py.com/books/default/chapter/29/05/the-views#HTML-helpers
On
Thanks for the update Niphlod!
I'm using 2.3.2. Do you know if its available in that version? I tried
using data={'loading-text':'loading} in the controller, but its not taking
it for some reason.
On Thu, Apr 24, 2014 at 3:08 PM, Niphlod niph...@gmail.com wrote:
python won't let you do
Il 24/04/14 21:03, Marin Pranjić ha scritto:
It might be that database is blocking because you never end a transaction.
Do you have db.commit() in your task?
Marin
Hi Marin,
thanks for you replay. The only commit explicitly called is inside a
scheduler function where afaik is necessary because
With some tweaking the script that Alan Proposed did work in my situation.
(50+ tables and a lot of references)
https://groups.google.com/d/msg/web2py-developers/QxeJNByj6qc/cpBHsa1ymUkJ
In Short:
1) recreate the complete model in postgres: db_new =
Very much useful. Is should go in web2py
--
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
Try printing the value in [email] just before the mail command.
On Thursday, April 24, 2014 1:29:47 AM UTC+5:30, Jessica Le wrote:
I've been getting the following error:
***WARNING:web2py:Mail.send failure:[Errno 11004] getaddrinfo failed***
for the following code:
mail =
Hello,
I'm running www.syntheticturfdrs.com
I'm using web2py to control the back end and the site is hosted on
pythonanywhere.
For some reason my images don't load intially, but if I browse to another
site (lets say products) and then go back to welcome the images load.
Does anyone have any
52 matches
Mail list logo