import geonames data in mysql and then define models for those tables,
https://github.com/codigofuerte/GeoNames-MySQL-DataImport
On Mon, Mar 30, 2015 at 12:26 AM, Alex Glaros alexgla...@gmail.com wrote:
Does anyone have the geonames.org countries tables installed in w2p?
Not sure if my
.
On Monday, October 27, 2014, Vasile Ermicioi elff...@gmail.com wrote:
I would build the interface with angular+kendoui and use web2py for REST
API
On Sun, Oct 26, 2014 at 1:26 AM, Phyo Arkar phyo.arkarl...@gmail.com
wrote:
Forgot the actual site :
http://qooxdoo.org
http
clientside. I like ractive.js
instead.
On Monday, 27 October 2014 01:14:51 UTC-5, Phyo Arkar wrote:
I really dislike angular's syntax. Its unnecessarily weird.
On Monday, October 27, 2014, Vasile Ermicioi elf...@gmail.com wrote:
I would build the interface with angular+kendoui and use
I would build the interface with angular+kendoui and use web2py for REST API
On Sun, Oct 26, 2014 at 1:26 AM, Phyo Arkar phyo.arkarl...@gmail.com
wrote:
Forgot the actual site :
http://qooxdoo.org
http://demo.qooxdoo.org/current/widgetbrowser/
http://demo.qooxdoo.org/devel/demobrowser/#
https://developers.braintreepayments.com/javascript+python/sdk/overview/how-it-works
On Fri, Jul 18, 2014 at 11:09 AM, ceriox cer...@gmail.com wrote:
Hi
i need to implement a reservation system:
- the user can accept a reservation and the system must block the
moneys
- After x
sqlite is built in python it doesn't have to be installed separately
On Tue, Jun 17, 2014 at 10:12 AM, Niphlod niph...@gmail.com wrote:
I don't see any adapter from the current list of supported ones that use a
pure python database. An object database wouln't do the trick, unless
rewriting
https://github.com/html5lib/html5lib-python
https://pypi.python.org/pypi/html5tidy/1.0
On Tue, Apr 29, 2014 at 9:46 AM, Robin Manoli ramat...@gmail.com wrote:
Hey!
I'm wondering if there is a way to make the html output beautifully
indented and more easily readable?
--
Resources:
-
if I remember correctly I downloaded sqlite amalgamation from sqlite
website,
and did
./configure --enabled-shared --prefix=$HOME
then
compile python from sources
and after that an equivalent line to your
/opt/python2.7/bin/python2.7 uwsgiconfig.py --build
On Sun, Feb 2, 2014 at 6:03 PM,
datetime.now is a function
datetime.now() is the result of the function
request.now is equal to datetime.now()
On Thu, Nov 7, 2013 at 12:32 PM, at matifa...@gmail.com wrote:
Hi,
Is there any difference between following two statements:
#1
from datetime import datetime
I believe that the future of python is pypy :)
last pypy release (2.0 beta 2) has builtin jit-ed stackless and greenlets
http://morepypy.blogspot.com/2013/04/pypy-20-beta-2-released.html
also there is
- pyuv built on top of libuv the platform layer for NodeJS,
- uvent: a gevent core implemented
Don't really know where you saw the 100k user statement
http://www.sqlite.org/whentouse.html
for every request you are issuing that query once WAL is active,
there's no further need to issue that statement
I agree, +1
editing a single table from multiple users ... no.
with WAL
and are you sure that wal is enabled?
--
---
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
http://confluence.jetbrains.com/display/PYH/PyCharm+3.0+Roadmap
Planned release date: Autumn 2013
--
---
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
hi,
web2py mail.send checks if mail is sent or not,
so if I want to send 1000 emails it will take a while or will break at some
point because my server execution time is 30s
so please advise me what to do in this case
thank you
PS: flask-mail has such an example
web2py.com/books
doesn't work either
--
---
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
ok, thank you
--
---
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
hi,
a few questions
1)
flask example doesn't work if I use flask routing with parameters
@app.route('/place/int:place_id',methods=['GET','POST'])
@wrapper(view='templates/place.html')
def place(place_id):
return dict()
raises an error
do you have an example with parameters?
2) How to
But it is rather annoying that web2py has no built-in
reverse-engineering (intropspection) that can impose a web2py overlay
atop an existing database
there are some scripts to generate models from database,
web2py/scripts/extract_mysql_models.py
web2py/scripts/extract_pgsql_models.py
let say you have table1 and table2 in database,
you shoud define your tables
db.define_table('table1',
..)
and only after that you will have access to db.table1
you can;t access db.table2 if it is not defined even if it exists in the
database
--
---
You received this message because you
lets say you want to control manually if some string is the password of the
user
email='some@email'
pwd='12312312'
hashed_pwd = db.auth_user.password.validate(pwd)[0] # I suppose this is
what you want
if
db(((db.auth_user.password==hashed_pwd)(db.auth_user.email==email)).count():
#do
search in web2py sources
may be here https://github.com/web2py/web2py/blob/master/gluon/validators.py
--
---
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
session.connect(cookie_key='your_key', compression_level=9)
and after that
session['a_key']='a_value'
--
django
rows = train.objects.filter(company__name='Amtrak')
web2py
rows = db((db.trains.company==db.company.id) (db.company.name=='Amtrak')
).select(*db.trains.fields)
for me web2py way is better because it mimics real sql query
but I agree that it could look better, for example
That way you can issue queries like db.trains.company == 'amtrack' that
are - usually - faster than filtering records through joins.
you can't do db.trains.company == 'amtrack' because company is a reference
field
--
request.env.remote_addr
--
lxml, beautifulsoup
--
a while ago I saw vert.x (it is on top of jvm) , now that,
and a question raised in my mind:
why do I need nodejs or evented frameworks, if importing gevent and monkey
patching makes everything non blocking?
celery and other goods are already in web2py frameworks,
so what are your thoughts?
--
.
Il giorno venerdì 4 gennaio 2013 17:38:55 UTC+1, Vasile Ermicioi ha
scritto:
a while ago I saw vert.x (it is on top of jvm) , now that,
and a question raised in my mind:
why do I need nodejs or evented frameworks, if importing gevent and
monkey patching makes everything non blocking?
celery
I just came on http://vertx.io/, it supports python (jython)
what do you think?
http://vertx.io
and here also an article http://blog.andrewvc.com/vertx-node-on-ropes
--
looks like signed cookies based session is broken
I get this error,
3.
4.
5.
6.
7.
8.
9.
10.
11.
Traceback (most recent call last):
File D:\dev\web2py-trunk\gluon\main.py, line 576, in wsgibase
session._try_store_in_cookie_or_file(request, response)
File
yes, now it works
--
hi,
will we have a release this weekend?
--
hi,
I know that this is not because of web2py, but I am getting an error which
says No space left on device
Is it because of no space on disk or can be also something else?
Traceback (most recent call last):
File /home/myuser/web2py/gluon/main.py, line 447, in wsgibase
yes, it is because of tickets, after removing all of them it works(login)
thank you
--
hi,
2 weeks ago I commented on it
http://code.google.com/p/web2py/issues/detail?id=1105
just downloaded web2py trunk and it is still not fixed
when it will be fixed? (there are 6 weeks since it was reported)
--
hi Massimo,
sorry to bother you,
I commented a few days ago on this task , have you been able to reproduce
it?
--
the main problem is that web2pys DAL is designed for relational databases,
and writing nosql adapaters will mean porting just a subset of relational
functionality, but you will not be able to take advantage of unstructured
data, because from web2py point of view it will look structured, just
request.vars(0) is incorrect, request.vars is a dict not a list,
you should use
request.vars.var_name or request.vars['var_name']
--
2 errors
1) args should be an array
form.add_button(Print_Tag, URL(tagprint,
args=[record.bike_identifier]))
instead of
form.add_button(Print_Tag, URL(tagprint, args=record.bike_identifier))
2) if you pass it to args then retrieve it from args, not from vars
req = request.args(0)
instead of
man do a favor for yourself and don't use ms access database,
move to sqlite which is built in python :)
why?
http://database-management-systems.findthebest.com/saved_compare/Access-vs-SQLite
http://sqlite.phxsoftware.com/forums/p/666/3106.aspx
and you will find more reasons on google
how?
use
hi,
instead of showing 'app' application it shows it show init app
but if I go
http://mysite.com/app
it works
routes.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
routes_in = (
('(.*):https?://(.*)mysite\.com:(.*)/', '/app/'),
)
def __routes_doctest():
pass
if __name__ == '__main__':
first be sure you have sqlite =3.7:
1) open python
2)import sqlite3
3)print sqlite3.sqlite_version
if you don't have sqlite =3.7 you can't use wal
put the code in models/db.py after database connection
db = DAL('sqlite://storage.sqlite')
db.executesql('PRAGMA journal_mode=WAL')
but you can
it will not work, update accepts values or expressions which are translated
to sql,
lambda is a function not an expression
db(db.person1.id0).update(
visits = db.person1.visits + 1,
name = db.person1.name.capitalize(),
)
will translated in
UPDATE person1 SET
hi Massimo,
there are more than 2 weeks since I
opened http://code.google.com/p/web2py/issues/detail?id=1105
any news ?
--
thank you!!
I know you are very busy,
thank you for the easiest framework to use
--
hi,
1)
since you already have a plain html design my advice is to remove all files
from static folder of your app and to put your bootstrap files there,
then replace the content of layout.html from view folder with your content
(from html file) and adjust links of css and js files
then put
what version of sqlite ?
import sqlite3
print sqlite3.sqlite_version
for sqlite =3.7 you can do
db.executesql('PRAGMA journal_mode=WAL')
to enable wal ( http://www.sqlite.org/draft/wal.html )
and I am sure that you will not get this error anymore,
I remember I had something like that some
PS:
it is enough to execute that only once
db.executesql('PRAGMA journal_mode=WAL')
then you can remove it
--
I prefer using built in uwsgi webserver - very fast and low memory usage
--
PS: I also have websites on webfaction
--
read this thread from the beginning
me:
the problem with routes_apps_raw and unicode url not fixed :(
massimo:
True. We are discussing on web2py_developers how that should work.
see also
http://code.google.com/p/web2py/issues/detail?id=1105
On Mon, Nov 5, 2012 at 1:38 PM, LightDot
http://blog.getbootstrap.com/2012/10/29/bootstrap-2-2-0-released/
--
hi,
I got an error
TypeError: _options() got an unexpected keyword argument 'zero'
in gluon.contrib.populate line 187
works if I remove zero=False
--
This is the best version! its stable and fast.
yes, but is backward incompatible with a few of my apps, routes_app_raw is
broken :(
--
since I started with web2py routes were the most uneasy and unstable part
of web2py,
and how awesome is web2py in all other parts - dal, template, sql forms,
authentication, building services(json,xml)
but with routes always had problems - no unicode support, very hard to
'rewrite' urls, not quite
the problem with routes_apps_raw and unicode url not fixed :(
--
:50:19 UTC-5, Vasile Ermicioi wrote:
the problem with routes_apps_raw and unicode url not fixed :(
--
--
PS: I need backward compatibility for old projects, and I proposed to
enable unicode urls by default for new projects
--
I need unicode urls, so I enabled routes_apps_raw for my app,
and in models I have a file 0.py where I have this code
if not request.args:
request.args = List(request.raw_args.split('/')) if request.raw_args
else []
if not request.args:
request.args = List()
and when going to
common guys, this is the second post and no one replies me,
since 1.99.4 no web2py version works with my apps and this is a bad sign,
where is the promise of fast bug fixing - or do you think this is not a
bug?
web2py promises backward compatibility, or something changed?
I pointed as detailed
_last_id = 0
_items_per_page=1000
for row in db(db.table.id_last_id).select(limitby=(0,_items_per_page),
orderby=db.table.id):
#do something
_last_id = row.id
--
_last_id = 0
_items_per_page=1000
for row in db(db.table.id_last_id).select(limitby=(0,_items_per_page),
orderby=db.table.id):
#do something
_last_id = row.id
have you tried it and it doesn't work?
do you understand the logic?
--
increase _items_per_page to 20 000
--
_last_id = 0
_items_per_page=1000
for row in db(db.table.id_last_id).select(limitby=(0,_items_per_page),
orderby=db.table.id):
#do something
_last_id = row.id
you don;t need to change anything to load all data, this code is loading
everything in slices as you need,
all records
also _last_id = row.id after your code inside the loop is required
--
for this url,
http://127.0.0.1:8000/fermer/default/user/login
but works fine with 1.99.4
--
what about signed cookies based sessions?
--
hi,
I put my apps and routes.py in a new folder web2py 2.0.9 and all my
websites are pointed to init app
and I downgraded back to 1.99.4
--
you are kind of late, we are already at 2.0.9 and 2.1.0 soon to be released
:)
--
hi,
how to use signed cookies with web2py? ( instead of creating a lot of
session files)
I read that flask uses them for storing session data
--
yes, waitress is great - async and threads combined and that in pure python
:)
--
may I ask a few questions
1) (a suggestion)
why do you need multiselect if jstree already support drag drop?
http://www.jstree.com/documentation/dnd#
and I didn't see a better way to manipulate hierarchical data than what it
offers
an alternative is nestedSortable
db(Start_date NOW()).select(db.tbl.ALL)
cool!! I didn't know that this is possible
--
you can use it but without dal and you lose all great features like form
generation and others
--
If thats true, then NoSQL support isnt yet ready.
in web2py you define TABLES which have FIELDS, and NoSQL support in web2py
means that you are running your models on top of a NoSQL database (e.g.
MongoDB)
there is not yet support for queries like
db(db.user.country.name ='US').select()
but
hi,
I propose to enable unicode urls by default (before going 2.0)
to enable unicode urls in my apps I am doing that
1) in routes.py
routes_apps_raw = ['app1', 'app2']
2)
in applications models in __.py file
if not request.args:
request.args = List(request.raw_args.split('/')) if
There is one more option... implement our own Storage from scratch using
the C-API. I am sure we can make it very fast and meet our needs. I do not
have enough experience with this but I will try look into it. Will not
happen in web2py 2.0.
take a look at
I would do commit after each 1 inserts
data #some array of dicts
for i in xrange(len(data)):
db.table.insert(**data[i])
if i%1==0:
db.commit()
db.commit()
--
http://blueimp.github.com/jQuery-File-Upload/
--
for me that works
alist = db(db.auth_user).select().as_list()
--
That is how I am used to work:
http://programming-**motherfucker.com/http://programming-motherfucker.com/
LOL
Our ValuesThey Claim To ValueThey Really ValueWe Fucking DoIndividuals and
interactions*Tons of billable hours**Programming, Motherfucker*Working
software*Tons of pointless
why do you need pycurl if there is requests ?
http://docs.python-requests.org/en/latest/index.html
--
there are also computed fields...
or they are affected only on single row changes?
--
hi,
I have a table with computed fields, and also field with update values (e.g
updated_on)
I want to increase a field count (number of views) each time an item is
displayed but without touching other fields
how to do that without raw sql?
--
hi,
I have a function and a computed field
def content_snapshot(s):
#do something with s
return modified_s
Field(content_snapshot, text, readable=False, writable=False,
compute=lambda r: content_snapshot(r['content'])),
and it works only for insert operations, on updates it is not
may be the writable False can be the issue
yes, that is,
thanks a lot Bruno
but isn't it a weird behavior?
--
never saw such error, but multiple interpreter mode could mean you didn't
installed uwsgi using specific python
( in my case, I used python2.7)
wget http://projects.unbit.it/downloads/uwsgi-xx.tar.gz
tar xvzf uwsgi-xx.tar.gz
cd uwsgi-xx
/home/myusername/bin/python2.7 uwsgiconfig.py --build
mv
he would pick ROR over any of the current python frameworks
http://www.ruby-forum.com/topic/209343
not over *any*, but over *most*
your affirmation is misleading
I don't recommend using web2py with apache on webfaction, use uwsgi instead
of apache (without nginx)
https://groups.google.com/forum/?fromgroups#!searchin/web2py/uwsgi$20webfaction/web2py/PWpwayGa4Io/bBVyehyZ3ogJ
1)
go to https://my.webfaction.com/applications and create an application,
uwsgi for e.g.
App category: custom
App type: custom app (listening on a port)
and once done you will see the port near app name (it is a number)
2) connect via ssh and execute those commands, but put instead
and how will do that in sql? and you will get the response
try
_select1 = db(query)._select(db.table.id,groupby)
_count = db(db.table.id.belongs( _select1)).count()
--
In my case, i just started web2py server and set up apache2 + proxypass.
I need to change to uwsgi?
it will keep your memory usage low
--
or
max_id = db(db.Node).select(db.Node.id, orderby=~db.Node.id,
limitby=(0,1)).first().id
--
However, webfactiion continually killed my process for going over it's
memory limits. When I asked what was causing this and what I could do to
keep it under my account limit their reply was that this is a common
occurrence with web2py apps. I really didn't have the necessary skills to
get to
replace spaces with underscores for all your dict keys, then convert it to
xml
d2 = {}
for k,v in your_dict.iteritems():
d2[k.replace(' ','_')]=v
#then convert d2 to xml
I said many times before:
use just uwsgi - it has a fast built in webserver :)
http://web2py.com/book
Internal error Ticket issued
hi,
what do you think about waitress webserver?
http://docs.pylonsproject.org/projects/waitress/en/latest/
about redactorjs
http://redactorjs.com/download/
You are *free* to use Redactor for your personal or non-profit website
projects.
You can get the author's permission to use Redactor for commercial websites
by paying a fee.
1 - 100 of 474 matches
Mail list logo