Amazing.
by the same token, is there any site which collects all the sites developed
in web2py? I couldn't find any. Not the appliances but the real sites built
with web2py. That might be a good booster for new comers into web2py to be
convinced that web2py is not just for learning but for
If I start web2py scheduler (-K) there is no pidfile created but I specify
--pid_filename=...
http://code.google.com/p/web2py/issues/detail?id=486
On Tue, Oct 25, 2011 at 4:13 AM, Joseph Jude ceph...@gmail.com wrote:
by the same token, is there any site which collects all the sites developed
in web2py? I couldn't find any. Not the appliances but the real sites built
with web2py. That might be a good booster for new comers into web2py to
Thanks a lot for the fast replies.
Denes - I actually tried that tonight but it's still creating the
INTEGER columns. I think dal.py is using the column name to figure
out the type of data, it's been a couple of days since I read through
it.
Massimo - Thanks for writing this framework, I've
If I make a scheduler task from web2py I have to do something like:
import uuid
uuid_str = str( uuid.uuid4() )
*import simplejson*
db.scheduler_task.insert(
task_name = '%s' % ( auth.user.username ),
function_name = 'sort_out_files',
timeout = 120,
*args
Hi,
I have a simple question : I would like to add a foreign key to the
table auth_user, but I don't know how to do that.
I can add a text field easily. For example :
auth = Auth(db)
auth.settings.extra_fields['auth_user'] = [Field('city')]
auth.define_tables()
But if I do this, it doesn't work:
Looking for ideas on how to get the result of a field's repr instead
of its raw value when doing a select. Example:
db.define_table('foo', Field('bar', represent=lambda x, row:
x.upper()))
db.foo.insert({'bar':'aaa'})
then in my controller...
stuff = db().select(db.foo.ALL)
The value of
Thanks. But the thing is that I don't know for sure how many chapters I'll
recieve - but It will be more then I'd like to create manually.
Also - I might want to keep adding features to this. E.g. a breadcrumb
trail, or a counter showing how many different paths the user has taken, and
how many
hi all,
I have discovered that args in url are restricted to ascii.
In addition tilde (~) is also not considered valid in arguments.
I am using rest mapping @request.restful() where as far as I can tell
there is no technical reason to restrict args (RFC 3986).
I also found similar limitation for
Very easy using pisa. You also need to install reportlab and html5lib
but once these have been installed it is simple:
# to directly get the html for a view
html = response.render(myview.html, locals())
filename = C://outputpdf.pdf
f = file(filename, wb)
Business applications such as equipment maintenance, rental property
maintenance, purchasing, inventory, production scheduling.
Some scratch built on Web2py/Postgresql, others to be ported from PHP/
MySQL.
Most running on intranets now but some to be commercialized on the
web.
On Oct 24, 9:03
It works great !
Because a list:reference field gets a default constraint, I
deleted :
IS_IN_SET(['Apples','Oranges','Bananas','Kiwis','Lemons'],multiple=True)
I put no requirement.
How can I limit the size of a list:reference field ? I don't want
more than 8 people for example.
Thanks a lot,
Let me think of a better way...
On Oct 25, 2:25 am, tom h darkes...@gmail.com wrote:
Thanks a lot for the fast replies.
Denes - I actually tried that tonight but it's still creating the
INTEGER columns. I think dal.py is using the column name to figure
out the type of data, it's been a
Please open a ticket about this.
On Oct 25, 2:25 am, tom h darkes...@gmail.com wrote:
Thanks a lot for the fast replies.
Denes - I actually tried that tonight but it's still creating the
INTEGER columns. I think dal.py is using the column name to figure
out the type of data, it's been a
this will work
auth.settings.extra_fields['auth_user'] = [Field('myFK_id', 'reference
tableX')]
You cannot use db.tableX because that is not yet defined.
On Oct 25, 12:20 am, Alex dalfga...@gmail.com wrote:
Hi,
I have a simple question : I would like to add a foreign key to the
table
repr is used at the SQLFORM/SQLTABLE level. db does not filer input
and output.
On Oct 25, 4:04 am, jon dobson...@googlemail.com wrote:
Looking for ideas on how to get the result of a field's repr instead
of its raw value when doing a select. Example:
db.define_table('foo', Field('bar',
What if the scheduler_task table's args field get a validator and the
validator try to make a json string from a variable passed to args= if it's
not already json?
It could feel more web2py... :-o
hello one and all,
how do you add a field with a header by iteration to a row from a
select?
lst = db(db.news.id0).select(orderby=~db.news.event_date)
for row in lst:
row.insert(0, dude man data, header) # i know it isn't right
just to give an idea of what i am trying to do. suggestions?
The scheduler wants args and vars in json because they must be stored
in db.
On Oct 25, 3:42 am, szimszon szims...@gmail.com wrote:
If I make a scheduler task from web2py I have to do something like:
import uuid
uuid_str = str( uuid.uuid4() )
*import simplejson*
Hi,
I'm doing a fiddly admin system with a lot of supporting tables, so I'm
trying to use CRUD as much as possible.
In those cases where I've created a button or link of my own, the Ajax
call is trapped and the refresh happens in the target DIV, as desired.
However, where I'm using CRUD
The validation is done on purpose. We think that allowing special
characters in the path info makes urls less readable and can be cause
of directory traversal attacks (~ specifically).
Massimo
On Oct 25, 6:24 am, Pawel Jasinski pawel.jasin...@gmail.com wrote:
hi all,
I have discovered that
web2py has a generic.pdfIf you just return html and view the page
with .pdf it will be serialized in pdf using pyfpdf. Not all html can
be serialized this way.
On Oct 24, 9:23 pm, chris_g chrisgu...@gmail.com wrote:
Annet,
When I explored this a few years ago, I ended up going with an XML
How would it detect it is not in json? You have to type in a string
that contains strings, list, dicts, dates, etc. How would you type it
in in a form if not in json?
On Oct 25, 7:49 am, szimszon szims...@gmail.com wrote:
What if the scheduler_task table's args field get a validator and the
lst = db(db.news.id0).select(orderby=~db.news.event_date) for row in
lst: row.header=dude man data
On Oct 25, 7:52 am, lucas sjluk...@gmail.com wrote:
hello one and all,
how do you add a field with a header by iteration to a row from a
select?
lst =
Thanks for your replies.
Massimo,
How do I use generic.pdf in case these are my controller and view:
Controller:
def classtimesweek():
rows=db((db.lesrooster.bedrijf_id==1)(db.lesrooster.dag_id==db.dag.id)
\
(db.lesrooster.level_id==db.level.id))\
On Tuesday, October 25, 2011 8:34:16 AM UTC-4, Archibald Linx wrote:
It works great !
Because a list:reference field gets a default constraint, I
deleted :
IS_IN_SET(['Apples','Oranges','Bananas','Kiwis','Lemons'],multiple=True)
I put no requirement.
The default validator for
Hi Anthony,
Thanks for your reply, I'll give it a try.
Kind regards,
Annet.
You can't do it automatically, but you can always access the represent
function for a field if needed. For example:
db.foo.bar.represent(stuff[0].bar)
will apply the represent function to stuff[0].bar.
In this case, there is also a DAL function for upper() which can be used in
selects:
On Monday, October 24, 2011 11:27:24 PM UTC-4, horridohobbyist wrote:
Holy Crap! I found the header...
Key Value
Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-
check=0
Can you show your code for how you are generating the download -- I don't
think
Hi,
Having spent a few minutes in the book (!), it seems that what I need is
described here: -
http://web2py.com/book/default/chapter/13#Trapped-Ajax-Links
...but I'm struggling a bit to work out how to apply that to the
linkto argument of crud.select.
This feels more difficult than it
Try to .loads() it and if it failed try to .dumps() and store it in db.
The book say:
*Auth* enables login via basic authentication:
1.
auth.settings.allow_basic_login = False
http://web2py.com/book/default/chapter/08#Authentication
But it isn't working too... :) Could be a typo...
I am sure for complicated response lxml is the best. But for simple
response is TAG.
On 24 окт, 23:16, Richard Vézina ml.richard.vez...@gmail.com wrote:
lxml is pretty nice lib for the task...
Richard
On Mon, Oct 24, 2011 at 11:57 AM, KMax mkostri...@gmail.com wrote:
my solution:
def
Thank you Anthony.
Do you mean multiple=(0,9) ? I cannot find this possibility in the
documentation.
How can I specify that the format of auth_user be auth_user.username ?
Thanks in advance,
Archibald
On 25 oct, 15:32, Anthony abasta...@gmail.com wrote:
On Tuesday, October 25, 2011 8:34:16
On Tuesday, October 25, 2011 10:38:38 AM UTC-4, Archibald Linx wrote:
Thank you Anthony.
Do you mean multiple=(0,9) ? I cannot find this possibility in the
documentation.
Oops, yes, that's what I meant. Apparently, this is undocumented.
How can I specify that the format of auth_user
I used succesfully web2py-appreport.
https://github.com/lucasdavila/web2py-appreport
Ciao.
Paolo
I'm unable to get web2py to connect to mssql.
type 'exceptions.RuntimeError'(Failure to connect, tried 5 times:
'NoneType' object has no attribute 'connect')
My connection string is: db = DAL('mssql://
testUser:password1@localhost/testDB')
Environment
Windows Server 2008 R2, 64-bit operating
Thank you Anthony.
All this works very nicely.
Maybe the default format for auth_user should also be documented.
Let's say I have the following table :
db.define_table('message',
Field('to', 'list:reference auth_user'),
Field('status', 'list:integer'))
I want status to be a list of 0 as
Could a proxy be injecting those? Are you using rocket? is be heind a
proxy?
On Oct 25, 8:50 am, Anthony abasta...@gmail.com wrote:
On Monday, October 24, 2011 11:27:24 PM UTC-4, horridohobbyist wrote:
Holy Crap! I found the header...
Key Value
Cache-Control no-store, no-cache,
Hi Massimo,
I tested and get a error now. The problem is that value is None.
Function argument list(self=gluon.dal.CouchDBAdapter object,
obj=None, fieldtype='reference auth_user')
Code listing line 3531 pp
-
value = NoSQLAdapter.represent(self, obj, fieldtype)
are you using source code or .exe version of web2py?
http://zerp.ly/rochacbruno
Em 25/10/2011 13:31, CJM coreymarq...@gmail.com escreveu:
I'm unable to get web2py to connect to mssql.
type 'exceptions.RuntimeError'(Failure to connect, tried 5 times:
'NoneType' object has no attribute
Suppose the use types {'x':True} instead of true. Loads will fail.
Dump will succeed but it will serialize it as string not as
dictionary.
Logically what you ask cannot be done. The text field requires JSON.
We validate Json. If the json is invalid we cannot deserialize it
before json.dumping
I had some trouble getting LOAD to work, so I used something like
this:
In the html:
div id=variable_text
/div
a href=# id=click_meClick here/a
In the javascript:
$document.ready(function(){
$('#click_me').live('click', function(){
ajax('make_variable_text', [], ':eval');
});
First time I see this. Cool!
On Oct 25, 10:18 am, Paolo Caruccio paolo.carucci...@gmail.com
wrote:
I used succesfully web2py-appreport.
https://github.com/lucasdavila/web2py-appreport
Ciao.
Paolo
I am trying to run web2py in Ubuntu (making a shift from MS-Windows).
It has, of course, Python 2.6.
Since I require MySQLdb for a third party lib, I did setup MySQL 5512
and MySQLdb from 'Ubuntu Software Centre'.
import dabo
import MySQLdb
works OK. No error.
But while establishing a
On Tuesday, October 25, 2011 11:45:41 AM UTC-4, Archibald Linx wrote:
Thank you Anthony.
All this works very nicely.
Maybe the default format for auth_user should also be documented.
Let's say I have the following table :
db.define_table('message',
Field('to', 'list:reference
When I download this PDF (
https://goodsexnetwork.com/StressRelief/static/Web_Introduction.pdf), I get
Pragma: cache
Cache-Control: private
Is there an example of something else that is downloading with different
headers? What is the code that is generating the download?
Anthony
On Tuesday,
On Tuesday, October 25, 2011 12:14:31 PM UTC-4, Cliff wrote:
I had some trouble getting LOAD to work, so I used something like
this:
In the html:
div id=variable_text
/div
a href=# id=click_meClick here/a
In the javascript:
$document.ready(function(){
Oh, sorry. The downloads I'm referring to are from purchased products.
Try this...
Login as richardeng2...@hotmail.com, password Ranger, and download
the file from Order History.
Thanks,
Richard
On Oct 25, 12:39 pm, Anthony abasta...@gmail.com wrote:
When I download this PDF
On Tuesday, October 25, 2011 12:50:36 PM UTC-4, horridohobbyist wrote:
Oh, sorry. The downloads I'm referring to are from purchased products.
Try this...
Login as richard...@hotmail.com, password Ranger, and download
the file from Order History.
Google groups doesn't display full email
One more update of the online book posted:
http://web2py.com/book
Includes:
- italian translation
- japanese translation
- english (revised)
The revised english version includes:
[x] LICENSE CHANGE FROM GPLv2 to LGPLv3
[x] new URL syntax
[x] URL(...,scheme=,host=,port=), thanks Jonathan
Okay. I see.
Than it will be good just to forbid args and vars field to have a not valid
json string. In 1.99.2 I can set args and vars to arbitrary string witch
cause exception in scheduler.
So we need a json validator to try to .loads() the string and if it fails
abort the insertion... If
http://labs.blouweb.com/web2pyappreport
my friend Lucas created it. now it can work with Pisa and Pyfpdf
Em 25/10/2011 14:17, Massimo Di Pierro massimo.dipie...@gmail.com
escreveu:
First time I see this. Cool!
On Oct 25, 10:18 am, Paolo Caruccio paolo.carucci...@gmail.com
wrote:
I used
Hi Christian, thanks for your informative reply.
You were right, I do use URL and A quite a lot, and most of LOGs come
from that two helpers. I also managed to completely turn off logging
by modifying logging.conf.
Interesting, today my website is performing much much better - without
any
richardeng2005 @ hotmail . com
On Oct 25, 1:01 pm, Anthony abasta...@gmail.com wrote:
On Tuesday, October 25, 2011 12:50:36 PM UTC-4, horridohobbyist wrote:
Oh, sorry. The downloads I'm referring to are from purchased products.
Try this...
Login as richard...@hotmail.com, password
You right after sent my mail I told myself I should precise my suggestion
:)
Richard
On Tue, Oct 25, 2011 at 10:31 AM, KMax mkostri...@gmail.com wrote:
I am sure for complicated response lxml is the best. But for simple
response is TAG.
On 24 окт, 23:16, Richard Vézina
On Monday, October 24, 2011 11:04:06 PM UTC-4, pepper_bg wrote:
response.headers['Content-Type'] =
contenttype.contenttype(filename)
Note, I believe response.stream will handle setting the Content-Type header
for you.
So gluon.storage.Storage is an amended dict subclass with dot notation
indexing added. With the additional twist that when a key is missing
s['missing_key'] will still raise the standard dict KeyError, while
s.missing_key will return None. All this is fine, only as long as your
keys are strings
OK, I see the problem now. We should be able to come up with a fix.
On Tuesday, October 25, 2011 1:47:48 PM UTC-4, horridohobbyist wrote:
richardeng2005 @ hotmail . com
On Oct 25, 1:01 pm, Anthony abas...@gmail.com wrote:
On Tuesday, October 25, 2011 12:50:36 PM UTC-4, horridohobbyist
I used appreport and very good, this could be integrated with web2py.
Ovidio Marinho Falcao Neto
Web Developer
ovidio...@gmail.com
ITJP - itjp.net.br
83 8826 9088 - Oi
83 9334 0266 - Claro
hi,
of directory traversal attacks (~ specifically).
how exactly?
I am talking about arguments and only arguments.
I agree that ~ in case of application/controller/method makes no sense
In case of static agree 100%, but that is different control path.
The arguments are just that, arguments. If
Really? That's fascinating. What exactly is the problem?
Thanks,
Richard
On Oct 25, 2:19 pm, Anthony abasta...@gmail.com wrote:
OK, I see the problem now. We should be able to come up with a fix.
On Tuesday, October 25, 2011 1:47:48 PM UTC-4, horridohobbyist wrote:
richardeng2005 @
On Oct 25, 2011, at 10:31 AM, Damjan Malis i...@simplabs.si wrote:
Hi Christian, thanks for your informative reply.
You were right, I do use URL and A quite a lot, and most of LOGs come
from that two helpers. I also managed to completely turn off logging
by modifying logging.conf.
That's
On Oct 25, 2011, at 11:57 AM, Pawel Jasinski pawel.jasin...@gmail.com wrote:
hi,
of directory traversal attacks (~ specifically).
how exactly?
I am talking about arguments and only arguments.
I agree that ~ in case of application/controller/method makes no sense
In case of static
You can do
s.get(6,None)
On Oct 25, 1:07 pm, pepper_bg ilief...@gmail.com wrote:
So gluon.storage.Storage is an amended dict subclass with dot notation
indexing added. With the additional twist that when a key is missing
s['missing_key'] will still raise the standard dict KeyError, while
On Tuesday, October 25, 2011 3:06:49 PM UTC-4, horridohobbyist wrote:
Really? That's fascinating. What exactly is the problem?
It turns out response.download is setting the headers for no cache
(actually, that's the default, and it's just failing to change the
headers). We can probably make
Jonathan,
logging.conf file
[loggers]
#keys=root,rocket,markdown,web2py,rewrite,app,welcome
keys=root
On Oct 25, 9:13 pm, Jonathan Lundell jlund...@pobox.com wrote:
On Oct 25, 2011, at 10:31 AM, Damjan Malis i...@simplabs.si wrote:
Hi Christian, thanks for your informative reply.
You
You can do
s.get(6,None)
Still have to anticipate what my keys are and write different code
accordingly. Which is fine in most cases I guess. Or may be I am
trying to be too generic here. Thanks for your input...
On Tuesday, October 25, 2011 4:08:20 PM UTC-4, pepper_bg wrote:
You can do
s.get(6,None)
Still have to anticipate what my keys are and write different code
accordingly. Which is fine in most cases I guess. Or may be I am
trying to be too generic here. Thanks for your input...
If
On Oct 25, 2011, at 1:18 PM, Anthony abasta...@gmail.com wrote:
On Tuesday, October 25, 2011 4:08:20 PM UTC-4, pepper_bg wrote:
You can do
s.get(6,None)
Still have to anticipate what my keys are and write different code
accordingly. Which is fine in most cases I guess. Or may be I am
I am using and enjoying sqlform.grid. I have the latest version of
web2py, however, I think that the css files within my application have
become out of date.
If I have ten pages, then the page numbers appear vertically rather
than horizontally at the bottom of the table.
What css files do I need
The grid css is in base.css, but if you do not want to mess your own css,
open the file and copy only the grid part. it is commented.
On Tue, Oct 25, 2011 at 6:46 PM, peter peterchutchin...@gmail.com wrote:
I am using and enjoying sqlform.grid. I have the latest version of
web2py, however, I
hi,
thanks! That solved my ~ problem.
Unfortunately for my öäü (chars above 128 and below 255 in latin-1) I
still need to overcome 2 challenges:
1. re.U must be supplied to compile or match to take advantage of
unicode interpretation of \w.
I could shift compile into the routes.py. Is it
It's a source code install. Hench the line:
Web2py: source code install version 1.99.2 (2011-09-26 06:55:33)
:)
On Oct 25, 12:10 pm, Bruno Rocha rochacbr...@gmail.com wrote:
are you using source code or .exe version of web2py?
http://zerp.ly/rochacbruno
Em 25/10/2011 13:31, CJM
hello one and all,
here is the default behavior when i run the select statement like:
d = db.news
lst = db(d.id0).select(d.id, d.event_date, d.permission, d.type,
d.title, d.body, orderby=~d.event_date)
news.id news.event_date news.permission news.type news.title
news.body
29
Do you have access to Ubuntu LTS version like 10.04?
try:
from gluon.dal import MSSQLAdapter
print MSSQLAdapter.driver
My guess isthat it is failing to import pyodbc from dal.py somehow and
the driver should should be set to
driver = globals().get('pyodbc',None)
is set to None instead.
On Oct 25, 10:20 am, CJM coreymarq...@gmail.com wrote:
http://www.reddit.com/r/Python/comments/low7j/what_are_the_best_ways_to_recruit_a_python/
Why not define tableX before auth.define_tables?
I'm doing that with a table and it seems to work. Caveat: there's no
controller for that table so it only gets exposed to the site owner.
On Oct 25, 8:44 am, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
this will work
I am very new at Ubuntu.
pl. tell me what I need to do I will do that.
Do you mean to say that 'grab or update Ubuntu LTS version?'
Thanks,
Vineet
On Oct 26, 3:07 am, Christopher Steel chris.st...@gmail.com wrote:
Do you have access to Ubuntu LTS version like 10.04?
CJM,
Are you using apache using wsgi? if so, you're with me. You cannot
import pyodbc.
http://ochiba77.blogspot.com/2011/10/how-to-setup-web2py-apache-wsgi.html
If you're using rocket server, it should connect because I'm
connecting without any problem. Only difference with your environment
is
On Oct 25, 2011, at 2:06 PM, Pawel Jasinski wrote:
hi,
thanks! That solved my ~ problem.
Unfortunately for my öäü (chars above 128 and below 255 in latin-1) I
still need to overcome 2 challenges:
1. re.U must be supplied to compile or match to take advantage of
unicode interpretation
On Oct 25, 2011, at 12:29 PM, Damjan Malis wrote:
Jonathan,
logging.conf file
[loggers]
#keys=root,rocket,markdown,web2py,rewrite,app,welcome
keys=root
Thanks. That's interesting.
On Oct 25, 9:13 pm, Jonathan Lundell jlund...@pobox.com wrote:
On Oct 25, 2011, at 10:31 AM,
hello one and all,
i know i have a lot of posts. i will become proficient soon. i am
getting the hang of web2py's rythums.
i get the response.download function, it is for the server to receive
files from the client and put the files onto the server.
i want to allow the user to download files
Typically we refer to an upload as going from client (browser) to server
and download as going from server to client. response.download sends
files from the server to the client, not the other way around.
You say you want to store files in static and then let the client download
them. Do you
NInja IDE released 2.0b and it is awesome! (http://www.ninja-ide.org/)
They are running a plugin contest http://www.ninja-ide.org/plugins/
Any taker to create a web2py plugin?
What features do people think a web2py plugin for Ninja-IDE should have?
--
Bruno Rocha
[http://rochacbruno.com.br]
87 matches
Mail list logo