Hi:
I´m sorry if this isn´t the place for this question.
I am looking a project to build anything similar to joomla (a cms) for
contribute to development (if I a can/know).
I´d like learn web2py while contribute with programing (I know a little).
I can start from zero but I prefer join a open
at 99% you don't need to change any of the sqlhtml.py code, just the css
classes assigned to the paginator.
Probably the default jquery-ui was meant to work with an older version of
the css
--
---
You received this message because you are subscribed to the Google Groups
web2py-users group.
yep, it should be less of a memory hog hungry on system resources.
BTW, I have a raspberry too, but I never manage to find time to play with
it.
On Tuesday, April 2, 2013 2:22:00 AM UTC+2, The Organisation of Secret
Shoppers wrote:
by that, do you mean to start the webserver by typing python
nice. The script shipped with web2py installs uwsgi from pip, so we're
covered!
On Monday, April 1, 2013 4:48:59 PM UTC+2, Matt wrote:
On Fri, Mar 29, 2013 at 12:15 PM, Matt Broadstone
mbro...@gmail.comjavascript:
wrote:
On Fri, Mar 29, 2013 at 12:05 PM, Niphlod
Hi guys! Sorry but I still do not quite understand after reading the
chapters about Dispatching and URL. i guess my programming foundation
isn't that strong... and i have problem understanding without referring to
examples.
Here is my situation and i would like to get a general idea on how to
/app/default/test
points to executing your test() inside the controller named default.py
args and vars are, in respect
- args : /app/default/test/*1/2/3*
- vars : /app/default/test?*foo=barfoo=bar2hello=world*
To sum up, args are fine if you want cleaner urls, but you can't put
whatever you
Thank you for your reply again :)
Okay, i just did a google search on the term foobar, and haha i have been
wondering why does it appear anywhere!
anyway, hmm, it seems clearer with your examples. so if i were to use args,
like you said, to turn on bulb 1, i will put it as something like:
a
i see. sounds like a better plan :)
haha i think this little raspberry pi is quite amazing! :D i have never
encounter linux or other programming language (other than c++) till i met
R-pi. and i start to enjoy learning them :)))
thanks again!!
On Tue, Apr 2, 2013 at 3:37 PM, Niphlod
Hi Niphlod, sorry for the late answer, I hadn't access to the involved
server.
I added the two logs lines you proposed, below the logs:
2013-04-02 09:38:14,561 - web2py.scheduler.mapserver#4162 - DEBUG -
recording heartbeat (ACTIVE)
2013-04-02 09:38:14,562 - web2py.scheduler.mapserver#4162
A little bump on the topic.
Somebody knows something about this?
greetings, Daniel.
El lunes, 25 de marzo de 2013 15:55:19 UTC+1, demetrio escribió:
Hi everyone,
I have notice an strange behaviour of the track_changes feature (working
on web2py 2.3.2 and python 2.7.3).
Imagine the
EmberJS is one of the most comprehensive MVC frameworks of the day - it's
batteries included (like web2py).
It is inspired by Ruby-on-Rails, in terms of preferring
convention-over-configuration (like web2py).
It has sane defaults for the high-level architecture, so it could require
minimal
On Tuesday, April 2, 2013 10:57:57 AM UTC+2, theoffi...@gmail.com wrote:
Thank you for your reply again :)
Okay, i just did a google search on the term foobar, and haha i have
been wondering why does it appear anywhere!
anyway, hmm, it seems clearer with your examples. so if i were to use
*SOLVED! *
Well - The code below was added to plugin layout's default.css to resolve
this issue. Which in my case was situated here
[static\plugin_layouts\layouts\Layout Name\default.css]. Note - web2py's
css (base.css ) and its pagination code or grid code remain unchanged.
.pagination ul,
Dean,
You need to brush up on Python sequences and slicing.
Try this: db.thetable.thefield.writable = (request.args(-2) == 'new')
request.args[0] is valid Python but it returns an index out of range error
if request.args is empty. request.args(0) returns None.
Same with request.args(-x)
Look here to understand models, views and controllers
http://web2py.com/books/default/chapter/29/01
Two excellent examples to show how much code should go into a view are
views/default/index.html and views/layout.html.
Look here to understand about parent and child records
You can think of request.args as a Python list. You can find out more
about Python lists here
http://docs.python.org/2/tutorial/introduction.html#lists and here
http://docs.python.org/2/tutorial/datastructures.html#more-on-lists
You can think of request.vars as a Python dictionary. Look
Just to add a bit...
and if using vars:
a href = {{=URL('test', vars = dict(bulb='1', state='on' ))}}img
src =/Comfort2/static/images/on.jpg width =75 height=75/a ?
if request.vars ={'bulb':1, 'state' :on}
Note that in Python, to test equality you use ==, not just a single =
(which is
Another question: can i display a jQuery keypad using web2py?
I don't see why not -- show some code and maybe we can help.
Anthony
--
---
You received this message because you are subscribed to the Google Groups
web2py-users group.
To unsubscribe from this group and stop receiving
will review this asap.
On Tuesday, 2 April 2013 04:53:57 UTC-5, demetrio wrote:
A little bump on the topic.
Somebody knows something about this?
greetings, Daniel.
El lunes, 25 de marzo de 2013 15:55:19 UTC+1, demetrio escribió:
Hi everyone,
I have notice an strange behaviour of the
Thanks for the good writing. We should make an example of integrating the
two.
On Tuesday, 2 April 2013 05:01:10 UTC-5, Arnon Marcus wrote:
EmberJS is one of the most comprehensive MVC frameworks of the day - it's
batteries included (like web2py).
It is inspired by Ruby-on-Rails, in terms
there is a project called movuca, is social network for share article,
question and news, and is personalisable
my web site www.foxter.co is based in movuca
source code: https://github.com/rochacbruno/Movuca
2013/4/2 dam...@gmail.com
Hi:
I´m sorry if this isn´t the place for this question.
hello i think the word INTERFEAR is wrong
https://code.google.com/p/web2py/source/browse/gluon/sqlhtml.py#1593
--
---
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
for learn more about web2py, other option is this book, there is practice
examples, but not start from zero...
http://www.packtpub.com/web2py-application-development-recipes-to-master-python-web-framework-cookbook/book
he application repository has good example...
http://www.web2py.com/appliances
Back to business after almost 2 months i try again to use sqlform.factory
to create and edit documents
My problem was to generate the link
i rearranged my code as follows
#if edit a document
if request.args(0):
row=db((db.trabalhador.id==request.args(0))).select().first()
fixed. :-)
On Tuesday, 2 April 2013 09:04:06 UTC-5, Ramos wrote:
hello i think the word INTERFEAR is wrong
https://code.google.com/p/web2py/source/browse/gluon/sqlhtml.py#1593
--
---
You received this message because you are subscribed to the Google Groups
web2py-users group.
To
Backbone anyone?
2013/4/2 Massimo Di Pierro massimo.dipie...@gmail.com
Thanks for the good writing. We should make an example of integrating the
two.
On Tuesday, 2 April 2013 05:01:10 UTC-5, Arnon Marcus wrote:
EmberJS is one of the most comprehensive MVC frameworks of the day - it's
Back to business after almost 2 months i try again to use sqlform.factory
to create and edit documents
My problem was to generate the link
i rearranged my code as follows
#if edit a document
if request.args(0):
row=db((db.trabalhador.id==request.args(0))).select().first()
AngularJS is well designed ... and usefull ...
Dne úterý, 2. dubna 2013 19:13:20 UTC+2 Ramos napsal(a):
Backbone anyone?
2013/4/2 Massimo Di Pierro massimo@gmail.com javascript:
Thanks for the good writing. We should make an example of integrating the
two.
On Tuesday, 2 April 2013
I didn't understand how smartgrid was using request.args which was my main
problem. Now that you and massimo pointed it out i've played around and see
what is going on. I've got 3 grids in 1 page editing a bunch of tables in
a controlled fashion with just a few lines of code. not bad web2py.
Backbone is not comparable to any full-stack MVC - it's a mere, well.
backbone of an MVC framework... It's perfidiously verbose in boilerplate,
and by itself doesn't do much... You are doing most of the work with
backbone (which would be, again, mostly boilerplate...). For any sane
deployment,
I am using web2py v2.4.5 and dropbox v1.5.1 for a project and I get
invalid token error. I have a default controller with 3 methods. index()
takes the user to the authorization url with a callback to welcome(). This
part works fine. When I make a call to the third method userinfo() I get
I am using web2py version 2.4.5 and dropbox python sdk version 1.5.1, and I
having an issue with invalid token. I have 3 methods in the default
controller, index() redirect the user to the authorization url with a
callback to welcome(). This works fine. But when I call the third function
What are the long-term plans to migrate to Python3?
I've searched for roadmaps and timelines, anything that comes up is dated
and not maintained.
Thanks,
Dave
--
---
You received this message because you are subscribed to the Google Groups
web2py-users group.
To unsubscribe from this
Hi
I'm trying out the jquery mobile plugin for web2py (2.4.5) and I'm having
no success. When I load the page (both on mobile device and desktop) I get
a blank page.
When I look at the JavaScript console I get this error:
Uncaught Error: Syntax error, unrecognized expression:
This was discussed at length. ;-)
web2py MUST be backward compatible by definition therefore it will not be
ported to python 3 (this is a lie, it was forked and ported twice but we
keep it a secret). There will be a web3py (perhaps under a different name)
which will work with python 2 and
Can you help me test this. In the main admin site page under [pack all]
there is a [pack custom] link. It allows you to select which files to
include/exclude in/from the w2p file. For example you can package
everything except the sqlite database.
Suggestions for improvement?
Massimo
--
---
Hi,
I have a web2py installation and an ejabberd for chat connections. Due to
the speed of ejabberd, I want to transfer some of the ajax requests to
ejabberd. This will require me to perform user authentication at EjabberD
instead of web2py.
Is there way I can authenticate an user at Ejabberd
I'm trying to run multiple Scheduler workers on different machines (AMIs),
but can't get two workers to work at the same time. Although each worker is
capable of processing jobs, only one will work at any one time.
I see two workers in the db table 'scheduler_worker', both with status
are you sure your settings don't prevent a concurrent run ?
As soon as one of the worker sees 2 worker and 2 tasks it should assign one
task to each one of them.
Try to run the workers with
python web2py.py -K appname -D 0
to see the debug logging, one worker should print something like
TICKER:
I was wrong about SQLite - I got it working locally (thanks the debug flag).
I've had some issues with getting MySQL to 'refresh' when accessing from
different AMIs. Is there something I can do to force workers get an updated
database connection?
On Tuesday, April 2, 2013 1:48:41 PM UTC-7,
if you're on 2.4.5 there shouldn't be problems with mysql (it has a
transaction isolation problem that is different from any other db
engine if you don't commit() you can't read what other processes
committed already)
Anyway on my test rig this problem was superseeded some time ago: are
I accidentally made 2 duplicate posts, so I delete the other one. Can the
admin please re-open this topic. Thank you.
On Tuesday, April 2, 2013 12:40:10 PM UTC-7, Yassine Elouri wrote:
I am using web2py v2.4.5 and dropbox v1.5.1 for a project and I get
invalid token error. I have a default
Here https://github.com/niphlod/w2p_timezone_plugin
As always, you're welcome to submit patches, tests, bugs and whatnot.
API may change a little bit as soon as someone comes up with a better
implementation :P
Jokes aside, a few variations can still happen in the next 1 or 2 week(s).
--
---
Why are you reinventing the wheel?
look into gluon/contrib/login_methods/dropbox_account.py
On Tuesday, 2 April 2013 14:40:10 UTC-5, Yassine Elouri wrote:
I am using web2py v2.4.5 and dropbox v1.5.1 for a project and I get
invalid token error. I have a default controller with 3 methods.
I can't tell what logs line have been added (I see new lines but I don't
know what is the line following if counter and what is the one
following if self.worker_status[0] )
On Tuesday, April 2, 2013 11:05:11 AM UTC+2, Paolo valleri wrote:
Hi Niphlod, sorry for the late answer, I
fanstastic! Thank you. We need a place to link this.
On Tuesday, 2 April 2013 16:54:10 UTC-5, Niphlod wrote:
Here https://github.com/niphlod/w2p_timezone_plugin
As always, you're welcome to submit patches, tests, bugs and whatnot.
API may change a little bit as soon as someone comes up with
(and all other plugins available for web2py...)
On Wednesday, April 3, 2013 12:08:11 AM UTC+2, Massimo Di Pierro wrote:
fanstastic! Thank you. We need a place to link this.
On Tuesday, 2 April 2013 16:54:10 UTC-5, Niphlod wrote:
Here https://github.com/niphlod/w2p_timezone_plugin
As
After running more jobs, I see each worker picking up jobs. However, there
is frequently only one worker working while the other is waiting inactive,
seemingly unaware that there are waiting jobs to process. The jobs also
seem to be allocated unequally, where one worker (which has 'is_ticker'
Eh, I don't see much of a need for a client side framework. Just client
side templates. jQote2 http://aefxx.com/jquery-plugins/jqote2/works great
for that. Submitting data via ajax is as simple as calling ajax('url',[data
to be saved], ':eval'). Templates are the slowest part of a webserver
No, it uses decorators, decimal, and generators, all not part of 2.3. The
first release was in 2007, Python 2.4 came out in 2004. Sorry, no 2.3
python supporting version is available.
On Friday, March 29, 2013 10:15:23 AM UTC-7, Javier Luis de los Mozos wrote:
Hello, I manage a hosted web
I'm trying to send an email with html and links to pages.
Simple example of what I am doing:
testlink = 'www.yahoo.com'
email_body = htmlbodyTesting Emails with HTMLbra href='%s'
target='new'first link test/abra href='www.yahoo.com'second link
test/a/body/html % testlink
Thanks for the link, but I am not able to get it to work. Maybe I'm doing
some thing wrong. Would you please verify this:
I create the private/dropbox.key file with APP_KEY:APP_SECRET:dropbox
in models/db.py I have added:
from gluon.contrib.login_methods.dropbox_account import use_dropbox
Hi, lets say I have:
db.define_table('Person',
Field('name', 'string'),
format=%(name)s
# or could be
# format=lambda self: self.name or Anonymous
)
whats the best way to apply format
if I don't know which way format was specified?
for string:
db.Shops._format %
I forgot to mention I have to use the MyDAL version as I have to connect to
different oracle schemas. Not fun! For anybody in a similar situation, this
was my solution
In the Model
odb=MyDAL(my_connection_string, migrate=False, fake_migrate_all=True)
odb.define_table('player_photo',[
I was looking for a file manager to integrate into my website.
I found an unfinished elfinder-web2py project @
http://code.google.com/p/elfinder-web2py/
The python connector in the project gives errors and is
unstable when the network is far from perfect.
I started debugging the connector with
I have a list of ids [1,2,3,...,n] and I want to run a query on an oracle
table (using cx_oracle), but I have to use bind variables. Anybody know the
correct format before I start experimentation?
Will I be forced to use db.executesql?
Thanks,
Martin Barnard
--
---
You received this
I think you just have to test for the type, for example:
db.Shops._format(db.Person[x]) if callable(db.Shops._format) else
db.Shops._format
% db.Person[x]
Anthony
On Tuesday, April 2, 2013 8:45:30 PM UTC-4, Jurgis Pralgauskis wrote:
Hi, lets say I have:
db.define_table('Person',
Here's what SQLFORM.grid does:
https://code.google.com/p/web2py/source/browse/gluon/sqlhtml.py#2479
On Tuesday, April 2, 2013 10:47:10 PM UTC-4, Anthony wrote:
I think you just have to test for the type, for example:
db.Shops._format(db.Person[x]) if callable(db.Shops._format) else db.Shops
Yahoo Mail is re-writing the links. Probably not working correctly because
the URLs are missing the leading http://; so are treated as relative
links, which don't make sense in emails.
Anthony
On Tuesday, April 2, 2013 7:39:23 PM UTC-4, jjg0 wrote:
I'm trying to send an email with html and
Also, as noted at the end of this
sectionhttp://web2py.com/books/default/chapter/29/08#Using-the-template-system-to-generate-messages,
if using the URL() function to generate links in emails, be sure to specify
the scheme and host arguments in order to get absolute rather than relative
URLs.
What does the SQL look like?
On Tuesday, 2 April 2013 20:44:40 UTC-5, Martin Barnard wrote:
I have a list of ids [1,2,3,...,n] and I want to run a query on an oracle
table (using cx_oracle), but I have to use bind variables. Anybody know the
correct format before I start experimentation?
Sorry it does not work, I have imported other modules with @Nipholds string
and they work.
Traceback (most recent call last):
File /home/mdipierro/make_web2py/web2py/gluon/restricted.py, line 212, in
restricted
File D:/web2py/applications/tweet/controllers/default.py
62 matches
Mail list logo