For those who are looking for inspiration on how to develop a good
traditional-cms with web2py, take a look in to
http://www.fork-cms.com/before starting your code!
--
Bruno Rocha
[http://rochacbruno.com.br]
hi,
Currently it is running on apache. How do I make the switch to uwsgi and
disable apache?
go to webfaction panel and do 2 things:
- remove app that is running on top of apache
- create a custom app listening on a port
then connect via ssh to your webfaction account and do that
[install
hi!
It seams that if the site www.addtoany.com is unreachable like today
web2py stops to load their interface at the menu level. It's enough to
disable my network to turn my local app to work fine again. I think it
could be a problem when you have a public application (I guess) with a
default
You can try the LazyLoader
http://www.itthinx.com/plugins/lazy-widget-loader/
-- Forwarded message --
From: Manuele Pesenti manuele.pese...@gmail.com
Date: Wed, Jan 25, 2012 at 7:27 AM
Subject: [web2py] addtoany problem
To: web2py-users web2py@googlegroups.com
hi!
It seams that
Having a
grid = SQLFORM.grid(somequery)
I think usefull to access
grid.actual_rows
After a search, I want to calculate and display a subtotal for some value
row, also I want to know how many records there are in grid.
I can see in source that 'grid' is a @staticmethod so it cannot inject
Dear All ,
i want to get some stuff from the database and add to the menu , like
i have music instruments am trying to get the instruments from the
database and add to the menu , but its not working :
menu.py :
instruments = db().select(db.Instruments.ALL)
myins = []
for ins in instruments:
i Fixed a bug its now
instruments = db().select(db.Instruments.ALL)
myins = []
for ins in instruments:
myins.append((T(ins.Instrument_name), False,
URL('default','Instruments',args=ins.Instrument_name),)
response.menu = [
(T('Home'), False, URL('default','index'), [])
Dear ALL,
I am building an online video training center , i really don't
understand what streaming is and why use it , and do i need to use it
considering that my website is built for videos ..
and How can i use streaming if i need to ?
Best Regards
trivial mistake. It works in the static folder and probably many other
non web2py system folders. library/static/book.pdf
Hetland's Beginning Python ... sticks to the basics and web2py
documentation should not be skipping them. Also, a complete summary of
all features should be included as is
On 25 January 2012 12:04, Web2Py Freak halna...@gardeniatelco.com wrote:
i Fixed a bug its now
instruments = db().select(db.Instruments.ALL)
myins = []
for ins in instruments:
myins.append((T(ins.Instrument_name), False,
URL('default','Instruments',args=ins.Instrument_name),)
On Wednesday, January 25, 2012 5:41:43 AM UTC-5, davidjensen wrote:
trivial mistake. It works in the static folder and probably many other
non web2py system folders. library/static/book.pdf
Should work from any web2py application folder where you store uploaded
files, though the static
response.menu = [
(T('Home'), False, URL('default','index'), [])
(T('Instruments'), False, URL('default','Instruments'), [myins])]
You have put myins inside a list, but it is already a list. Instead:
response.menu = [
(T('Home'), False, URL('default','index'), [])
Hello,
Because I need to have legacy tables in one of my project, I would
like to please You to see what could be wrong in my model/controller:
http://code.google.com/p/web2py/issues/detail?id=613
Massimo reflects if it is bug or not. Could You help ?
regards
brushek
I believe web2py will stream any files downloaded through web2py (i.e.,
from static or via response.download or response.stream).
Anthony
On Wednesday, January 25, 2012 5:20:37 AM UTC-5, Web2Py Freak wrote:
Dear ALL,
I am building an online video training center , i really don't
I left the following comment with the issue:
shop=SQLFORM.grid(db.gk_shop,fields=[db.gk_shop.id,db.gk_shop.nazwa_modulu],user_signature=False,deletable=False)
Note, your refer to db.gk_shop.id, but there is no id field in that table.
The name of the id field is actually db.gk_shop.id_modulo
it keep giving me en error in the response.menu failed to compile file
because:
SyntaxError at line 30 at char 7
invalid syntax (C:/web2py/applications/a3zif/models/menu.py, line
30) , this is my code :
instruments = db().select(db.Instruments.ALL)
myins = []
for ins in instruments:
We use googlecode issues. The Github issues page is open by mistake
and I will close it until there is consent among development that we
should move issues on github. So far googlecode issues have served us
well.
If you opened an issue on guthub and want it resolved, move it to
googlecode.
how would i use this , can you show me a little example please ?
There is nothing you need to do. web2py uses http streaming for all
files. It also does partial content if requested by the client.
So, for example if you have a flash player which links a web2py movie
(via the download function or in the static folder) it will be
streamed to it.
On Jan 25, 8:25
ohh that is great Thank you Massimo ..
Best Regards
Hassan alnator
On 25 Sty, 15:17, Anthony abasta...@gmail.com wrote:
I left the following comment with the issue:
shop=SQLFORM.grid(db.gk_shop,fields=[db.gk_shop.id,db.gk_shop.nazwa_modulu],user_signature=False,deletable=False)
Note, your refer to db.gk_shop.id, but there is no id field in that table.
On Wednesday, January 25, 2012 9:23:51 AM UTC-5, Web2Py Freak wrote:
it keep giving me en error in the response.menu failed to compile file
because:
SyntaxError at line 30 at char 7
invalid syntax (C:/web2py/applications/a3zif/models/menu.py, line
30) , this is my code :
instruments
What do you use for development? If you use an IDE with debugging
step-by-step featues, you can find out where does id come from
On Wed, Jan 25, 2012 at 3:35 PM, brushek brus...@gmail.com wrote:
On 25 Sty, 15:17, Anthony abasta...@gmail.com wrote:
I left the following comment with the
oh Dam , i didnt see that , Thank you anthony :) its working well
now
I'm using vim, editing files directly on server.
On 25 Sty, 15:47, Marin Pranjić marin.pran...@gmail.com wrote:
What do you use for development? If you use an IDE with debugging
step-by-step featues, you can find out where does id come from
On Wed, Jan 25, 2012 at 3:35 PM, brushek
in chapter 6, at the section talking about Copy data from one db into
another
db = DAL('postgresql://username:password@hocalhost/mydb')
Probably meant
db = DAL('postgres://username:password@localhost/mydb')
I was creating a simple app which will send email with a single document
and it works fine. I found Paolo's post to handle multiple documents and
tried. It worked great but I have two problems.
Paolo's post
Thank you very very very much Bruno! that works!
web2py have the best online community!
On Sun, Jan 22, 2012 at 11:23 AM, Bruno Rocha rochacbr...@gmail.com wrote:
Thats what I have in http://movu.ca
def loginbare(self):
username = self.request.vars.email
password =
And Bruno please keep Movca Rolling ! this have potential to become a
Killer Web2py and Python APP.
On Wed, Jan 25, 2012 at 10:51 PM, Phyo Arkar phyo.arkarl...@gmail.comwrote:
Thank you very very very much Bruno! that works!
web2py have the best online community!
On Sun, Jan 22, 2012 at
I posted https://github.com/explorigin/Rocket/issues/1#issuecomment-3648126
- I suspect it is an interplay between timeouts and sendall(), though I
can't really prove it (and I can't reliably reproduce this either right
now). Also some characterization about when this happens to me (slow links,
Hi, first post so go easy on me!
I have two tables setup as shown below. I have a lot of data
(thousands of lines) that I'd like to import, but I can't seem to
figure out an easy way to relate the players.team field back to a team
in the teams table without modifying thousands of lines in excel,
Hi,
I had a similar problem,
my solution was somthing like this:
import csv
dr = csv.DictReader(open('csvfile.csv'), delimiter=',')
for data in dr:
if data['team'] =='text':
team = 1 or (the team id in your table)
elif data['team'] =='more text':
team = 2 or (the team
I've set-up a new workspace and project in Eclipse but when I run a session
off web2py.py the standard apps fail to load throwing an exception in dal.py
class SQLiteAdapter(BaseAdapter):
...
def __init__(self, db, uri, pool_size=0, folder=None, db_codec ='UTF-8',
Hello guys i am new in python and programming web, i am studing web2py , i pay
for a hosting on webfaction anyone have a guide for install it on ?
my other question is about i am a little confused i was read about nginx and
his amazing perforamance what i should use nginx or apache? are
oh my god. The memory usage dropped from 71 mb from 120 mb. webfaction
should use this as their default for installing web2py.
I can't thank you enough.
Just one more question:
1. I'm assuming there is no need to restart uwsgi; it automatically does I
suppose?
Thank you,
Joseph
dropped from 71 mb from 120 mb
which of the two numbers has a typo? :-)
On Jan 25, 12:34 pm, Joseph Jude ceph...@gmail.com wrote:
oh my god. The memory usage dropped from 71 mb from 120 mb. webfaction
should use this as their default for installing web2py.
I can't thank you enough.
Just
Thanks nils, I will give that a try when I get home from work.
I had another idea that I will try out as well...leaving it here for
my reference later.
create the players.team field, but also leave in the players.teamname
(string)
add a false id value for all players (0 in this case will
sorry it is midnight here and i am too relieved that it is solved and too
excited that now i can get back to 'real' development.
dropped to 71 mb from 120 mb
use uwsgi.
Ref: https://groups.google.com/d/msg/web2py/LOdYk1C7B0I/JiMA_HzNqBQJ
I'm assuming there is no need to restart uwsgi; it automatically does I
suppose?
it is started with this command
uwsgi --http 127.0.0.1:your_custom_port --pythonpath
/home/your_user /web2py --module wsgihandler -d
/home/your_user/tmp/uwsgi.log -t 20 -r --no-orphans -M -p 2 --touch-reload
Solved !
Please refer the slice if you're interested.
http://www.web2pyslices.com/slices/take_slice/150
On Jan 25, 9:21 am, Omi Chiba ochib...@gmail.com wrote:
I was creating a simple app which will send email with a single document
and it works fine. I found Paolo's post to handle multiple
Sound like it's related to the issue I posted before.
http://code.google.com/p/web2py/issues/detail?id=547
The bottom line is you cannot use SQLFORM.grid/SQLTABLE if you don't
have id field.I have also legacy table which doesn't have field
called id. I gave using SQLFORM.grid and create the list
Seems like a good feature. I don't know how I would use Postgres text
search without it.
It's still throwing an error on line 1194:
File /Users/pbreit/web2py/gluon/dal.py, line 1194, in _select
if query and not query.ignore_common_filters:
AttributeError: 'str' object has no attribute
I've tracked down this problem to this code in DAL create_table:
if self.dbengine == 'mysql':
if not hasattr(table, _primarykey):
fields.append('PRIMARY KEY(%s)' % table._id.name)
other = ' ENGINE=InnoDB CHARACTER SET utf8;'
hard coding the
Nice! thanks for sharing!
On Wed, Jan 25, 2012 at 6:13 PM, Omi Chiba ochib...@gmail.com wrote:
Solved !
Please refer the slice if you're interested.
http://www.web2pyslices.com/slices/take_slice/150
On Jan 25, 9:21 am, Omi Chiba ochib...@gmail.com wrote:
I was creating a simple app
Maybe it should be a parameter with defaults to utf8
On Wed, Jan 25, 2012 at 8:03 PM, mdorval rockingdor...@gmail.com wrote:
I've tracked down this problem to this code in DAL create_table:
if self.dbengine == 'mysql':
if not hasattr(table, _primarykey):
The navbar for me shows like this:
Login | Register | forgot username? | Lost password?
The forgot username? is in all lowercase, while the others are in
sentence case. What is the cleanest way of making them consistent?
Thanks!
We should fix that -- submit an
issue: http://code.google.com/p/web2py/issues/list
On Wednesday, January 25, 2012 6:48:49 PM UTC-5, naveed wrote:
The navbar for me shows like this:
Login | Register | forgot username? | Lost password?
The forgot username? is in all lowercase, while the
On Jan 25, 2012, at 5:54 PM, Anthony wrote:
We should fix that -- submit an issue:
http://code.google.com/p/web2py/issues/list
Just curious (and too lazy/unconnected to read the source): what's the
difference between forgot lost (and are the question marks really needed?)?
On Wednesday,
Thanks, I just submitted it.
It's forgot USERNAME vs forgot PASSWORD.
On Wednesday, January 25, 2012 7:00:53 PM UTC-5, Jonathan Lundell wrote:
On Jan 25, 2012, at 5:54 PM, Anthony wrote:
We should fix that -- submit an issue:
http://code.google.com/p/web2py/issues/list
Just curious (and too lazy/unconnected to read the source): what's the
difference
On Jan 25, 2012, at 6:03 PM, naveed wrote:
It's forgot USERNAME vs forgot PASSWORD.
Thanks. I should learn to read first.
I thought his point was why use forgot for one and lost for the other?
Why not forgot in both cases?
On Wednesday, January 25, 2012 7:03:18 PM UTC-5, naveed wrote:
It's forgot USERNAME vs forgot PASSWORD.
Hmm ... if one is gonna be anal about this, I think lost should be used
instead. Some users never really know their passwords or usernames, they
are either recorded somewhere or recorded automatically (autofill?), and in
case they loose this, then they never really forgot since they never
Yeah, that's why we should probably just make it configurable. :-)
On Wednesday, January 25, 2012 7:46:39 PM UTC-5, ニコノコ wrote:
Hmm ... if one is gonna be anal about this, I think lost should be used
instead. Some users never really know their passwords or usernames, they
are either
I agree.
From: Anthony
Sent: Wednesday, January 25, 2012 18.54
To: web2py@googlegroups.com
Subject: Re: [web2py] Change the case in auth.navbar?
Yeah, that's why we should probably just make it configurable. :-)
On Wednesday, January 25, 2012 7:46:39 PM UTC-5, ニコノコ wrote:
Hmm ... if one is
On Jan 25, 2012, at 6:54 PM, Anthony wrote:
Yeah, that's why we should probably just make it configurable. :-)
I was distracted, I think, by the different verbs and didn't notice the
different objects, perhaps itself a reason to use the same verb both places. I
don't think it matters too much
Instead of making it configurable, is there a way to make it over-rideable?
I don't know Python that well but doesn't it support object orientation
such that functionality can be over-ridden by sib-classing or whatever?
can I rotate log (uwsgi.log) with this command? I don't want the log file
to go on increasing in size
On Wednesday, January 25, 2012 9:50:14 PM UTC-5, pbreit wrote:
Instead of making it configurable, is there a way to make it over-rideable?
I don't know Python that well but doesn't it support object orientation
such that functionality can be over-ridden by sib-classing or whatever?
You
I didn't get much success in getting logging to work with the GAE -
there is a slice for it, but it all is pretty complicated.
BUT... I tried the following code in the interactive console on the
dev engine:
import smtplib
host = 'gmail.com'
port = 587
server = smtplib.SMTP(host, port)
can I rotate log (uwsgi.log) with this command? I don't want the log file
to go on increasing in size
log-maxsize = n
where n is the maximum size in bytes
--
Roberto De Ioris
http://unbit.it
Another one:
In the Views chapter
{{=DIV(B(I(hello , world))), _class=myclass)}}
should be
{{=DIV(B(I(hello , world)), _class=myclass)}}
Regards
Johann
--
Because experiencing your loyal love is better than life itself,
my lips will praise you. (Psalm 63:3)
64 matches
Mail list logo