Re: [web2py] http://www.geonames.org/ - countries with political subdivisions - allcountries.zip

2015-03-30 Thread Vasile Ermicioi
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

Re: [web2py] Kendo UI

2014-10-27 Thread Vasile Ermicioi
. 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

Re: [web2py] Kendo UI

2014-10-27 Thread Vasile Ermicioi
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

Re: [web2py] Re: Kendo UI

2014-10-26 Thread Vasile Ermicioi
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/#

Re: [web2py] Paypal integration and reservation system

2014-07-18 Thread Vasile Ermicioi
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

Re: [web2py] Re: Which pure python DB or BTree (like ZODB) is best to modify the Scheduler to use pure-python code?

2014-06-17 Thread Vasile Ermicioi
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

Re: [web2py] Tidy html output?

2014-04-29 Thread Vasile Ermicioi
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: -

Re: [web2py] uwsgi question

2014-02-02 Thread Vasile Ermicioi
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,

Re: [web2py] Difference between datetime.now and datetime.now()

2013-11-07 Thread Vasile Ermicioi
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

Re: [web2py] Re: Async Web3Py ?

2013-04-16 Thread Vasile Ermicioi
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

Re: [web2py] Re: class 'sqlite3.OperationalError' database is locked

2013-04-06 Thread Vasile Ermicioi
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

Re: [web2py] Re: class 'sqlite3.OperationalError' database is locked

2013-04-06 Thread Vasile Ermicioi
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

Re: [web2py] Re: Web2Py support on roadmap for pycharm 3

2013-03-26 Thread Vasile Ermicioi
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

[web2py] how to send bulk emails with web2py

2013-03-10 Thread Vasile Ermicioi
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

Re: [web2py] web2py.com moved to PythonAnywhere.com

2013-03-02 Thread Vasile Ermicioi
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

Re: [web2py] Re: gluino questions

2013-03-01 Thread Vasile Ermicioi
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

[web2py] gluino questions

2013-02-28 Thread Vasile Ermicioi
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

Re: [web2py] Re: SQLite tables not recognised in web2py; even when web2py created them?

2013-02-09 Thread Vasile Ermicioi
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

Re: [web2py] Re: SQLite tables not recognised in web2py; even when web2py created them?

2013-02-08 Thread Vasile Ermicioi
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

Re: [web2py] Re: What is the Salt used in web2py

2013-01-31 Thread Vasile Ermicioi
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

Re: [web2py] Re: What is the Salt used in web2py

2013-01-31 Thread Vasile Ermicioi
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

Re: [web2py] Re: Httponly for cookies/sessions

2013-01-14 Thread Vasile Ermicioi
session.connect(cookie_key='your_key', compression_level=9) and after that session['a_key']='a_value' --

Re: [web2py] Re: Hierarchical Database Selection

2013-01-13 Thread Vasile Ermicioi
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

Re: [web2py] Re: Hierarchical Database Selection

2013-01-13 Thread Vasile Ermicioi
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 --

Re: [web2py] equivalent PHP $_SERVER['REMOTE_ADDR']

2013-01-08 Thread Vasile Ermicioi
request.env.remote_addr --

Re: [web2py] Re: preferred solution for parsing {xht,ht,x}ml

2013-01-07 Thread Vasile Ermicioi
lxml, beautifulsoup --

Re: [web2py] pulsar

2013-01-04 Thread Vasile Ermicioi
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? --

Re: [web2py] pulsar

2013-01-04 Thread Vasile Ermicioi
. 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

[web2py] vert.x

2012-12-22 Thread Vasile Ermicioi
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 --

[web2py] Re: web2py 2.3.1?

2012-12-13 Thread Vasile Ermicioi
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

Re: [web2py] Re: web2py 2.3.1?

2012-12-13 Thread Vasile Ermicioi
yes, now it works --

[web2py] will we have a release this weekend?

2012-12-08 Thread Vasile Ermicioi
hi, will we have a release this weekend? --

[web2py] need help: No space left on device

2012-12-07 Thread Vasile Ermicioi
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

Re: [web2py] Re: need help: No space left on device

2012-12-07 Thread Vasile Ermicioi
yes, it is because of tickets, after removing all of them it works(login) thank you --

[web2py] redirect loop when using routes_app_raw

2012-12-03 Thread Vasile Ermicioi
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) --

[web2py] http://code.google.com/p/web2py/issues/detail?id=1105

2012-11-21 Thread Vasile Ermicioi
hi Massimo, sorry to bother you, I commented a few days ago on this task , have you been able to reproduce it? --

Re: [web2py] Re: we should support this in DAL

2012-11-19 Thread Vasile Ermicioi
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

Re: [web2py] args

