On Jan 5, 11:28 am, walter wdv...@gmail.com wrote:
I have not asked the previous question correctly. I wanted to ask what
folders should be accessible for writing and for which permission must
be set to 644?
Who must to be owner all folders?
The Apache process often runs under a user called
-
{{extend 'layout.html'}}
.tablewrapper{
width:400px !important;
}
div class='tablewrapper'
{{=table}}
/div
--
I guess it works.
Em 15/02/2011, às 00:49, tomt tom_tren...@yahoo.com escreveu:
Thanks for
On my develop computer it works as expected. On the production server the
jqgrid's all show empty grids. It is not a case of the user not being logged
in as was mentioned in another thread about jqgrid.
Normally when I get this type of behaviour I test the rest of the function
by using an
I encountered the *broken pipe* error, when shutting down mysql server
and restarting it.
Is a pooled connection checked as active before being passed to the
DAL in the active process?
mic
2011/2/6 Fran Boon francisb...@gmail.com:
On 6 February 2011 05:15, Massimo Di Pierro
On 15 February 2011 08:49, hywang why00...@163.com wrote:
Please help to run it :-)
# File Name: default.py
def index():
db.define_table(pymysql,Field(content,text),migrate=True)
content = 'http://img1.t.sinajs.cn/t3/style/css/common/
layer.css'
#content = this sentence is no
On Feb 14, 4:33 pm, Grezly dave.i...@gmail.com wrote:
No, my host doesn't provide FastCGI access, so i need to use
mod_python.
Ok. I have no experience with mod_python, so I cannot help. Check
web2pyslices, perhaps there is more help there.
Sweet! Boriel!!
Just what the doctor ordered!
Hey, If you happen to polish the script any further and have a new version
of the same, just remember, I am here to put it to good use. I have
subscribed to this thread, so that I know if you have put up anything here.
Also, Massimo, have you put
Does not use it. But read
http://code.google.com/intl/ru-RU/speed/page-speed/docs/module.html
Resolution, this module used to optimize traffic (fix me) by filtering
out useless spaces, and etc.
This does not speed up web2py any kind, due to it works with generated
htmls.
This job do gzip module
i have documented the steps i took to install web2py with Cherokee and
uwsgi in a public Google document. please find the document here
http://goo.gl/ixsL7 . please pardon me for making it a google doc as i
have included several screenshots.
please go through it, test it and suggest any
On 6 February 2011 05:15, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
Here is a proposed solution in trunk
import mysqldb
from gluon.dal import MySQLAdapter
MySQLAdapter.adapter=mysqldb
before calling db=DAL('mysql://...')
I'm not sure this is being read everywhere, since I just
Hello,
I need to send a bit of info to different web services we use (mainly,
highrise and campaign monitor). I have tested some prototype code
using their API and it works.
Now, I am not sure what would be the best way to integrate it into our
site/app.
I see two potential problems :
- delay as
Hello,
I trying to parse a JSON result sent by Google Custom Search in
web2py. I have the code working in python, but for some reason, it
doesn't work right in web2py and I can't figure out why.
desired output:
Title: title_of_the_link
url: URL_of_the_result
Title: title_of_the_link
Hi Rupesh,
this is an old thread from 2009, the script is there:
/scripts/extract_mysql_models.py
On Feb 15, 5:28 am, Rupesh Pradhan rupeshkrprad...@gmail.com wrote:
Sweet! Boriel!!
Just what the doctor ordered!
Hey, If you happen to polish the script any further and have a new version
Well, thank both of you for solving it and for fixing the book!
Wouldn't it also better to use
base
href={{response.files.append(URL(request.application,'static','plugin_layouts/
layouts/Optimism/'))}} /
This would cut time for inserting the code in every image tag on the
page. Please correct me if i am wrong.
On Feb 15, 1:04 am, villas
Hello,
Perhaps I'm stating the obvious here, but make sure to
reload the page in your browser after changing things: you might be
looking at a
cached wrong version of your page instead...
Best regards,
Stefaan.
Sorry to be back with a request for clarification.
My relationship is that a customer has properties and a property has
rooms.
I did this...
customer_id = session.customer_id
query = select id from properties where customer = %d %
customer_id
Now I tested here and works.
-
{{extend 'layout.html'}}
style
.tablewrapper{
width:400px !important;
}
/style
div class='tablewrapper'
{{=table}}
/div
--
Yes I do not know how to compare dates with datetime fields in a
query.
I suppose there would ideally be some built-in method to express one
type as the other.
Maybe someone knows a way to do it... D
On Feb 15, 7:20 am, Manuele Pesenti manuele.pese...@gmail.com wrote:
Il 14/02/2011 19:57,
check with firebug. It is possible the ajax requests of jqgrid are
failing. This could be because on your deployment you are using
routes.
also clear or tickets. Run jqgrid and check for tickets when it
fails.
On Feb 15, 3:55 am, Johann Spies johann.sp...@gmail.com wrote:
On my develop
'base' is for when all links on that page are to the same place. You
have to decide that.
However, I don't think 'response.files' is right for that. Maybe this
would be better...
base href={{(URL(request.application,'static','plugin_layouts/
layouts/Optimism/')}} /
-D
On Feb 15, 1:28 pm,
Hello Massimo,
I would like to update the languages files at startup or once in a wild...
Where should I put those lines :
#
-
import os
import gluon.portalocker
import cPickle
from gluon.languages import read_dict,
You are passing a string in place of a query. Now sure what it does
but probably not what you want.
I think this does what you want.
customer_id = session.customer_id
query = db.properties.customer==customer_id
db.rooms.property.requires=IS_IN_DB(db(query),properties.id)
form =
Not this:
query = select id from properties where customer = %d %
Try something like this instead:
query = (db.properties.customer==customer_id)
On Feb 15, 2:13 pm, Ed Greenberg greenberg...@gmail.com wrote:
Sorry to be back with a request for clarification.
My relationship is that a
This explanation worked. I will mention that the code
db.rooms.property.requires=IS_IN_DB(db(query),properties.id)
caused the dropdown to display the property id. Changing it to
properties.short_description resulted in a perfect dropdown of only
the properties that the query selected.
I want
One other thing I have thought about is putting a utitliy into web2py
that will read the csv file on initialization and check the date-time
stamp on the file. If the csv file is newer then update the
database. On exit it will check the database to see if it is
changed. If it has then it will
Right you can used writable/readable = false so that you can only
display fields you want user to update and from your server side you
can update the other field as you want... If you want to show the
other field later in other pages for example Setting Pages you can
do so...
I did add more field
This line generates a error
base href={{(URL(request.application,'static','plugin_layouts/
layouts/Optimism/')}} /
Not sure why
On Feb 15, 9:40 am, villas villa...@gmail.com wrote:
'base' is for when all links on that page are to the same place. You
have to decide that.
However, I don't
Hi,
I believe I found a bug and implemented a fix for the following ...
If we use web2py_ajax_page js function to load forms in the same page with
ajax (as in my case, using jquery ui dialog), and if the xhr calls for a
redirect, then web2py incorrectly traps the new forms (via
The broken images started when i created a new application and applied
the following layout plugin to it
http://www.web2py.com/layouts/static/plugin_layouts/layouts/Pluralism/index.html
The problem is when you see the preview all the images are intact but
when i try to do it all the images are
I think IS_EMAIL() validator has a bug:
it accepts the same email with different lower and upper cases to be
accepted
u...@mysite.com and u...@mysite.com and u...@mysite.com or any combination.
The problem is quite simple, just transform it to lower before compare and
insert in db.
--
Hello,
I would like to write this in web2py :
SELECT tab1.tab1_id
FROM tab1
WHERE tab1.tab1_id NOT IN (SELECT tab1_res.tab1_id FROM tab1_res)
Try this without success :
db(db.tab1.tab1_id !=
(db().select(db.tab1_res.tab1_id))).select(db.tab1.ALL)
Thanks
Richard
On Feb 15, 2011, at 9:06 AM, Alexandre Andrade wrote:
I think IS_EMAIL() validator has a bug:
it accepts the same email with different lower and upper cases to be accepted
u...@mysite.com and u...@mysite.com and u...@mysite.com or any combination.
The problem is quite simple, just
Can I make a proposal to improve it? to me, a email have always to be lower
case, specially when it is used to login.
The problem is that email in auth_user need to be a unique key, and it
allows to be duplicated.
2011/2/15 Jonathan Lundell jlund...@pobox.com
On Feb 15, 2011, at 9:06 AM,
Calling out there to see common practices in web development regarding
spam control/word filtering. How is this handled in web development
once a site is developed? what are the practices? I know that captcha
is some sort of spam control but how about word filtering? or to
prevent users from
One change: use the following instead for the 'web2py-url' header setting:
response.headers['web2py-url'] = request.env.path_info + '?' +
request.env.query_string
My original post above (using request.url) was causing the query string to
be lost after the redirection.
Regards,
Carlos
Hi!
Try this:
rows_res = db(db.tab1_res)._select(db.tab1_res.tab1_id)
rows = db(not db.tab1.tab1_id.belong(rows_res)).select()
--
Lucas D'Avila
http://flavors.me/lucasdavila
Em 15/02/2011 15:09, Richard Vézina ml.richard.vez...@gmail.com
escreveu:
Hello,
I would like to write this in web2py
On Feb 15, 2011, at 9:39 AM, Alexandre Andrade wrote:
Can I make a proposal to improve it? to me, a email have always to be lower
case, specially when it is used to login.
The problem is that email in auth_user need to be a unique key, and it allows
to be duplicated.
The relevant RFC
Thanks Lucas
There were some typo :
rows_res = db(db.tab1_res)._select(db.tab1_res.tab1_id)
rows = db(~db.tab1.tab1_id.belongs(rows_res)).select()
Richard
On Tue, Feb 15, 2011 at 12:57 PM, Lucas D'Avila lucass...@gmail.com wrote:
Hi!
Try this:
rows_res =
HI,
I am running a SOAP service, now I need to define the namespace
so:
@service.soap('MyAdd', returns={'result':int},args={'a':int,'b':int})
def add(a,b):
print 'requested'
return a+b
should return with 'http://tempuri.org/AttivoTradeInterface/WSTradeInterface'
as the namespace.
how
Well I never used 'base' before; that was your idea :)
Anyhow 'base' should be in the head section, I don't think it would be
such a good idea to use it.
To make a shortcut in your page how about generating an URL string and
then just prepending it to the image tags? For example:
Create the
Not sure if that should be
base href={{=URL(request.application,'static','plugin_layouts/
layouts/Optimism/')}} /
or it should be removed completely. Please try it.
On Feb 15, 10:57 am, stargate kyoukh...@gmail.com wrote:
The broken images started when i created a new application and applied
On Feb 15, 2011, at 11:16 AM, Massimo Di Pierro wrote:
Not sure if that should be
base href={{=URL(request.application,'static','plugin_layouts/
layouts/Optimism/')}} /
or it should be removed completely. Please try it.
base is supposed to be an absolute URL; I'm not sure if the output
import base64, re
On Feb 15, 2011, at 9:57 AM, Carlos wrote:
One change: use the following instead for the 'web2py-url' header setting:
response.headers['web2py-url'] = request.env.path_info + '?' +
request.env.query_string
My original post above (using request.url) was causing the query string to be
I modified my code from
sr = urllib.urlopen(url)
search_results = json.loads(sr.read())
for i in search_results['items']:
db.results.insert(link_title=i['title'])
db.results.insert(url=i['link'])
to
sr = urllib.urlopen(url)
search_results = json.loads(sr.read())
for i in
Apologies if this answer is already posted elsewhere - a search didn't
answer my question.
Basically I need to pre-populate some sqlite tables used with my
web2py app with a fair amount of data. Would like to run some scripts
that performs this task via conventional pythonwin IDE.Thus far
Hello,
I'm struggling with my hosting company. Python, postgres ok but no
shell access. Using linux. Is there any documentation other than the
online book that I can pass on to the hosting company?
Regards,
Saf
look into
web2py -h
web2py -S app -M -N -R yourscript.py
On Feb 15, 10:57 am, wdtatenh wdt...@comcast.net wrote:
Apologies if this answer is already posted elsewhere - a search didn't
answer my question.
Basically I need to pre-populate some sqlite tables used with my
web2py app with a
The plugin replaces your layout.html
Open up views/layout.html
Search for: images/
Replace with: static/plugin_layouts/layouts/Pluralism/images/
Does that help?
I should mention that the plugin is just to get you a head start.
You're going to have to do more work to assimilate it into your
If you go here
http://www.web2py.com/layouts
then preview Optimism. How come when you go to view source the image
path is /images and the image file name. But when you click on view
image it will show you the exact path of the images.
I am just wondering why can't i just do
On Feb 15, 7:07 pm, Saf Hulou saf.hu...@gmail.com wrote:
Is there any documentation other than the
online book that I can pass on to the hosting company?
web2pyslices.com has a lot of hosting-specific HOWTOs and advice.
Ok I found one typo :
records = db.person(request.args(0)) or redirect(URL('index'))
And I didn't see that there were the list_records function... [?]
So there is just a s to correct in the book.
Richard
On Tue, Feb 15, 2011 at 3:32 PM, Richard Vézina ml.richard.vez...@gmail.com
wrote:
There is something else that cause problem...
If you use in your model :
Field('table_id','id')
The example not works properly even the appadmin not working...
Richard
On Tue, Feb 15, 2011 at 3:40 PM, Richard Vézina ml.richard.vez...@gmail.com
wrote:
Ok I found one typo :
records =
Hello Massimo,
Is there something wrong with this syntax :
Field('table_id','id')
sequence_name='table_table_id_seq'
You introduced it, a couples of month ago... It works just fine with
Postgres... But now I am facing problem.
If I want to make one form for many tables, it is not possible
Just added a few more features and a new design to http://askvalue.com
Hope you like it!
On Feb 14, 2:19 am, Christopher Steel chris.st...@gmail.com wrote:
I would love to see the code...
On Feb 12, 3:08 pm, Ovidio Marinho ovidio...@gmail.com wrote:
sorry for a moment thought I was on
I think I now understand, you want the plugin to work like it does
online.
After you install a new app e.g. 'alayout' and then the layout plugin
'Optimism', the layout is copied over the top of views/layout.html.
This is visible from: http://localhost:8000/alayout/ But the images
and urls etc
The view would be different in my case, since I'm using jQuery Mobile.
Fortunately it's probably OK to have the same controller/actions, at
least.
On Feb 14, 8:14 pm, howesc how...@umich.edu wrote:
is the view different or just the css? if just the css put a conditional
css include in
For me, the text in the top blue bar (i.e., AskValue, QUESTIONS, and
LOGIN) is now difficult to read (either the background or the text needs
to be lighter). The attached image shows what it looks like for me.
Also, I notice AskValue is using the Tymr favicon, which is confusing.
Best,
OK I've found that one and fixed it in chapter 7.
Thanks. D
On Feb 15, 8:40 pm, Richard Vézina ml.richard.vez...@gmail.com
wrote:
Ok I found one typo :
records = db.person(request.args(0)) or redirect(URL('index'))
And I didn't see that there were the list_records function... [?]
So there
Hi,
I am having trouble using the LOAD component with forms to produce a
wizard style multiple form type setup (eg, enter information on one
screen, then go to the next, etc.).
If I move my mobile_verify.load file to mobile_verify.html and visit
http://localhost/myapp/default/mobile_verify/one
I found this
threadhttp://www.mail-archive.com/web2py@googlegroups.com/msg17851.html which
seems to indicate that something was being done about this, but it still
seems like only create, read, update and delete are actually being enforced
by crud.settings.auth=auth. This is contrary to the
I realize T2 is deprecated, but here's (http://www.mail-archive.com/
web2py@googlegroups.com/msg05280.html) further reference to the
behaviour I'm expecting.
now give yourself back permission *only* to select record in table
[app]_user
group_id=auth.add_group(role='Manager')
Hi!!
I'm using powertable plugin for a simple app I have the following:
(Model)
db.define_table('location',
Field('name','string'),format='%(name)s')
db.define_table('car',
Field('name','string'),
Field('model','string'),
You should consider a queue:
https://groups.google.com/d/topic/web2py/W2gtGxIKYFc/discussion
I am starting a web app for my company soon, and I thought I would ask here
if you have any suggestions on whether to use the GAE or EC2 to as a server
platform.
Any thoughts on the pros and cons?
I thought it would be appropriate to ask because of the new things scheduled
to come out for the
Can you provide an example of form for many tables this is not
something web2py supports out of the box so it depends. I can see
problems with it.
On Feb 15, 3:08 pm, Richard Vézina ml.richard.vez...@gmail.com
wrote:
Hello Massimo,
Is there something wrong with this syntax :
Hi! Is it possible to use that framework with web2py? also in Windows?
Anybody has tried it out? How could I get it working?
Thanks!
Hi James
Here are a few personal opinions, (although my assumptions may be
wrong or out of date):
GAE
1. web2py targets the GAE platform and a lot of effort is put into
this brand of 'No-Sql'. The web2py lead developer has access to
forthcoming enhancements and so it should function very well
Forgot to mention this, it may be interesting for you:
http://stackoverflow.com/questions/791447/windows-azure-vs-amazon-ec2-vs-google-app-engine
Thanks,
This worked nicely.
On Feb 15, 8:24 am, Bruno Rocha rochacbr...@gmail.com wrote:
Now I tested here and works.
-
{{extend 'layout.html'}}
style
.tablewrapper{
width:400px !important;}
/style
div class='tablewrapper'
{{=table}}
/div
Hello I am running the latest version of web2py and apach2 on debian lenny
but it doesn't seem like my routes.py file is being used
I still get invalid controller instead of my message.
is there anything in particular I have to do with apache to get routes.py to
run
*cheers
Maybe provide your routes.py code?
The 'input_sheet.py' module placed in site-packages:
def write_to_file(file_name, content):
file = open(file_name, 'w')
file.write(content)
file.close()
def main():
file_name = 'output.txt'
content = 'This is the output text.'
return file_name, content
if __name__ == '__main__':
file_name,
If you're going to be searching based on the difference between date1 and
date2 why not just include the difference in the DB itself with a computed
field? (http://www.web2py.com/book/default/chapter/06#Computed-Fields)
I came across the following URLS
http://web2py.com/AlterEgo/default/show/106
http://www.web2py.com/AlterEgo/default/show/167
Where is the updated content with the new web2py tags
incredible that this work, cant wait to try it out
thanks
d
On Feb 15, 11:21 am, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
import base64, re
Sorry for a possible double post but honestly, I could not find my
previous post. I had asked if it was possible to customize CRUD forms?
such as the length of the text boxes? if so, how? I love the
simplicity of CRUD and would prefer it over manually creating forms
THanks
On Feb 15, 2011, at 11:21 AM, Massimo Di Pierro wrote:
import base64, re
BADWORDS=re.compile(base64.b64decode(KGFob2xlfGFudXN8YXNoMGxlfGFzaDBsZXN8YXNob2xlc3xhc3N8YXNzfGFzc2ZhY2V8YXNzaDBs
There are some very peculiar choices (and omissions) in that list.
rautenberg? job?
honkey, but not
With support for Amazon EC2 I am very curious how EC2 actually works.
So in tradition of python:
How does it... um... how does it work?
For example, how does it become elastic whti web2py? How are
instances handles and is it generally more expansive than other
hosting options?
The reason I ask
http://akismet.com/
Hi ty for the reply and sorry about my message it was quickly done up
I only added this line to the routes.example.py and renamed it routes.py
routes_onerror = [('dojo0/*','/dojo/error/index')]
the controller error/index is this
def index():
if request.vars.code == '400':
return
On Feb 15, 2011, at 2:05 PM, James Hancock wrote:
I am starting a web app for my company soon, and I thought I would ask here
if you have any suggestions on whether to use the GAE or EC2 to as a server
platform.
Any thoughts on the pros and cons?
I thought it would be appropriate to ask
Each instance is like an individual web server. You can scale in two ways:
1) your existing instance can acquire more CPU cycles and RAM or 2) you can
relatively easily add and subtract additional instances (ie, servers). Being
able to grow your instance is nice but if you are running into
On Feb 15, 2011, at 9:25 PM, Andrew Evans wrote:
Hi ty for the reply and sorry about my message it was quickly done up
I only added this line to the routes.example.py and renamed it routes.py
routes_onerror = [('dojo0/*','/dojo/error/index')]
Did you mean 'dojo0' or 'dojo'?
the
Ok ty I got it haha
now I feel like a novice :-P
I had an extra period in the routes.py filename so it was routes..py
any ty for the advice *cheers
Andrew
I have three tables that aren't particularly large (1500, 2500, and
3500 records in each). With VirtualFields enabled a select() query
take a very long time to process.
class VirtualFields(object):
def name(self):
return self.table1.table2.name
def email(self):
return
I have a simple CRUD create form that's driving me crazy. I want to
pre-load one of the fields in the form. I want the field to show up,
but be read-only so the user can see it but not change it.
I've tried setting the default property of the field and then making
it readable=True and
88 matches
Mail list logo