I looked at it. that app is really really old and uses its own
(broken) authentication mechanism.
I looked at it and think I fixed it.
http://web2py.com/appliances/default/show/34
Give it a try and report any problem.
Massimo
On Jul 23, 5:15 pm, Stef Mientki wrote:
> hello,
>
> I just sta
For the record I just changed the auth method and layout. I did
not look at the actual chatting code. It uses a lot of joins which
makes it slow (for lots of chats) and is un-necessary. As written it
does not work on GAE. It also does not use the full power of jQuery.
It should be possible to s
Thadeus,
This was a security fix. We had a a security review and this was
determined to be a weakness. The code by Mike Ellis broke not because
of the fix but because it incorrectly implicitly assumed that the
strings were HTML/XML and therefore needed escaping when, in reality,
they were JS stri
- compute, virtualfields, represent and all such things that are are
db.table.field level
- a chapter on reusable logic (where to place it - module, model,
controller, site-packages in which scenario)
- templates, blocks, {{include}} in views
- custom forms, including sign up forms (lots of questi
{{blocks}} were put in the web2py as an experiment and we took them
out because of a problem. We need to put them back in.
Massimo
On Jul 24, 3:44 am, Adi wrote:
> - compute, virtualfields, represent and all such things that are are
> db.table.field level
> - a chapter on reusable logic (where t
What you want to do is exactly Jquery Ajax -
$(#table2).load(Path_To_your_Data) , or Try using JQGrid , (There is JqGrid
Plugin too).
What i am doing Right now is 3 Tables , with One table having 16000 Rows ,
which are Directory list , computed in server side (Archive recursive
Extraction , Direct
I could happily live with a solution that adds a 'no escape' operator to the
template language, e.g.
{{:=never_escaped}}
vs
{{=always_escaped}}
1. Backward compatible,
2. Safe by default,
3. Allows designer to decide what's safe and what isn't,
4. Seems like an easier fix than trying to ma
This
{{:=never_escaped}}
would be the same as
{{=XML(ever_escaped)}}
so why introduce new syntax?
On Jul 24, 7:14 am, Michael Ellis wrote:
> I could happily live with a solution that adds a 'no escape' operator to the
> template language, e.g.
>
> {{:=never_escaped}}
>
> vs
>
> {{=always_esca
Massimo, I'm not following you. I tried using XML (see earlier post) and it
had no effect. Does it only work if applied immediately before the =
operator?
Also, I think ":=" or something similar is much cleaner than wrapping
everything in a function call.
Cheers,
Mike
On Sat, Jul 24, 2010 at
I am confused:
Does this now work?
{{
schartoptions = """{
type: 'bar',
barColor: 'green',
chartRangeMin: '%d',
chartRangeMax: '%d'
}
"""%(chartmin,chartmax)
}}
and later on I use the variables within a script tag, e.g.
/*
Please allow me to preface my comments: I have nothing against Rocket;
my opinions come from years of experience with Java EE deployments.
I think raising the max_threads to 1024 is a good idea. However, my
opinion is that Rocket alone should not be used for a production
deployment; much as I wou
Personally, I think this is a great idea particularly when designing
Intranet sites. This makes it very easy to implement your company's
look and feel without having to go through a lot of hoops. I say put
in a warning or caveat that must be accepted when using the script to
absolve web2py of lia
My bad. It does work. In my earlier attempt to use it I forgot that a for
loop variable isn't an object reference when looping over a list of strings.
So the value of schartoptions wasn't being altered at all, just the loop
variable.
I'm still in favor of an alternate operator, though. As it i
Yes , Since from start of web2py , Massimo and Us never recommend to use
built-in web2py server at production. They are mainly for development
purpose.
Since Very start of the project , since Cherrypy , Massimo always Suggest to
use Apache/Cherokee/LighHTTPD over fcgi/wsgi/uwsgi or mod_python in Se
Intranet Is ok. And if you remove all the graphics , replace with your own
stuff , should be fine.
On Sat, Jul 24, 2010 at 7:44 PM, Scott wrote:
> Personally, I think this is a great idea particularly when designing
> Intranet sites. This makes it very easy to implement your company's
> look an
I am also doing more and more in JS for views. Even search engine for
tables, i am using JQGrid's local search (at latest version if JQGrid).It
dont need server side at all for search to work, which make it a lot faster
+ lesser hit on server performance.
On Sat, Jul 24, 2010 at 7:53 PM, Michael E
I posted yet another rewrite. The previous one did not use jQuery and
did not update the list of members in real time.
On Jul 24, 2:53 am, mdipierro wrote:
> For the record I just changed the auth method and layout. I did
> not look at the actual chatting code. It uses a lot of joins which
>
thanks Massimo,
now it works like a charm (despite it seems to be old code).
I wonder, how should I (as a Newbie) know that it's "old code" ?
Wouldn't it be a good suggestions to put a "last modified date" for each
appliance, or better on
every page ?
I don't understand why the whole internet
Everything works fine on non-GAE env but the following exceptions
occur otherwise:
TypeError: __or__() takes exactly 1 argument (2 given)
# because of:
user_to_query = (db.auth_user.username==form.vars.username_email) | \
(db.auth_user.email==form.vars.username_email)
TypeError: long() argument
They have a posted_on and modified_on date. If the date is older than
1y it means they do not use Auth and they are obsolete.
On Jul 24, 8:56 am, Stef Mientki wrote:
> thanks Massimo,
>
> now it works like a charm (despite it seems to be old code).
>
> I wonder, how should I (as a Newbie) know t
GAE does not allow OR (|) involving two different fields.
On Jul 24, 9:04 am, Vidul Petrov wrote:
> Everything works fine on non-GAE env but the following exceptions
> occur otherwise:
>
> TypeError: __or__() takes exactly 1 argument (2 given)
> # because of:
> user_to_query = (db.auth_user.usern
Thank you, Massimo.
On Jul 24, 5:11 pm, mdipierro wrote:
> GAE does not allow OR (|) involving two different fields.
>
> On Jul 24, 9:04 am, Vidul Petrov wrote:
>
>
>
> > Everything works fine on non-GAE env but the following exceptions
> > occur otherwise:
>
> > TypeError: __or__() takes exactl
Thnaks for the reply, but I think I was not clear. I se form you
example how to dynamically point to a seperate DB. But regarding the
url, users can create communities on the fly and henei I would like to
avoid having to register each one with DNS. The main use behined a
seperate URL is to make
@Iceberg- Thanks for all the input- I'll review your latest and update the
code later this weekend. With respect to log file location though, don't
think it makes sense to put it in static since it's a file that will be
written to (i.e. non static). It may need its own location, a var/ or
log/...
On 24-07-2010 16:10, mdipierro wrote:
> They have a posted_on and modified_on date. If the date is older than
> 1y it means they do not use Auth and they are obsolete.
sorry I missed those dates completely, GREAT !!
cheers,
Stef
> On Jul 24, 8:56 am, Stef Mientki wrote:
>> thanks Massimo,
>>
>>
Sorry I disagree. No need to take "static" literally. In web2py,
"static" just means the content inside such directory will be served
directly by web2py core, unlike other "dynamic" content served by
app's controller. So it is nothing wrong to serve log file inside
"static", no to mention the bypro
Hello,
I am trying to install web2py with apache & mysql.
I checked all the scenarios with the "global name 'MySQLdb' is not
defined" subject, but they didn't solve my problem.
I am using:
CentOS 5.5
httpd-2.2.3
mysql 5.0.77
Python26
MySQL-python-1.2.3c1
web2py Version 1.81.5
Default CentOS 5 p
As a test, can you try add
import MySQLdb
at the top of web2py.py and run
python2.6 web2py.py
Massimo
On Jul 24, 10:46 am, oktay wrote:
> Hello,
>
> I am trying to install web2py with apache & mysql.
> I checked all the scenarios with the "global name 'MySQLdb' is not
> defined" subjec
I think the place for this stuff is "private". From a security point
of view log files should not by default be exposed to the public.
On Jul 24, 10:49 am, Iceberg wrote:
> Sorry I disagree. No need to take "static" literally. In web2py,
> "static" just means the content inside such directory wi
Some domain register supports "wild chars" in your domain name, so all
requests to "*.yourdomain.com" can reach your site.
If you prefer the other style, try web2py/route.py
On Jul 24, 10:59pm, "david.waldrop" wrote:
> Thnaks for the reply, but I think I was not clear. I se form you
> example h
Yes, it works with "import MySQLdb" at the top of web2py.py:
web2py Enterprise Web Framework
Created by Massimo Di Pierro, Copyright 2007-2010
Version 1.81.5 (2010-07-22 23:56:21)
Database drivers available: MySQL
Starting hardcron...
WARNING:root:GUI not available because Tk library is not instal
That way the developer need to implement a dedicate action, perhaps
protected by authentication, to access log on WEB. It is reasonable
for public site, but an overkill for small enterprise intranet app.
But there is no need to argue on this, man. We can have both. If Yarin
gonna implement a modul
Perhaps WSGI is configured to use python 2.4 and the libraries are not
linked correctly.
--
Thadeus
On Sat, Jul 24, 2010 at 10:58 AM, oktay wrote:
> Yes, it works with "import MySQLdb" at the top of web2py.py:
>
> web2py Enterprise Web Framework
> Created by Massimo Di Pierro, Copyright 20
So it works when you do
python2.6 web2y.py
but not when you use apache. is that correct?
On Jul 24, 10:58 am, oktay wrote:
> Yes, it works with "import MySQLdb" at the top of web2py.py:
>
> web2py Enterprise Web Framework
> Created by Massimo Di Pierro, Copyright 2007-2010
> Version 1.81.5 (201
Yes, correct.
web2y.py (including "import MySQLdb") works both with python2.4 and
python2.6.
and not working with apache.
Also I make my wsgi configuration as described in
http://web2py.com/book/default/section/11/2
On 24 Temmuz, 19:32, mdipierro wrote:
> So it works when you do
>
> python2.6 w
I'm trying to figure out how to have a separate app(same instance) use
the same auth_user table I customized in a separate app. I've seen
some vague instructions but none of them make sense. Can anyone point
me to anything better?
Hello again,
I installed PostgreSQL and psycopg2.
both in the command line for python24 and python26 can import
psycopg2.
But when I run from apache
"global name 'psycopg2' is not defined"
error appears.
Same problem with mysql driver.
apache/python can not find the python db drivers.
Is it rel
Something good has come out of this: while looking for a workaround I
learned about simplejson.dumps(). So now I've defined my own little helper
JD()
import simplejson
def JD(obj):
return XML(simplejson.dumps(obj,indent=4))
In my view (or controller) I can lump into one variable everything I
I was attempting to completely separate my auth db from my data db and
realized this isn't currently possible but potentially could be:
db = DAL('...')
authdb = DAL('...')
auth = Auth(globals(), authdb)
db.define_table('poll',Field('author',auth.settings.table_user))
Two questions:
Is this a craz
Hi Ionel,
If by *always* you mean that it was down for one day yes it was.
Somehow my startup script was "accidentally" converted to DOS format,
I did not notice that my script's shebang had a ^M after the #!/bin/
sh^M in it so it was stuck on a loop trying to restart the service
every 5 minutes,
Massimo wrote in another thread:
"
The jqGrid widget has a button in bottom-left corner that opens a
popup search box. It is less user-friendly than datatable but allows
more precise construction of search criteria and works via ajax, i.e.
with arbitrary large amount of data.
"
I have played with
I´m running web2py on CentOS 5.something. If needed I could send you
my Apache configuration files and others.
Kenneth
On Jul 24, 8:47 pm, oktay wrote:
> Hello again,
>
> I installed PostgreSQL and psycopg2.
> both in the command line for python24 and python26 can import
> psycopg2.
>
> But whe
I will be very glad if you can...
Thank you.
On 24 Temmuz, 22:51, Kenneth wrote:
> I´m running web2py on CentOS 5.something. If needed I could send you
> my Apache configuration files and others.
>
> Kenneth
>
> On Jul 24, 8:47 pm, oktay wrote:
>
> > Hello again,
>
> > I installed PostgreSQL and
As I couldn't wait, I made a small program that does the job.
If more people are interested, I can try to make it available.
You can see the idea here:
http://mientki.ruhosting.nl/web2py/web2py_viewer.html
cheers,
Stef
> btw, is there somekind of filebrowser / viewer, I feel very uncomfortable
Enough information for total javascript beginners to understand and
use jqgrid and friends please.
Johann
--
"Finally, brethren, whatsoever things are true, whatsoever things are
honest, whatsoever things are just, whatsoever things are pure,
whatsoever things are lovely, whatsoever things are
I just upgraded to 1.81.5 because I'm hoping the ajax checkbox upgrade
is in there. Here's my scenario:
# view
DIV(_id='test')
INPUT(_name='box1',_type='checkbox',_value=False,
_onclick="ajax('test',['box1'],':eval');",
_id='box1'
)
#controller
def test():
return 'jQuery("#test").html("%s
+1 all above suggestions. I would also suggest some more doc on the
ajax interface to radio buttons, check boxes, and select lists.
On Jul 23, 5:53 pm, mdipierro wrote:
> I am revising the book.
>
> Please list what features are not mentioned in the book or deserve
> more space they correctly get
Doc index needs expansion. When I was a little more of a newbie, I
know I looked in the index for keywords that I was sure should be
there, only to find them missing. At the moment, I don't recall what
they were, sorry. At the least, every web2py function and attribute
should be listed in the index
hi , the plugin works correctly but to my opinion has lesss facilities
than datatables plugin for example . Its search function works , but
is less friendly , i cannot pass labels to the columns( allthought
somebody proposed a solution:
http://groups.google.com/group/web2py/browse_frm/thread/83e4
I like the potential flexibility but am not sure what the purpose
would be for having a separate auth db? What if you then had multiple
auth dbs? Wouldn't you need to decorate controllers with the name of
the auth db to search in? Wouldn't there be a performance penalty for
opening up links to mult
The main purpose is to easily allow many apps to share an established
auth db. You wouldn't need to decorate controllers any differently
because the DAL instance is passed to the constructor of Auth, not to
the decorator. If anything, I would suspect a performance gain as you
would be splitting th
Seems like there is no jqeury function to do it. Any other ways to
approach the problem?
Sounds reasonable to me.
I have a list, x, with allowed values for field table.x. Is there a
succinct way to do something like this?
db(db.table.x in x).select()
On 24 jul, 19:01, weheh wrote:
> I have a list, x, with allowed values for field table.x. Is there a
> succinct way to do something like this?
>
> db(db.table.x in x).select()
Hi,
You must use the operator Belongs. Please see here [1]
Regards
Jose
[1] http://www.web2py.com/book/default/secti
Thanks Jose, I just figured it out.
Should we have a JSON helper (same as you JD)?
On Jul 24, 1:15 pm, Michael Ellis wrote:
> Something good has come out of this: while looking for a workaround I
> learned about simplejson.dumps(). So now I've defined my own little helper
> JD()
>
> import simplejson
> def JD(obj):
> return XM
Nice, is it based on Tkinter?
On Jul 24, 3:01 pm, Stef Mientki wrote:
> As I couldn't wait, I made a small program that does the job.
> If more people are interested, I can try to make it available.
> You can see the idea
> here:http://mientki.ruhosting.nl/web2py/web2py_viewer.html
>
> cheers,
Please try remove _value=False ?
On Jul 24, 3:22 pm, weheh wrote:
> I just upgraded to 1.81.5 because I'm hoping the ajax checkbox upgrade
> is in there. Here's my scenario:
>
> # view
> DIV(_id='test')
> INPUT(_name='box1',_type='checkbox',_value=False,
> _onclick="ajax('test',['box1'],':eval
Working on this as we speak.
On Jul 24, 3:37 pm, weheh wrote:
> Doc index needs expansion. When I was a little more of a newbie, I
> know I looked in the index for keywords that I was sure should be
> there, only to find them missing. At the moment, I don't recall what
> they were, sorry. At the
The DAL(...) function has a path attribute and you can make it point
to the folder of another app.
On Jul 24, 3:56 pm, "mr.freeze" wrote:
> The main purpose is to easily allow many apps to share an established
> auth db. You wouldn't need to decorate controllers any differently
> because the DAL
Caveat... if two apps point to the same db make sure only one of them
has migrate=True and all the others have migrate=False for all table
or things result in a mess.
On Jul 24, 6:59 pm, mdipierro wrote:
> The DAL(...) function has a path attribute and you can make it point
> to the folder of ano
I think it's good to review the section 3.9 that discusses the wiki
and add documentation of new features found in the plugin wiki.
More on the DAL objects would be nice, especially on the details of their
methods. Which operations they support, how they're combined, etc. There's
something there already, but it could use fleshing out.
How difficult would it be to patch the DAL to make this work?
On Jul 24, 7:00 pm, mdipierro wrote:
> Caveat... if two apps point to the same db make sure only one of them
> has migrate=True and all the others have migrate=False for all table
> or things result in a mess.
>
> On Jul 24, 6:59 pm, m
Taking a second look. This is really cool and I see there is more than
the interface. How difficult would it be to implement this with a web
front-end using elFinder?
If it is open source, can you send me the source code?
Massimo
On Jul 24, 3:01 pm, Stef Mientki wrote:
> As I couldn't wait, I
Not sure what you mean. This works already.
On Jul 24, 7:03 pm, "mr.freeze" wrote:
> How difficult would it be to patch the DAL to make this work?
>
> On Jul 24, 7:00 pm, mdipierro wrote:
>
> > Caveat... if two apps point to the same db make sure only one of them
> > has migrate=True and all the
Negative ghostrider. You can't currently add a field that references a
field in another database. It throws an error:
db = DAL('...')
authdb = DAL('...')
auth = Auth(globals(), authdb)
db.define_table('poll',Field('author',auth.settings.table_user))
Traceback (most recent call last):
File "C:\U
This makes easier to steal the work of others ... what a great tool?
no?
i didn't agree,
what's the point?
"hey I learnt to make a super great weapon to kill all the people at
world" Should I build it?
hummm, but wait, under certain conditions it is illegal to kill
people. please use it only when
I have identified the following items that are missing from the book.
Listed here in some random order.
compute fields
virtual fields
crud.search
RPXAccount
new validators
populate
plugins
LOAD and generic.load
Field attributes (compute, virtualfield, uploadseparate)
format, represent
recursive qu
You have to do
db.define_table('poll',Field('author','integer',requires=IS_IN_DB(dbauth,'auth_user.id','%
(first_name)s %(last_name)s'))
Any implementation would do this under the hood so it is better to be
transparent and explicit. One database cannot enfore a reference to a
table in another dat
You are absolutely right. I removed it.
Massimo
On Jul 24, 7:22 pm, Pepe wrote:
> This makes easier to steal the work of others ... what a great tool?
> no?
>
> i didn't agree,
> what's the point?
>
> "hey I learnt to make a super great weapon to kill all the people at
> world" Should I build it
I would like more detailed information about testing, unittest,
docTest. explaining how it works in detail, and showing a good example
of a test using the 'test' in appadmin
2010/7/24 mdipierro :
> I have identified the following items that are missing from the book.
> Listed here in some random o
http://code.google.com/p/web2py-book/wiki/BookGeneralIssues
Thanks. this is very helpful
On Jul 24, 7:57 pm, Jonathan Lundell wrote:
> http://code.google.com/p/web2py-book/wiki/BookGeneralIssues
What is the admin group name? That is, the group to create where you
can add users who can edit existing pages. Thanks!
On Jul 12, 11:47 am, mdipierro wrote:
> I posted 1.80.1 stable. If you just download that you can install the
> latest cube2py from here using web2py admin
>
> http://www.web2
I don't know enough about the problem to say if I would support or
oppose this change.
I also agree that a template symbol is easier than having to wrap the
entirety around a function.
--
Thadeus
On Sat, Jul 24, 2010 at 3:02 AM, mdipierro wrote:
> ad a review board, would you have opp
I think the JSON helper function should be implemented. This logic
should be contained within the controller and not within the view as I
would deem it business logic and not rendering logic.
On Jul 24, 7:52 pm, mdipierro wrote:
> Should we have a JSON helper (same as you JD)?
>
> On Jul 24, 1:1
Cube2py explanation along with examples for all of the widgets and how
to implement. Since we're headed in that direction... :)
On Jul 24, 9:08 pm, mdipierro wrote:
> Thanks. this is very helpful
>
> On Jul 24, 7:57 pm, Jonathan Lundell wrote:
>
> >http://code.google.com/p/web2py-book/wiki/Book
The admin group is 'editor'
but you can change that login in plugin_wiki.py model
I had to change it to run fine on GAE.
2010/7/24 Scott :
> What is the admin group name? That is, the group to create where you
> can add users who can edit existing pages. Thanks!
>
> On Jul 12, 11:47 am, mdipie
Thanks!
On Jul 24, 9:22 pm, Bruno Rocha wrote:
> The admin group is 'editor'
>
> but you can change that login in plugin_wiki.py model
>
> I had to change it to run fine on GAE.
>
> 2010/7/24 Scott :
>
>
>
> > What is the admin group name? That is, the group to create where you
> > can add users
I'm of two minds on this. It's a one-liner to implement as I've done it,
but my implementation hides the rich argument set available in
simplejson.dumps():
dumps(obj, skipkeys=False, ensure_ascii=True, check_circular=True,
allow_nan=True, cls=None, indent=None, separators=None, encoding='utf-8',
So far, SUDS is working okay. I think I'll stay with it unless I
really have problems with it.
Thanks all!
For new users like me, downloadable packed applications would be great
with each examples in the book. A few times, the examples were not
showing correctly online and the cut&paste on IE browser is not
providing the line feed and carriage return showing online.
Although, the packed applications d
84 matches
Mail list logo