2012-11-17 Thread Vasile Ermicioi
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'] --

Re: [web2py] Re: request args

2012-11-17 Thread Vasile Ermicioi
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

Re: [web2py] Re: Web2Py and MS Access

2012-11-16 Thread Vasile Ermicioi
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

[web2py] web2py 2.2.1 routes not redirecting

2012-11-16 Thread Vasile Ermicioi
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__':

Re: [web2py] OperationalError: database is locked

2012-11-13 Thread Vasile Ermicioi
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

Re: [web2py] Re: expressions and update

2012-11-12 Thread Vasile Ermicioi
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

[web2py] unicode urls, when will be fixed?

2012-11-12 Thread Vasile Ermicioi
hi Massimo, there are more than 2 weeks since I opened http://code.google.com/p/web2py/issues/detail?id=1105 any news ? --

Re: [web2py] Re: unicode urls, when will be fixed?

2012-11-12 Thread Vasile Ermicioi
thank you!! I know you are very busy, thank you for the easiest framework to use --

Re: [web2py] web2py woes

2012-11-10 Thread Vasile Ermicioi
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

Re: [web2py] OperationalError: database is locked

2012-11-09 Thread Vasile Ermicioi
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

Re: [web2py] OperationalError: database is locked

2012-11-09 Thread Vasile Ermicioi
PS: it is enough to execute that only once db.executesql('PRAGMA journal_mode=WAL') then you can remove it --

Re: [web2py] Re: Webfaction Deployment and Tuning Web2py Slice.

2012-11-07 Thread Vasile Ermicioi
I prefer using built in uwsgi webserver - very fast and low memory usage --

Re: [web2py] Re: Webfaction Deployment and Tuning Web2py Slice.

2012-11-07 Thread Vasile Ermicioi
PS: I also have websites on webfaction --

Re: [web2py] Re: web2py 2.2.1 is OUT

2012-11-05 Thread Vasile Ermicioi
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

[web2py] bootstrap 2.2.0 released

2012-10-30 Thread Vasile Ermicioi
http://blog.getbootstrap.com/2012/10/29/bootstrap-2-2-0-released/ --

[web2py] gluon.contrib.populate TypeError: _options() got an unexpected keyword argument 'zero'

2012-10-30 Thread Vasile Ermicioi
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 --

Re: [web2py] Re: web2py 2.1.1 is OUT!

