Thanks, I am trying it now.
What about using external libs like
*Requests*http://docs.python-requests.org/en/latest/index.htmlor
*httplb2*? http://code.google.com/p/httplib2/ I think they make the life
easier, but not sure how mature these libraries are and how secure is using
them?
Regards
I use requests all the time. It's included as a library in
https://github.com/niphlod/w2p_tvseries/tree/master/modules. If you want to
check it in the modules folder there's plenty of examples on how to
interact with external services (most of them returns xml, but a few are
jsonrpc ... but
The web2pyslices website email feature sends notifications with a link on
the footer to the movu.ca site. Is the link updated?
When I try to access http://movu.ca or https://movu.ca my browser times
out. Here's my system configuration:
Mozilla 18.0.1
Ubuntu 12.04
--
---
You received this
Thank you Niphlod.
BTW how would you compare web2py standard urllib, urllib2 with
*Requests*http://docs.python-requests.org/en/latest/index.htmlor
*httplb2* in terms security and http://code.google.com/p/httplib2/
reliability?
On Wednesday, 13 February 2013 15:17:26 UTC+5, Niphlod wrote:
I
Thank you, I've done exactly this. :)
On Wednesday, February 13, 2013 6:57:02 AM UTC+1, howesc wrote:
yes, you may unpack the w2p file (which is just a zip file i believe) and
copy the files to your application.
if you application can run on non-gae then you can do like dhmorgan
suggests.
urllib and urllib2 are not web2py code, they are modules included in the
standard distribution.
both httplib2 and requests are widely used, I'm leaning towards the
requests library because it's derived from urllib3 which I contributed some
code a while back, and I like the api design by Kennet
Hi,
I got a table for my news articles which are normally linked to a table
which specifies the region/country where my news comes from.
I said that this region needs to be in the region table (IS_IN_DB)
Now I need also news like news for my site where there should not be a
region specified. But
The easiest way on ubuntu is this one:
wget http://web2py.googlecode.com/hg/scripts/setup-web2py-ubuntu.sh
chmod +x setup-web2py-ubuntu.sh
sudo ./setup-web2py-ubuntu.sh
On Wednesday, February 13, 2013 6:53:59 AM UTC+1, Hector Magnanao wrote:
We have web server and I would like to deploy my
I'm developing a newsletter system. Now I would like to create a grid that
shows newsitems which are connected to a specific newsletter.
I got this:
controllers/nieuwsbrief.py
def manageNewsitem():
items = (db.newsletter_items.newsletter == request.args(0))
grid = SQLFORM.grid(items)
i want to add asterik at the end of mandotry fields to show the user that
you must have to fill that field . But the problem is that there is no html
file for that and form is built on crude, how should i add?? i am in need
of its solution kindly help me out.
--
---
You received this
Hello Leon,
I am finding difficult to keep track. Could you post the entire Facebook.py
that you are using? Is there any change required to web2py libraries or only in
Facebook.py?
On Feb 8, 2013, at 9:14 AM, Leonel Câmara wrote:
Hey web2py_tn,
I don't know if you still need this but I
Hi,
I'm trying to make a form for add a new user wich must to have a
membsership.
I'm making this, that obviously is very wrong:
def create_user():
form = SQLFORM.grid(db.auth_user)
membership_panel = LOAD(request.controller,
'create_membership.html',
El Wed, 13 Feb 2013 06:26:41 -0800 (PST)
waqasiqbal.kny...@gmail.com escribió:
i want to add asterik at the end of mandotry fields to show the user
that you must have to fill that field . But the problem is that there
is no html file for that and form is built on crude, how should i
add??
Hi Folks,
I am trying to add a hidden field on a SQLFORM like this:
*form=SQLFORM(db.produto)
tags = TR(INPUT(_name='tags_hidden',value=True,_type='hidden'))
form[0].insert(-1,tags)*
{{=form.custom.widget}} it does not show this extra field:
Storage {'estoque_min': gluon.html.INPUT
why don't you just use the recommended way for hidden fields ?
http://web2py.com/books/default/chapter/29/07#Hidden-fields
On Wednesday, February 13, 2013 5:33:43 PM UTC+1, Tito Garrido wrote:
Hi Folks,
I am trying to add a hidden field on a SQLFORM like this:
*form=SQLFORM(db.produto)
grid uses args to determine the operation it's doing (and also keeping
track of the selected records, etc etc etc)
Check the docs for using the args parameter in the docs.
http://web2py.com/books/default/chapter/29/07#SQLFORM.grid-and-SQLFORM.smartgrid
On Wednesday, February 13, 2013 2:42:03
Yup. See here:
http://stackoverflow.com/questions/14724584/web2py-custom-validators
On Wednesday, February 13, 2013 8:48:25 AM UTC-7, BlueShadow wrote:
Hi,
I got a table for my news articles which are normally linked to a table
which specifies the region/country where my news comes from.
I
Maybe, it is not very nice...:)
On Tuesday, February 12, 2013 4:48:31 PM UTC+3, webpypy wrote:
Hi,
http://datasift.com/ is nice.
it will be great, if it is integrated with web2py.
You have a good one.
Ashraf
--
---
You received this message because you are subscribed to the
thanks for the reply and info.
nice to know that you were one of the contributers of urllib3 development.
can you help me understanding what is the differnce between Requests source
available at http://docs.python-requests.org/en/latest/index.html and @
requests lives here https://github.com/kennethreitz/requests. in w2p_series
is included merely in order to have no dependancies to download before
installing the app.
Now that I'm checking it, the version included in w2p_tvseries is old
(0.14.2), last stable requests version is instead 1.1.0
Can't figure out how to form the URL.
My remote function is *get_days* in the file* json_test.py* in *Controllers*
.
My html is* databaselist.html* in the queries folder in *Views*
The application is *amrat_dev.*
Not sure how to put this all together.
On Thursday, February 7, 2013 3:58:13
Thanks howesc
Do you have an idea where to learn to configure these processor threads in
Apache?
Regards
--
---
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 an email
to
Can't figure out how to form the URL.
Is the client script created by the same app that serves the data? In that
case, you add this to the view:
{{=SCRIPT('var getDaysURL=%s;' % URL(c=json_test, f=get_days))}}
And then use the getDaysURL string in your script.
--
---
You received
I am using the gdata module to access the Google API. I am having no
trouble whatsoever with the application on PC. However whenever I try to
run the app from my Mac, I get the error:
Cannot import module 'json'
I am importing the module through the modules directory. This is what the
code
I'm getting a
type 'exceptions.AttributeError' 'Row' object has no attribute 'username'
error when I try to access the membership table in the db admin screens.
This is happening on a project that *used* to use username as the login
field but does not anymore (*username* column is no longer
How to clear just some fields on keepvalues=True?
Thanks!
Tito
--
Linux User #387870
.
_/_õ|__|
..º[ .-.___.-._| . . . .
.__( o)__( o).:___
--
---
You received this message because you are subscribed to the Google Groups
web2py-users group.
To unsubscribe from this
a bit of questions
all migrations went ok ?
are you using auth.define_tables(username=None) ?
is there some non-standard db connection / auth tables definitions ?
On Wednesday, February 13, 2013 9:59:57 PM UTC+1, Yarin wrote:
I'm getting a
type 'exceptions.AttributeError' 'Row' object
Doof just realized what it was- still had the following in my table def:
format='%(username)s'
Niphlod good to hear from you- how are you man. Thanks --
On Wednesday, February 13, 2013 4:17:13 PM UTC-5, Niphlod wrote:
a bit of questions
all migrations went ok ?
are you using
Assuming there is a field called SiteNews in the form, you could do
something like:
Field('region', 'reference region', requires=IS_IN_DB(...) if notrequest
.vars.SiteNews else None)
Anthony
On Wednesday, February 13, 2013 10:48:25 AM UTC-5, BlueShadow wrote:
Hi,
I got a table for my
No, it is not expected. The form.custom.widget items are created when the
form is created. You have added the extra field after form creation. The
.insert() method only inserts into the FORM object's DOM -- it does not
update form.custom.widget.
Anthony
On Wednesday, February 13, 2013
Alan,
I've seen that kind of code before but used directly as a parameter in a
jQuery.getJSON call.
How do you put that before the $.jsonp({ call?
On Wednesday, February 13, 2013 12:15:23 PM UTC-8, Alan Etkin wrote:
Can't figure out how to form the URL.
Is the client script created by
I'm using a component with a LOAD statement. In my component I have a
SQLFORM.factory form. When I submit that form I want to reload my entire
page. I can't seem to envision how I could do that. Can anyone help?
-Jim
--
---
You received this message because you are subscribed to the
Hi Folks,
I am trying to use the dropdown plugin from:
http://web2py.com/plugins/default/dropdown
And I am getting
type 'exceptions.NameError' name 'PluginDropdown' is not defined
Is it still supported? Is there any other better alternative?
Thanks!
Tito
--
Linux User #387870
Hi all,
Just a simple but annoying problem. I am trying to configure the smartgrid
so that the particular smartgrid does not have the ability to create and
delete records.
From my understanding this can be done by setting deletable='False' and
create='False' when I make the smartgrid. However
That is definitely correct and works for me. Can you show some code?
What version of web2py?
-Jim
On Wednesday, February 13, 2013 4:59:51 PM UTC-6, Jack wrote:
Hi all,
Just a simple but annoying problem. I am trying to configure the smartgrid
so that the particular smartgrid does not
Hi Jim,
So I created a default new app and put in the following code,
in model I have:
db.define_table('Config_Table',
Field('myid'),
Field('Part_Number'),
Field('MAC_WAN'),
Field('MAC_LAN'),
Field('RF_Connector'),
Field('Config'))
in controller I have:
You're setting them to the string value 'False'. Take the single quotes
out and that should do it.
-Jim
On Wednesday, February 13, 2013 5:32:01 PM UTC-6, Jack wrote:
Hi Jim,
So I created a default new app and put in the following code,
in model I have:
db.define_table('Config_Table',
To be more clear:
form = SQLFORM.smartgrid(db.Config_Table, searchable=False,
deletable=False,editable=False.
On Wed, Feb 13, 2013 at 6:16 PM, Jim S j...@qlf.com wrote:
You're setting them to the string value 'False'. Take the single quotes
out and that should do it.
-Jim
On
Ahh, it works now, thanks for the help!
On Wednesday, February 13, 2013 4:20:45 PM UTC-8, Jim S wrote:
To be more clear:
form = SQLFORM.smartgrid(db.Config_Table, searchable=False,
deletable=False,editable=False.
On Wed, Feb 13, 2013 at 6:16 PM, Jim S j...@qlf.com javascript: wrote:
if form.process().accepted:
redirect(URL(...), client_side=True)
With client_side=True, redirect returns a regular 200 response along with a
special header containing the redirect URL. Javascript code reads that
header and does a client-side reload with the new URL.
Anthony
On Wednesday,
There's this plugin: http://dev.s-cubism.com/plugin_notemptymarker --
though it adds the asterisk to the field label.
On Wednesday, February 13, 2013 9:26:41 AM UTC-5, waqasiqb...@gmail.com
wrote:
i want to add asterik at the end of mandotry fields to show the user that
you must have to
are you using GAE or some other webserver?
can you import those same modules from the python interpreter that your
webserver is using?
what version of python do you have?
On Wednesday, February 13, 2013 12:43:37 PM UTC-8, unmuse wrote:
I am using the gdata module to access the Google API. I
the apache docs. :)
http://httpd.apache.org/docs/2.2/mod/prefork.html
http://httpd.apache.org/docs/2.2/mod/worker.html
On Wednesday, February 13, 2013 11:58:29 AM UTC-8, José Eloy wrote:
Thanks howesc
Do you have an idea where to learn to configure these processor threads
in Apache?
Thanks Anthony. Is there also a way for me to force a reload of the entire
page after a delete is processed from the list view of a SQLFORM.grid?
On Wed, Feb 13, 2013 at 7:03 PM, Anthony abasta...@gmail.com wrote:
if form.process().accepted:
redirect(URL(...), client_side=True)
With
Hello,
I'm trying out the instantpress 2.1.2. application. It works fine on my
local
install where it's called blog2.
When I try to access it from my web server, though, I am getting an error
that I don't understand how to fix.
type 'exceptions.ImportError' No module named
Is the pdf also edition 4.9th?
--
---
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 an email
to web2py+unsubscr...@googlegroups.com.
For more options, visit
No. Working on it.
On Wednesday, 13 February 2013 16:11:28 UTC-6, WebToePie wrote:
Is the pdf also edition 4.9th?
--
---
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
Here's the relevant code:
elif deletable and len(request.args) 2 and request.args[-3] ==
'delete':
table = db[request.args[-2]]
if ondelete:
ondelete(table, request.args[-1])
db(table[table._id.name] == request.args[-1]).delete()
marco mansilla , there is no html for these fields which i had mentioned in
before, so how can i apply this???
On Wednesday, February 13, 2013 8:33:02 AM UTC-8, marco mansilla wrote:
El Wed, 13 Feb 2013 06:26:41 -0800 (PST)
waqasiqb...@gmail.com javascript: escribió:
i want to add
Thanks for all the interesting responses.
Here is Apple's description of the Push notificaiton process:
http://developer.apple.com/library/mac/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/ApplePushService/ApplePushService.html
There appears to be a similar framework
Hi,
I want to make a user creation form, and I need to select the group that
this user belongs.
As you know the user have a many to many relation with group using
membership, here is the book chapter:
http://web2py.com/books/default/chapter/29/9#Access-Control
I don't know how to make a form
hi,
i want to try centralize file view *.html, but it's ended with failure when
using extend and include.
for example i want to create block footer separate file that can be replace
the default layout.html, i know it can be done when define it block footer
in each file, or redefine it on
52 matches
Mail list logo