Hi,
.
Lighty runs under the user of www-data and so folders or files that
need to be written too, have to have the ownership changed to www-data
other wise you will get this error, same goes for a download/upload
folder if you are uploading content via your application.
Regards,
Nils
On Sun, Ja
On 28 January 2012 01:06, Michele Comitini wrote:
> About db bottlenecks:
>
> I think that using executesql gives a performance gain of 2 orders of
> magnitude over DAL on datasets with more than 1000 records. The DAL
> is a huge bottleneck if used inappropriately.
>
I agree. I often find it eas
On 27 January 2012 20:24, Bruno Rocha wrote:
> I also noted best performance directly rendering the templates and
> caching views where it can be cached.
>
> just replacing
>
> return dict()
>
> with
>
> return response.render(filename, context)
>
Is there documentation about this? How do you c
Say you have a response.menu, that goes
response.menu = [
(T('Home'), False, URL('default','index'), [
(T('Looged In stuff'), False, URL('default','index'))
]),
(T('Logged in menu'), False, URL('default','index'), [
(T('Menu Item'), False, URL('default','index'))
])
Well, thank you for the support :).
I realize that the html5 codecs situation is a bit of a mess at the present.
@Lightdot:
It's always reassuring to know you're not the only one who tripped over
this.
Sometimes, I feel like I should know the Framework inside out after having
used it for abou
Done.
I also think we need a mechanism to give permissions to users about
groups. The auth_permission works well to give permissions about
objects and other tables but not about groups themselves.
For example consider the permission to manage a group. If we do
auth.has_permission('manage','a
On Jan 29, 2012, at 4:23 PM, Massimo Di Pierro wrote:
> Yes I am sure it is not running in background.
>
> Recently I started having two problems and I cannot track them down.
> 1) on 10.6.8 I cannot quit with ctrl+C
> 2) on Lion is keeps printing '^@' to console, about one per minute.
> I suspec
On Jan 29, 2012, at 4:23 PM, Massimo Di Pierro wrote:
> Yes I am sure it is not running in background.
>
> Recently I started having two problems and I cannot track them down.
> 1) on 10.6.8 I cannot quit with ctrl+C
> 2) on Lion is keeps printing '^@' to console, about one per minute.
> I suspec
No problem any time.
On Sun, Jan 29, 2012 at 7:35 PM, Sanjeet roy wrote:
> Thanks Bruce My Problem is solved
--
--
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.warplydesigned.com
http://www.fitnessfriendsfinder.com
First, I apologize for stealing a thread a bit, but this seems to be
related to the original issue. This group is a wealth of knowledge so I
guess it doesn't hurt to document this here...
In the case of PIE.htc, it only needs a proper content-type and it needs to
be referenced in the css (I'm r
Thanks Bruce My Problem is solved
https://github.com/magnusvw/hollywoodr
I like the idea. Currently I am loading user groups on login.
I just think it have to be called auth.user_groups so it will be more
compatible with auth.user_id
http://zerp.ly/rochacbruno
Em 29/01/2012 23:17, "Massimo Di Pierro"
escreveu:
>
> auth.mygroups
>
> is a dictionary of (key,value) = (g
You have to tell web2py what do to with the file.
If the file is in static and served by web2py you should download it
with
http:///filename?attachment
if it is served by your controller you must set the
reponse.header['content-disposition'].
On Jan 29, 8:25 pm, LightDot wrote:
> This bri
This brings back memories. I believe I may have had a similar problem
recently. Apache & mod_wsgi, web2py 1.99.2.
I wanted to use css3pie to overcome IE8 and IE9 lack of CSS3 support. IE8
is easy going, but IE9 strictly demands a correct file-type for the PIE.htc
behaviour file in order to use
>
> You could also try:
>
> from gluon.contenttype import CONTENT_TYPE
> CONTENT_TYPE['.webm'] = 'video/webm'
>
> presumably early in db.py, depending on when it was needed. Unless that's
> too late in some case.
>
Static files are served before hitting the app code, but should work for
other do
auth.mygroups
is a dictionary of (key,value) = (group_id,role)
This makes it easy to create objects like
db.define_table('thing',
Field('name'),
Field('groups_with_access','list:reference auth_group'))
and select them with
mythings =
db(db.thing.groups_with_access.contains(auth.mygroup
I suggest you simply make the fields hidden
db.auth_user.first_name.readable = db.auth_user.first_name.writable =
False
db.auth_user.last_name.readable = db.auth_user.last_name.writable =
False
On Jan 29, 6:36 pm, HittingSmoke wrote:
> I'd like to use auth with only a username instead of first a
I'd like to use auth with only a username instead of first and last
name. I defined my own tables without a first and last name but it
still causes issues throughout the app.
For instance, when I try to use appadmin to add a user to a new auth
group I get an error ( 'first_name') if
there is no fi
Can we see the code?
In the following example no tbody is added to the inner table:
>>> t=TABLE(*[TR(TABLE( *[ TR(*[1,2,3]), TR(*[4,5,6])] )),TR()])
>>> print t
123456
or nicely formatted:
123
456
On Jan 29, 4:10 pm, Tsvi Mostovicz wrote
I've a couple of questions about SQLFORM.grid:
- Is it possible to position the buttons/links created by the 'links'
argument somewhere other than the end of the row? It feels as if the
'fields' argument should be able to do this, but I can't see how.
- Is it possible for the 'search' box to
Cant't you just modify the interface code to get the expected string
input? It seems that the input data is stored in the Morsel instance.
On 29 ene, 04:11, Ben Tammetta wrote:
> Hello,
>
> I am using the code provided here to create a web2py facebook
> applicationhttps://github.com/pythonforfac
On Mandriva Linux Free 2010 (32 bit) with KDE desktop I get a message
when I stop rocket with Ctrl-C:
(10129)/ ClientApp::doIt: Creating ClientApp
kioclient(10129) ClientApp::kde_open: KUrl("http://127.0.0.1:8000";)
^CUnhandled exception in thread started by
Error in sys.excepthook:
The server ex
I belive the and operator is not used with query expressions.
I think the proper intersection is query1 & query2... & queryN
On 29 ene, 15:22, Sanjeet roy wrote:
> I have one date column due_date here i want to select the all data
> between dates one is starting date and one is end date both are
The policy is simple. If you have a business and you have a web site
that says you provide "web2py support" just ask and I will add you.
If you can claim projects already built with web2py, please also send
me those links.
I also encourage people to apply for membership to
expert4solutions.com. Y
adding to trunk.
On Jan 29, 2:12 pm, Jonathan Lundell wrote:
> On Jan 29, 2012, at 1:49 PM, Magnitus wrote:
>
> > The problem is with web2py.
>
> > I changed 'contenttype.py' in gluon and added '.webm': 'video/webm' to the
> > list.
>
> > If the necessary changes could be made to the trunk so t
query = db(db.f_company_compliance.company == session.company)
query = query((db.f_company_compliance.due_date >= session.strtdate) &
(db.f_company_compliance.due_date <= session.enddate))
rows = query.select()
for row in rows:
# do something
On Sun, Jan 29, 2012 at 10:22 AM, Sanjeet roy wrote
I fixed issue 627. The other issue is still open.
On Jan 29, 10:27 am, Massimo Di Pierro
wrote:
> I would like to post web2py 2.0 since we have no major pending issues.
> Yet there are two issues I would like to fix first:
>
> http://code.google.com/p/web2py/issues/detail?id=627
>
> I used to be
Yes I am sure it is not running in background.
Recently I started having two problems and I cannot track them down.
1) on 10.6.8 I cannot quit with ctrl+C
2) on Lion is keeps printing '^@' to console, about one per minute.
I suspect these problems are related and bother me very much. I cannot
thin
> does web2py have a standard AES api? i would like to (symmetrically)
> encrypt the stored motp pin and motp secret. Or is it better i just
> use a external python library?
There is a CRYPT helper object of web2py that can be instanitated with
different options. It is used for standard authentica
I have one date column due_date here i want to select the all data
between dates one is starting date and one is end date both are taken
manually so if the user select cmnpny and start and end date all the
data related to company between choosen date should be come
my code is below but i don't able
Have you tried passing table components as arguments?
TABLE(THEAD(), TBODY(), THEAD(), TBODY(), ...)
You could explore each table helper instance and extract the parts you
want to nest and then in a view do something like this:
{{ for table in tables:}}
{{ table.elements("thead")[0] }}
{{ tab
Shouldn't second table go inside ... if you want nested tables ?
Shouldn't anything inside table be inside ... ?
I don't understand your wanted structure. It is not valid or am I missing
something?
Marin
On Sun, Jan 29, 2012 at 10:10 PM, Tsvi Mostovicz wrote:
> Hi all,
> I'm trying to get
Hi all,
I'm trying to get the following HTML structure using HTML helpers:
...
...
...
...
AKA nested tables.
For some reason when I put the TABLE helper within another TABLE
helper, the internal one gets surrounded by tbody, tr and td causing
it not to show properly. Does anyone have an idea ho
Ok thanks I will email him directly.
--
Regards,
Bruce
2012/1/29 Kenneth Lundström
> If you havn't gotten a reply by Massimo by now you can email him
> directly. You can find his address on quite a few posts in this group.
>
>
> Kenneth
>
>
>
> How do I get my company listed on
> http://www.w
How?
2012/1/29 Alexandre Andrade
> while https can be used for everyone, u can force https just to one.
>
>
>
> Em 28 de janeiro de 2012 12:51, António Ramos escreveu:
>
> Hello, if i have 20 apps in the same server of web2py and only one needs
>> to be accessed with https what do i do?
>>
>>
>>
On Jan 29, 2012, at 1:49 PM, Magnitus wrote:
> The problem is with web2py.
>
> I changed 'contenttype.py' in gluon and added '.webm': 'video/webm' to the
> list.
>
> If the necessary changes could be made to the trunk so that I don't have to
> do the above modification to my copy each time I
The problem is with web2py.
I changed 'contenttype.py' in gluon and added '.webm': 'video/webm' to the
list.
If the necessary changes could be made to the trunk so that I don't have to
do the above modification to my copy each time I download the latest
version of the framework, it would be a
If you havn't gotten a reply by Massimo by now you can email him
directly. You can find his address on quite a few posts in this group.
Kenneth
How do I get my company listed on
http://www.web2py.com/examples/default/support ?
Now that I have two developers, and 2 designers working with me
Making some inroads.
The file type returned in the HTTP header for audio files is this:
text/plain; charset=utf-8
Accoding to this article, Firefox is actually the correct implementation
amongst the browsers for this, because it respects the file type indicated
by the server:
https://develope
> Hard to say.
>
> I don't know if this helps but here's how appadmin does it for a csv file:
>
> def csv():
> import gluon.contenttype
> response.headers['Content-Type'] = \
> gluon.contenttype.contenttype('.csv')
> db = get_database(request)
> query = get_query(request)
>
How do I get my company listed on
http://www.web2py.com/examples/default/support ?
Now that I have two developers, and 2 designers working with me on porting
a few applications over to web2py I think that I will be using the
framework strictly for new client development at
http://www.wadecybertech
Yes probably some system call hangs somewhere.
2012/1/29 Ricardo Pedroso :
> On Sun, Jan 29, 2012 at 4:27 PM, Massimo Di Pierro
> wrote:
>
>> I used to be able to stop the server with CRTL+C but it does not work
>> anymore on my mac. I now have to kill it. Why?
>
> I'm new to web2py, but I alrea
On Sun, Jan 29, 2012 at 4:27 PM, Massimo Di Pierro
wrote:
> I used to be able to stop the server with CRTL+C but it does not work
> anymore on my mac. I now have to kill it. Why?
I'm new to web2py, but I already see this happened
in other scripts when working with sockets and threads.
Probably
On Jan 29, 2012, at 10:44 AM, Ovidio Marinho wrote:
> Ctrl+C in Mac is Cmd+C
It is for copy, but not for quitting a process from the terminal. Control-C.
Massimo, are you sure web2py isn't running in the background when you do this?
If you hit return, do you get a shell prompt? Control-C won't
Ctrl+C in Mac is Cmd+C
Ovidio Marinho Falcao Neto
Web Developer
ovidio...@gmail.com
ovidiomari...@itjp.net.br
ITJP - itjp.net.br
83 8826 9088 - Oi
83 9334 0266 - Claro
Brasil
the same for me, I always have to kill - 9 PID.
But it only happens after some time.
http://zerp.ly/rochacbruno
Em 29/01/2012 14:27, "Massimo Di Pierro"
escreveu:
> I would like to post web2py 2.0 since we have no major pending issues.
> Yet there are two issues I would like to fix first:
>
> h
I would like to post web2py 2.0 since we have no major pending issues.
Yet there are two issues I would like to fix first:
http://code.google.com/p/web2py/issues/detail?id=627
I used to be able to stop the server with CRTL+C but it does not work
anymore on my mac. I now have to kill it. Why?
I c
If you want to actually remove the file you can try:
def remove_session(user):
session._unlock(response)
os.unlink(response.session_filename)
session.clear()
I am not 100% sure.
On Jan 29, 7:35 am, Bruno Rocha wrote:
> I want to clean session (remove / delete) the session file
auth.settings.logout_onlogout = lambda user: session.clear()
On Jan 29, 7:35 am, Bruno Rocha wrote:
> I want to clean session (remove / delete) the session file
>
> *auth.settings.logout_onlogout = lambda user: remove_session(user)*
>
> def remove_session(user):
>
>
> Does anybod
Please email me a patch. The files would go into contrib.
Thank you for this contribution. :-)
Massimo
On Jan 29, 6:53 am, whowhywhat wrote:
> just finished writing a motp (http://motp.sourceforge.net/)
> authentication plugin for web2py. Where do i contribute this code?
> I would appreciate if
It gives a different error using trunk:
Traceback (most recent call last):
File "C:\w2p\trunk\gluon\restricted.py", line 204, in restricted
exec ccode in environment
File "C:/w2p/trunk/applications/test/controllers/test.py", line 21,
in
File "C:\w2p\trunk\gluon\globals.py", line 172, i
I want to clean session (remove / delete) the session file
*auth.settings.logout_onlogout = lambda user: remove_session(user)*
def remove_session(user):
Does anybody implemented that kind of function?
I will wait for someone to share it before starting code my own...
--
B
nice tip. thanks for sharing!
On Jan 29, 1:51 pm, guruyaya wrote:
> I've made a mistake in my tip, please replace:
> db.comment._common_filter = inherit_common_filter(db, db.comment)
> with:
> db.comment._common_filter = inherit_common_filter(db,
> db.comment.post)
>
> Sorry for this one.
>
just finished writing a motp (http://motp.sourceforge.net/)
authentication plugin for web2py. Where do i contribute this code?
I would appreciate if some one tests this and gives me some feedback.
I have uploaded the code to Google code. project is
https://web2py-motp-auth.googlecode.com
you can s
while https can be used for everyone, u can force https just to one.
Em 28 de janeiro de 2012 12:51, António Ramos escreveu:
> Hello, if i have 20 apps in the same server of web2py and only one needs
> to be accessed with https what do i do?
>
>
> Thank you
>
> António
>
--
Atenciosamente
Thanks! web2py easy, as always.
On Jan 28, 11:24 am, Alan Etkin wrote:
> You can use javascript onclick and the web2py.js function
> web2py_component(action,target) to load the source on demand.
> You need to set a target div or other element in the view previously
> and get the triggered event's
Hi,
Personally I like "human quiz" anti-bot measures. Captcha can be
breaken easily.
e.g. you could build yourself a big list of questions and ask for the
answer before validating the comment form. Of course the answer should
not be a simple yes/no quiz.
questions like : "What color is not on th
Hello,
Just to let you know ISSUE SOLVED.
For an unknown reason sessions folder was not chown to www-data, so
simply :
chown -R www-data:www-data sessions
solved the issue.
I am not sure it's the way it should be but at least it works now.
Thanks,
Cheers,
On 29 jan, 09:41, Benjamin wrote:
I've made a mistake in my tip, please replace:
db.comment._common_filter = inherit_common_filter(db, db.comment)
with:
db.comment._common_filter = inherit_common_filter(db,
db.comment.post)
Sorry for this one.
On Jan 29, 10:46 am, guruyaya wrote:
> I wrote this function, to help out with a
I wrote this function, to help out with a project I'm working on, that
has an extensive use of the common filter functionality (describes in
chapter 6 of the web2py book).
Say you have a blog, containing active, and inactive posts:
db.define_table('post',
Field('subject'),
Field('post','text'),
Hello Massimo,
Unfortunately it doesn't solve it.
There is from time to time only 2 files in this cache folder :
cache.lock
cache.shelve
And deleting it doesn't change the behavior, i.e.: the web2py
"welcome" page is displayed correctly using an SSH tunnel but the
admin panel displays "Internal
62 matches
Mail list logo