i'm not familiar with netcat and minicom.are those python libraries? or
are there python libraries that know how to speak those things?
assuming you can write python that sends commands to the device (which i
bet you can do), then it shouldn't be hard to have a URL call a controller
that cr
note that unless the book calls out google:sql vs google:datastore it's
referring to google:datastore. SQL was added much later by google, but
it's a mysql compatible database, and so should have most (perhaps all?)
the mysql features.
On Tuesday, March 12, 2013 2:14:39 AM UTC-7, decu...@uemd.
the "user" for web2py depends on how you launch it...
if you call:
python web2py.py
then it runs as you
if you:
sudo su bob
python web2py.py
it runs a bob.
if you use apache or some other server i believe by default it runs as the
user that is running apache.
On Thursday, March 14, 2013 8:
i use the bulk uploader/downloader from google (with some custom transforms
to keep the same IDs across copies). i've found it to be the most
efficient and reliable way to get large amounts of data transferred.
On Thursday, March 14, 2013 5:00:20 AM UTC-7, José Manuel López wrote:
>
> Hi,
> I'
i have no idea as well. everything is too new to me :/
i'm switching back to serial, and i'm using pyserial... but got stuck as
well.
On Fri, Mar 15, 2013 at 3:01 PM, Christian Foster Howes
wrote:
> i'm not familiar with netcat and minicom.are those python libraries?
> or are there python li
it's fine, but what you need to check is for the user who started the
web2py process to be able to use your /dev/serialwhatever interface
How did you install web2py ?
PS: I have a raspberry too :P
On Friday, March 15, 2013 9:28:09 AM UTC+1, The Organisation of Secret
Shoppers wrote:
>
> so
There are some steps involved, but I used fabric to automate that.
Code runs on my pc at home, and basically it:
- syncs git repo of the book
- launches some git commands to generate the diffs
- copies over the generated diff folder
- changes routes.py
- starts web2py webserver
- launches wget to
Suggest making the change on the homepage!
--
---
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 htt
from gluon import currentimport multiprocessingdef ip():
p = multiprocessing.Process(target=t,args=("hello",current.db))
p.start()
p.join()print "start"def t(arg1,arg2):print "sub start %s"%arg1print
arg2.account.count(
I use it but it report thead local error? how to use it ,or use the DAL in
thank you
在 2013年3月13日星期三UTC+8下午10时59分08秒,rif写道:
>
> try https://github.com/rif/web2admin and post back your impressions.
>
> -rif
>
> miercuri, 13 martie 2013, 15:33:49 UTC+2, RunSky ruan a scris:
>>
>> I want to use the web2py because it easy to use,
>> but the appadmin is not easy to use.
>> i
Hi,
I have in plan to use it in a future project, today a started a very easy
app but I ended up in the error: 'database is locked'.
The tests were done by using sqlite. What is wrong in my app? Please find
attached the example test
The ticket:
Traceback (most recent call last):
File "/home/p
Dear all,
after I installed web2py version 2.4.2 stable the time to load the design
page (pressing modify in the admin page) of a particular app is extremely
increases.
Usually it takes more than 60 seconds to load, but, when done, all is
working well as expected.
Using the app I don't have an
maybe the fact that you're using sqlite :D
If you have a recent sqlite distribution activate the WAL, it can zero out
the issues for normal loads (usually also for low loads SQLite ends up
locked)
Jokes aside, that's why I implemented multiple queries as regroupings in
python, to alleviate db pr
Hi, everyone, sorry for the OT but i would like to point you to the new uWSGI
quickstart that has a section for Web2Py (and eventually HTTPS mode):
http://uwsgi-docs.readthedocs.org/en/latest/WSGIquickstart.html#deploying-web2py
In addition to this the 1.9 release (available from march 17) can be
I was missing the windows build option totally If speeds between unix
and Windows are at least on the same scale it can solve the
mother-of-all-issues of windows deployments of python apps without using
apache or iis.
On Friday, March 15, 2013 11:45:10 AM UTC+1, Roberto De Ioris wrote:
>
>
Roberto,
Where is the OT??
Thanks for keeping us informed on uWSGI: a must have for web2py users!
mic
2013/3/15 Niphlod :
> I was missing the windows build option totally If speeds between unix
> and Windows are at least on the same scale it can solve the
> mother-of-all-issues of windows de
> I was missing the windows build option totally If speeds between unix
> and Windows are at least on the same scale it can solve the
> mother-of-all-issues of windows deployments of python apps without using
> apache or iis.
>
I was not able to make some serious benchmark as all of the wind
I'll try to build it in the weekend and test it out: I didn't read the fine
prints of the uwsgi license but for all the "intranet" kind of apps where
the included webserver can start to show its limits we could potentially
download the latest stable windows binary and mount web2py on it.
Actual
Are there issues with using(on Windows) Apache HTTP + mod_wsgi see the
windows builds here http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi ?
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop rec
That did the trick. I didn't know about that argument. Thanks for the
heads up.
-Jim
On Thu, Mar 14, 2013 at 3:34 PM, LightDot wrote:
> I don't think it's a bug, .load is inherited in this case, isn't it? In
> other words, it's a feature :)
>
> You can set extension=False in the URL(), that
I read your question again and think yamandu had already answered your
question. There are "if ... elif ... else ..." in the index.html, which you
may need to have a look. For your case, index.html worked similar to
generic.html, but doesn't mean that the generic.html is used.
On Thursday, Marc
Note, generic.html is not being used. The following two sentences are
simply explaining how web2py works, not what is happening in this
particular example:
When developing, if there is no view, the action is rendered by the
> "generic.html" view that is provided with every web2py application.
>From the book:
By default, the extension corresponding to the current request (which can
be found in request.extension) is appended to the function, unless
request.extension is html, the default. This can be overridden by
explicitly including an extension as part of the function name
URL(f='n
I assume there aren't, but that is not a setup I'd put up for an intranet
to publish an app used by 50 users.
Apache on unix is somewhat "fatty" , on windows it gets really soon to
"unbereable". Config directives are a sysadmin thing (I'm not against it,
it just doesn't feel natural). That bein
Yes nginx is my favourite too, being from czech republic, we are closer to
russia :-) ... but it really requires stable build of uwsgi for windows not
only some home-made. Would appreciate hearing any results ...
Dne pátek, 15. března 2013 14:27:03 UTC+1 Niphlod napsal(a):
>
> I assume there are
One solution is discussed here:
http://rwsarduino.blogspot.com/2013/02/pi-progress-tidbits-and-serial.html
It is not the most secure solution but should get you going for debugging
purposes.
Another solution, better, suggested here
http://www.sbprojects.com/projects/raspberrypi/serialsetup.php
This has been fixed in trunk. Will be updated with the new version.
On Friday, 15 March 2013 03:47:02 UTC-5, Alec Taylor wrote:
>
> Suggest making the change on the homepage!
>
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscri
multiprocessing.Process makes a process, not a thread. The process runs in
a new memory space and it cannot access current.
When using subprocess you should not have global variables because they
work differently in windows vs unix and you will run into problems.
On Friday, 15 March 2013 04:10
I'm trying to export a largish (270K records) MySQL table via the grid or
administrative export-csv functions. In both cases, I get an error after a
fairly long wait; I'm assuming it's a connection timeout.
Traceback (most recent call last):
File "/home/wupadmin/.virtualenvs/watchup/watchup/we
Strange. Anybody else seeing this?
On Friday, 15 March 2013 05:15:13 UTC-5, Rocco wrote:
>
> Dear all,
>
> after I installed web2py version 2.4.2 stable the time to load the design
> page (pressing modify in the admin page) of a particular app is extremely
> increases.
>
> Usually it takes more
On 15 Mar 2013, at 6:45 AM, Jonathan Lundell wrote:
> I'm trying to export a largish (270K records) MySQL table via the grid or
> administrative export-csv functions. In both cases, I get an error after a
> fairly long wait; I'm assuming it's a connection timeout.
>
> Traceback (most recent cal
Hi Rocco!
I think you can open Web2py in Ecplise and lauch it in debug mode.
When you hit the performance penalty, press the pause button and you can
start to debug the design/welcome function!
Angelo
2013/3/15 Massimo Di Pierro
> Strange. Anybody else seeing this?
>
>
> On Friday, 15 March
I'd need to test it again, but when I added excel-like exports my users
were downloading ~50mb of files without hiccups (MSSQL though).
*lost connection during query* seems to point the finger towards mysql not
shipping data fast enough than web2py not fast enough to handle its
serialization
Is there a easy way to do this?
--
---
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 https://groups
Anthony, you are right.
I am new to web2py and following this example from the book. It actually
gives me an impression that index.html is not used since it is mentioned
that index.html will be modified and it is immediately following the line
where it is mentioned generic.html will be used if
if you want to use a Database Abstraction Layer you're kinda forced to
tradeoffs. Either you define them in your module or you import the
table definition from somewhere else.without models you can basically
only do db.executesql().
On Friday, March 15, 2013 3:45:41 PM UTC+1, RunSky rua
On 15 Mar 2013, at 7:39 AM, Niphlod wrote:
> I'd need to test it again, but when I added excel-like exports my users were
> downloading ~50mb of files without hiccups (MSSQL though).
> lost connection during query seems to point the finger towards mysql not
> shipping data fast enough than w
you could set some filters and with the frid it should export only the
records shown, not the whole table
PS: passing driver_args = {} should do the job with pymysql, but I don't
see any forums showing that that kind of error is driver-dependant on some
kind of timeout parameter (as is in s
I've stuck on this for a while. I need one page where I can create a
submission with image uploads etc. and a required reference to auth.user.
If the user is logged in it is quite simple but you should create a
submission and login OR register on one page?
I have no idea how to solve this. :(
I think this is fixed and closed the ticket but can you please double check?
On Thursday, 14 March 2013 01:41:25 UTC-5, Marian wrote:
>
> Issues created:
>
> http://code.google.com/p/web2py/issues/detail?id=1390&sort=-id
>
>
> Am Donnerstag, 14. März 2013 00:10:16 UTC+1 schrieb Niphlod:
>>
>> can
Should be fixed intrunk. Please check it and I will post a 2.4.5
On Wednesday, 13 March 2013 07:22:04 UTC-5, Annet wrote:
>
> In Web2py 2.4.4, when I click the Create/Upload button under Modules to
> create a module, the create file with filename dialog appears
> under Static, when I create a new
Somebody suggested web2py.com should look more like http://nodejs.org/
It would not be difficult to do. Should it be done?
Massimo
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails fr
So what is the conclusion? how can you fire a callback for a function when
a child table has a field added or edited using oncreate and onupdate
respectively.
On Wednesday, 7 November 2012 14:43:26 UTC+2, vivek wrote:
>
> Hmmm ,
>
> unsure of how to determine the different table , i tr
I have checked it and thanks its the thing am looking for however, I have
managed to have it work using SQLFORM.grid, however, I am having a
challenge having it work with SQLFORM.smartgrid where a child table upon
adding or editing a row can trigger a callback, I was trying it like so but
it failed
The new web2py site is extremely beatiful, clean and professional.
Why make it darker and greener?!
2013/3/15 Massimo Di Pierro
> Somebody suggested web2py.com should look more like http://nodejs.org/
> It would not be difficult to do. Should it be done?
>
> Massimo
>
> --
>
> ---
> You receiv
Thanks Niphlod
--
---
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 https://groups.google.com/grou
On 15 Mar 2013, at 8:15 AM, Niphlod wrote:
> you could set some filters and with the frid it should export only the
> records shown, not the whole table
I think I'll write a script to parse the database dump into a csv file instead;
it's a lot quicker.
But this seems like a bug to me: at l
Hi,
how can I run web2py using the anyserver script running even the the
scheduler?
Is it possible?
thank you very mutch
Cheers
Manuele
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receivin
Hi Massimo,
I keep getting this error in the apache log, which fills up my log ,I need
to know why is this happening
http_response, request, environ, ticket)
request.env.request_uri), request.url)
return ''.join(map(quoter, s))
return quote(s, safe)
return wsgibase(new_environ, responder)
File "
Let it be..
Be yourself...
Have fun...
On Fri, Mar 15, 2013 at 8:20 AM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:
> Somebody suggested web2py.com should look more like http://nodejs.org/
> It would not be difficult to do. Should it be done?
>
> Massimo
>
> -
Why not like
http://cakephp.org/
Just be yourself
I suggest only that online book could preserve menus on the left like here
http://docs.meteor.com/#quickstart
Best regards
António
2013/3/15 joseph simpson
> Let it be..
>
> Be yourself...
>
> Have fun...
>
>
> On Fri,
More like nodejs.org in what way? It's a nice site, but not sure I like
having to scroll down a page to get to the site menu from the home page.
Also, for some reason, the About and Docs pages have a different color
scheme from the rest of the site (works well for the docs because I think
it's
Memory error usually indicates that you are running out of memory. It could
be due to the app if you are caching too much. I cannot say.
Is it reproducible? Do you have multiple failures at the same point?
massimo
On Friday, 15 March 2013 12:53:42 UTC-5, use_web2py wrote:
>
> Hi Massimo,
>
> I
no. the scheduler is supposed to run OUTSIDE the "watch" of a webserver, of
any kind.
On Friday, March 15, 2013 5:39:49 PM UTC+1, Manuele wrote:
>
> Hi,
> how can I run web2py using the anyserver script running even the the
> scheduler?
> Is it possible?
>
> thank you very mutch
>
> Cheers
I hate the color scheme of nodejs.org and it's quite ugly...
but here's what I do like:
About NodeJS.org...
1. Unambiguous. Web2py.com has three images which appear to be three ipads
displaying webpages. Turns out those webpages are for The web2py book, the
web2py cookbook, and the web2py yout
As far as home pages go, its a bad idea. The Web2py home page works much
better. Here's why:
My laptop display is 768 pixels tall. The Nodejs home page is taller than
768 px, but there's nothing on it that tells me to scroll down. Not good.
On my 1050 px tall monitor, I can tell there is
I will create a new favicon and sand it as a proposal for change that will
that will "stick out" as notice by Derek...
Richard
On Fri, Mar 15, 2013 at 4:32 PM, Derek wrote:
> I hate the color scheme of nodejs.org and it's quite ugly...
>
> but here's what I do like:
>
> About NodeJS.org...
>
I am no win32 expert (and btw I hope I will never need to be one), but
there are much better alternatives to select:
http://msdn.microsoft.com/en-us/library/ms681951(VS.85).aspx
mic
2013/3/15 Roberto De Ioris :
>
>> I was missing the windows build option totally If speeds between unix
>> and
Should it be done?
No.
--
---
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 https://groups.google
A can of worms or Pandora's box?
the "fork me on github" ribbon?
overall web2py.com is much better than nodejs.org. Probably it needs
some little refinements about colors and font sizes, but I am not
entitled to speak ... "de gustibus et coloribus..."
mic
2013/3/15 Stefaan Himpe :
>> Should it
The web2py site has its own distinctive look which is very clever.
Occasional tweaks are good, but let it follow its current course.
Not so sure what that new banner background image (vertical lines) is about
though...
On Friday, March 15, 2013 4:10:04 PM UTC-5, stefaan wrote:
>
>
>
> > Should i
In my experience recently I had many problems with pymysql, so I switch to
mysqldb using dal.
El 15/03/2013 13:18, "Jonathan Lundell" escribió:
> On 15 Mar 2013, at 8:15 AM, Niphlod wrote:
>
> you could set some filters and with the frid it should export only the
> records shown, not the whole t
me neither. My attempts to build 1.9 rc2 under cygwin fail miserably in a
uWSGI compiling server core ***
[gcc] core/utils.o
In file included from core/utils.c:1:0:
./uwsgi.h:297:23: fatal error: sys/event.h: No such file or directory
compilation terminated.*
error
I guess I'll wait for a bi
did you try using query ?
e.g.
query=(db.project.created_by==auth.user) & (db.project.is_active==True)
grid=SQLFORM.grid(query, user_signature=False, onupdate=auth.archive)
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe f
nice solution, with this can solve the problem to add the multiple data
simultanously within one form.
On Friday, March 15, 2013 2:07:11 AM UTC+7, Anthony wrote:
>
> How about:
>
> for i in range(0,10):
> inputs.append(db.table1.field1.clone(name='%s_%s' % (db.table1.field1.
> name, i)))
>
>
Hi all
In this thread
http://www.mail-archive.com/web2py@googlegroups.com/msg47911.html ,
Massimo said that web2py is tested extensively with large files (up to 2GB)
Well, I'm trying to upload just a 150MB tar.gz with this code:
def index():
form = SQLFORM.factory(
Field('archive
On 15 Mar 2013, at 3:44 PM, Martín Mulone wrote:
> In my experience recently I had many problems with pymysql, so I switch to
> mysqldb using dal.
>
>
I'll give it a try. A question, though. The book suggests:
> from gluon.dal import MySQLAdapter
> MySQLAdapter.driver = mysqldb
But just what
Hi All,
I'm new to python, web2py and all. I have been experimenting python and I
like what I read about the web2py (rapid development, security, etc). My
questions is the ability to intergrate a web2py project with a CLI (command
line interface) for my users. I've come across python modules
Hi Folks!
I used to have a shared host on dreamhost using passenger wsgi but I got
some memory issue and transferred my website to their VPS.
What is the best option for production on a VPS? We are using 300MB RAM
account, all select are cached using cache mem...
I can see some spikes and the we
On 03/15/2013 05:27 PM, Vincenzo Ampolo wrote:
What am I doing wrong ?
It seems that the problem was that i was returning dict(form=form) all
cases, this means to send the file back to the browser (probably).
I've solved like this:
def index():
form = SQLFORM.factory(
Field('a
My apologies if this posts twice, I've not used gmail yet ;)
I like what I see in web2py (fast, secure, easy). I am new to python as
well. We are trying to build a web interface with a CLI as well. I've
come across cement. This seems like a commn developemt issue (Web +CLI).
We have also d
I have an application with a parent-child data model where I think sqlform.grid
will be a frustrating user interface approach due the number of interactions to
edit multiple rows. I'm a former perl programmer, and still lazy. I was
wondering about generating an SQLFORM for each row. There may be
Yop!
I am almost finish, I will publish the code I come up with when it good
enough...
:)
Richard
On Fri, Mar 15, 2013 at 8:24 PM, 黄祥 wrote:
> nice solution, with this can solve the problem to add the multiple data
> simultanously within one form.
>
>
> On Friday, March 15, 2013 2:07:11 AM U
I want to put a capable and secure blog into my application. I have an
iframe that links to an external wordpress site under my control. My
question is what special steps are needed to make this a secure environment.
--
---
You received this message because you are subscribed to the Google
One way to do it is parse the args.
ar = request.args # save typing
if len(ar) > 2 and ar[-1] == 'mytable' and ar[-2]=='new': # Yes, there is a
more concise way to do this with slices
oncreate= myfunctiononcreate
else:
oncreate=None
if len(ar) > 3 and isinstance(ar[-1], int) and ar[-2]=='my
Here what come out of my mind for improving favicon...
I think the concept is obvious (see attach PNGs files)!!
- web2py is essential so it's part of the elements
- he has his uniques and distincts set of caracteristics represented
subtilly by the fact that his element tile is not totally standar
What kind of CLI functionality are you looking for?
On Friday, 15 March 2013 19:27:24 UTC-5, Kristen wrote:
>
> Hi All,
> I'm new to python, web2py and all. I have been experimenting python and
> I like what I read about the web2py (rapid development, security, etc). My
> questions is the abi
On Friday, 15 March 2013 19:31:07 UTC-5, Jonathan Lundell wrote:
>
> On 15 Mar 2013, at 3:44 PM, Martín Mulone >
> wrote:
>
> In my experience recently I had many problems with pymysql, so I switch to
> mysqldb using dal.
>
>
> I'll give it a try. A question, though. The book suggests:
>
> from
Can you tel us something about problems. We are using it to check tests
with mysql and some are failing on travis.ci we are trying to figure out
why. Could it be the driver?
On Friday, 15 March 2013 17:44:54 UTC-5, Martin.Mulone wrote:
>
> In my experience recently I had many problems with pymys
If you have a a generic view of a {{=response.toolbar()}} than the view
will be embedding everything in the form, including the form.vars, into the
html. Otherwise this should not be a problem.
Massimo
On Friday, 15 March 2013 20:16:07 UTC-5, Vincenzo Ampolo wrote:
>
> On 03/15/2013 05:27 PM,
that's good, thanks for sharing. that's what i'm looking for, because if
i'm not wrong, there is no web2py appliances that show how to add multiple
data simultaneously within 1 form.
On Saturday, March 16, 2013 8:58:36 AM UTC+7, Richard wrote:
>
> Yop!
>
> I am almost finish, I will publish the
you can use the plugin too:
http://dev.s-cubism.com/plugin_hradio_widget
--
---
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.co
On 15 Mar 2013, at 7:34 PM, Massimo Di Pierro
wrote:
> On Friday, 15 March 2013 19:31:07 UTC-5, Jonathan Lundell wrote:
> On 15 Mar 2013, at 3:44 PM, Martín Mulone wrote:
>> In my experience recently I had many problems with pymysql, so I switch to
>> mysqldb using dal.
>>
>>
>
> I'll give i
> me neither. My attempts to build 1.9 rc2 under cygwin fail miserably in a
> uWSGI compiling server core ***
> [gcc] core/utils.o
> In file included from core/utils.c:1:0:
> ./uwsgi.h:297:23: fatal error: sys/event.h: No such file or directory
> compilation terminated.*
>
> error
> I guess I
I didn't find noting, but didn't search that much... Ask a couple of time.
There is many problems to resolve, and I there is no single way to solve
them. I develop something that may works for me, but may be not exactly
what you are searching for. Anyway... As soon as I get something correct I
show
85 matches
Mail list logo