I am trying to create a dropdown using SQLFORM.factory using
requires=IS_IN_DB(db,'field_val','represented_by') validator. I need
to create a dropdown containing selected rows only.
Is it possible to filter the resulting dropdown list that is returned
to i.e. the column record which only has the
Shouldn't /[app]/default/user/not_authorized raise a 403 error?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from th
It looks like it's line 792 in tools.py
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email
I'm not totally sure what you're trying to do, but I don't know why
you'd use "input:visible:enabled:first.focus()" to send the request.
I'd use
$(document).ready(function() {
$("form").submit(function() {
//Send request, etc. here
})
})
--~--~-~--~~~--
Ahh, on trying to DB-Admin the table auth_membership, I get this:
Traceback (most recent call last):
File "/media/apps/web2py/gluon/restricted.py", line 184, in
restricted
exec ccode in environment
File "/media/apps/web2py/applications/main/controllers/appadmin.py",
line 261, in
File "/
Hello everyone,
I've done a bunch of work recently with CouchDB on Ruby, and now there's an
interesting article on using Python with Redis at
http://simonwillison.net/2009/Oct/22/redis/
Is there any work being done to have web2py work with these, or other,
"NoSQL" databases? Right now, I really
New decimal tested OK with MS SQL.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to
web2
Came a across a job that involves web2py at
http://www.getafreelancer.com/projects/Python-Linux/Python-developer-web.html
"""
Description
I need a python developer who has very good knowledge in Python web2py
framework.
You must be strong in networking programming and also know the irc
protocol.
Lol, yes :)
-Thadeus
On Sun, Nov 15, 2009 at 3:59 PM, mr.freeze wrote:
>
> Do you mean this one?
> http://www.web2pyslices.com/main/slices/take_slice/32
>
>
> On Nov 15, 3:55 pm, Thadeus Burgess wrote:
> > By the way
> >
> > http://www.web2pyslices.com/main/slices/take_slice/30
> >
> > -Thad
Do you mean this one?
http://www.web2pyslices.com/main/slices/take_slice/32
On Nov 15, 3:55 pm, Thadeus Burgess wrote:
> By the way
>
> http://www.web2pyslices.com/main/slices/take_slice/30
>
> -Thadeus
>
> On Sun, Nov 15, 2009 at 3:51 PM, Thadeus Burgess wrote:
>
> > [SOLVED], this is the fina
By the way
http://www.web2pyslices.com/main/slices/take_slice/30
-Thadeus
On Sun, Nov 15, 2009 at 3:51 PM, Thadeus Burgess wrote:
> [SOLVED], this is the final model.
>
> I had to parse the content and replace the html entities.
>
> functions.py
> http://pastebin.com/f25d3c971
>
> usage
>
>
[SOLVED], this is the final model.
I had to parse the content and replace the html entities.
functions.py
http://pastebin.com/f25d3c971
usage
{{=XML(__highlight__(blog_post.content))}}
-Thadeus
On Sun, Nov 15, 2009 at 3:22 PM, Thadeus Burgess wrote:
> How would I convert html char codes i
How would I convert html char codes into their actual UTF-8 representation?
Because
def somefunc(avar="hi"): pass
gets turned into this by CKeditors.
def somefunc(avar='hi'): pass
-Thadeus
On Sun, Nov 15, 2009 at 3:14 PM, Thadeus Burgess wrote:
> Ok, the problem was using tags, CKEdit
Ok, the problem was using tags, CKEditor attempts to format them.
Switching to tags, CKEditor will not format them So
def __highlight__(content, dom_element='pre'):
from pygments import highlight
from pygments.lexers import get_lexer_by_name
from pygments.formatters import HtmlF
Thanks that got me on the right track!
This is what I ended up with, a view function that gets called on the blog
posts content. The only problem is CKEditor tries to format the code during
editing, so you end up with alot of leaked in, working on solving
that.
{{
def __highlight__(content):
hi Thadeus,
hope it helps: http://github.com/mengu/blog/blob/master/models/post.py#L39
On Nov 15, 8:48 am, Thadeus Burgess wrote:
> I have a html content (for a blog) and would like to parse the content for
> tags, and of course replace the content with web2py syntax
> highlighting using CODE
Can you show us db.py?
I think you miss
db=DAL('sqlite://storage.sqlite')
at the top of the file.
On Nov 15, 12:30 pm, blye wrote:
> I keep getting this error in the apps I enter to learn web2py.
> eg the Wiki app in the users group pages.
>
> "D:\\web2py\\applications\\wiki/models/db.py", li
No because we have not completely clarified the specs.
On Nov 15, 12:55 pm, leone wrote:
> There is a developer-manual to build plugins?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post
Do you have the following line in db.py at the top?
db = DAL('sqlite://storage.sqlite')
-Thadeus
On Sun, Nov 15, 2009 at 12:30 PM, blye wrote:
>
> I keep getting this error in the apps I enter to learn web2py.
> eg the Wiki app in the users group pages.
>
> "D:\\web2py\\applications\\wiki/
Not yet, just a video on vimeo.
-Thadeus
On Sun, Nov 15, 2009 at 12:55 PM, leone wrote:
>
> There is a developer-manual to build plugins?
> >
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" gro
There is a developer-manual to build plugins?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send ema
It is because you have a table inside of a table
Try removing border, padding, and margins from class st_table.
-Thadeus
On Sun, Nov 15, 2009 at 1:44 AM, mdipierro wrote:
>
> I am building this plugin:
>
> https://www.web2py.com/plugins/plugin_query
>
> It is only 50% done and it is not yet
I keep getting this error in the apps I enter to learn web2py.
eg the Wiki app in the users group pages.
"D:\\web2py\\applications\\wiki/models/db.py", line 4, in
\nNameError:
name \'db\' is not defined\n' p8 s.
What am I doing wrong?
Thanks
--~--~-~--~~~---~--~
Bingo! You found that reason which costs me hours of time. T_T
Thanks!
On Nov15, 11:22pm, mdipierro wrote:
> because the file stream has already been read by accept and the you
> are pointing at the bottom of the file. Try
>
> request.vars.backup.file.seek(0)
> request.form.vars.backup.file.rea
because the file stream has already been read by accept and the you
are pointing at the bottom of the file. Try
request.vars.backup.file.seek(0)
request.form.vars.backup.file.read()
if it does not work, then the file stream can only be read
sequentially and you need to re-open the file and read
thanks. will do.
On Nov 15, 4:17 am, Iceberg wrote:
> I noticed the MENU() helper uses a "web2py-menu-active" status, but
> there is no corresponding definition in static/base.css
>
> Suggest to add this into the default base.css:
> .web2py-menu-active a {background-color: white;}
>
> So that
perhaps a __copy__?
thanks for you help on this.
On Nov 15, 3:34 am, "Xie&Tian" wrote:
> It's nothing wrong with using copy module of standard python, I just
> find it more convenient with a .copy() method. And plus, since Storage
> inherits dict, developer can call .copy() and expect a Storage
Hi folks,
How to read an uploaded file object line by line? This seemingly easy
task stumps me. Now I am totally lost. :-/
def restore():
form = SQLFORM.factory(Field
('backup','upload',requires=IS_UPLOAD_FILENAME()))
if form.accepts(request.vars,keepvalues=True,session=None):
#
I noticed the MENU() helper uses a "web2py-menu-active" status, but
there is no corresponding definition in static/base.css
Suggest to add this into the default base.css:
.web2py-menu-active a {background-color: white;}
So that the active menu item will be shown in white background color.
Wan
It's nothing wrong with using copy module of standard python, I just
find it more convenient with a .copy() method. And plus, since Storage
inherits dict, developer can call .copy() and expect a Storage object
returned. Currently it returns dict and that breaks the coherence of
the behaviour of St
On Sun, Nov 15, 2009 at 15:33, mdipierro wrote:
>
> http://www.reddit.com/r/Python/comments/a4hvk/know_sqlalchemy_already_and_want_to_learn_w2p_we/
>
perfect!
we'r thinking usage SqlAlchemy in w2p,
but base this: http://web2py.com/examples/static/sqla2.html
flowing w2p is easy and stable and cle
I like idea but there is a problem. It break backward compatibility
for apps that use a session variable named 'copy'
>>> class A(dict):
... def __getattr__(self,key): return self[key]
... def __setattr__(self,key,value): self[key]=value
... def copy(self): return self
>>> a=A()
>>> a
32 matches
Mail list logo