2012-10-25 Thread Vasile Ermicioi
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 :( --

Re: [web2py] Re: routes.py not working in 2.0.9

2012-10-25 Thread Vasile Ermicioi
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

Re: [web2py] Re: web2py 2.2.1 is OUT

2012-10-21 Thread Vasile Ermicioi
the problem with routes_apps_raw and unicode url not fixed :( --

Re: [web2py] Re: web2py 2.2.1 is OUT

2012-10-21 Thread Vasile Ermicioi
:50:19 UTC-5, Vasile Ermicioi wrote: the problem with routes_apps_raw and unicode url not fixed :( -- --

Re: [web2py] Re: web2py 2.2.1 is OUT

2012-10-21 Thread Vasile Ermicioi
PS: I need backward compatibility for old projects, and I proposed to enable unicode urls by default for new projects --

[web2py] 404 not found for user/login when using routes_apps_raw

2012-10-20 Thread Vasile Ermicioi
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

[web2py] Re: 404 not found for user/login when using routes_apps_raw

2012-10-20 Thread Vasile Ermicioi
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

Re: [web2py] how to loop through tables with 1M records?

2012-10-19 Thread Vasile Ermicioi
_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 --

Re: [web2py] how to loop through tables with 1M records?

2012-10-19 Thread Vasile Ermicioi
_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? --

Re: [web2py] how to loop through tables with 1M records?

2012-10-19 Thread Vasile Ermicioi
increase _items_per_page to 20 000 --

Re: [web2py] how to loop through tables with 1M records?

2012-10-19 Thread Vasile Ermicioi
_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

Re: [web2py] how to loop through tables with 1M records?

2012-10-19 Thread Vasile Ermicioi
also _last_id = row.id after your code inside the loop is required --

[web2py] trunk - 404 not found

2012-10-19 Thread Vasile Ermicioi
for this url, http://127.0.0.1:8000/fermer/default/user/login but works fine with 1.99.4 --

Re: [web2py] web2py 2.1.1 is OUT!

2012-10-15 Thread Vasile Ermicioi
what about signed cookies based sessions? --

[web2py] routes.py not working in 2.0.9

2012-10-12 Thread Vasile Ermicioi
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 --

Re: [web2py] Re: web2py 2.0.2 is out

2012-10-12 Thread Vasile Ermicioi
you are kind of late, we are already at 2.0.9 and 2.1.0 soon to be released :) --

[web2py] how to use signed cookies with web2py

2012-10-08 Thread Vasile Ermicioi
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 --

Re: [web2py] framework benchmarks - web2py surprisingly slow?

2012-09-28 Thread Vasile Ermicioi
yes, waitress is great - async and threads combined and that in pure python :) --

Re: [web2py][outsource] Need a plugin that integrate jsTree or other tree plugin with closure table app

2012-09-20 Thread Vasile Ermicioi
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

Re: [web2py] Re: Using SQL functions in SELECT?

2012-09-16 Thread Vasile Ermicioi
db(Start_date NOW()).select(db.tbl.ALL) cool!! I didn't know that this is possible --

Re: [web2py] Re: NoSQL Question Again!!!

2012-08-23 Thread Vasile Ermicioi
you can use it but without dal and you lose all great features like form generation and others --

Re: [web2py] Re: NoSQL Question Again!!!

2012-08-23 Thread Vasile Ermicioi
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

[web2py] unicode urls proposition

2012-08-22 Thread Vasile Ermicioi
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

Re: [web2py] Re: Major speed improvement need testers

2012-08-22 Thread Vasile Ermicioi
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

Re: [web2py] Best way to insert 200k records?

2012-08-17 Thread Vasile Ermicioi
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() --

Re: [web2py] Batch upload of media?

2012-08-10 Thread Vasile Ermicioi
http://blueimp.github.com/jQuery-File-Upload/ --

Re: [web2py] Re: Get result set back as list?

2012-08-10 Thread Vasile Ermicioi
for me that works alist = db(db.auth_user).select().as_list() --

Re: [web2py] Re: How do larger teams develop with Web2py?

2012-08-09 Thread Vasile Ermicioi
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

Re: [web2py] Re: how to use pycurl in web2py?

2012-07-31 Thread Vasile Ermicioi
why do you need pycurl if there is requests ? http://docs.python-requests.org/en/latest/index.html --

[web2py] Re: how to increase field value without to affect computed fields

2012-07-30 Thread Vasile Ermicioi
there are also computed fields... or they are affected only on single row changes? --

[web2py] how to increase field value without to affect computed fields

2012-07-29 Thread Vasile Ermicioi
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? --

[web2py] computed fields question

2012-07-24 Thread Vasile Ermicioi
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

Re: [web2py] computed fields question

2012-07-24 Thread Vasile Ermicioi
may be the writable False can be the issue yes, that is, thanks a lot Bruno but isn't it a weird behavior? --

Re: [web2py] Re: Minimum memory requirements?

2012-07-06 Thread Vasile Ermicioi
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

Re: [web2py] web2py vs ROR

2012-07-06 Thread Vasile Ermicioi
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

Re: [web2py] Re: Minimum memory requirements?

2012-07-03 Thread Vasile Ermicioi
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

Re: [web2py] Re: Minimum memory requirements?

2012-07-03 Thread Vasile Ermicioi
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

Re: [web2py] count a grouped select

2012-06-21 Thread Vasile Ermicioi
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() --

Re: [web2py] Re: Web2py RAM usage

2012-06-19 Thread Vasile Ermicioi
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 --

Re: [web2py] Re: id.max()

2012-06-18 Thread Vasile Ermicioi
or max_id = db(db.Node).select(db.Node.id, orderby=~db.Node.id, limitby=(0,1)).first().id --

Re: [web2py] Re: Web2py RAM usage

2012-06-18 Thread Vasile Ermicioi
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

Re: [web2py] What is the simplest/most elegent way to get rid of spaces in XML tags

2012-06-14 Thread Vasile Ermicioi
replace spaces with underscores for all your dict keys, then convert it to xml

Re: [web2py] What is the simplest/most elegent way to get rid of spaces in XML tags

2012-06-14 Thread Vasile Ermicioi
d2 = {} for k,v in your_dict.iteritems(): d2[k.replace(' ','_')]=v #then convert d2 to xml

Re: [web2py] Re: uWSGI + Cherokee + web2py - a howto.

2012-06-08 Thread Vasile Ermicioi
I said many times before: use just uwsgi - it has a fast built in webserver :)

[web2py] book page is down

2012-06-06 Thread Vasile Ermicioi
http://web2py.com/book Internal error Ticket issued

[web2py] what do you think about waitress webserver

2012-06-04 Thread Vasile Ermicioi
hi, what do you think about waitress webserver? http://docs.pylonsproject.org/projects/waitress/en/latest/

Re: [web2py] cool new wysiwyg editor

2012-05-30 Thread Vasile Ermicioi
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   2   3   4   5   >