Re: [web2py] Re: Requesting Feedback for Web2py Instant Admin

2011-08-01 Thread Ramana
Hi,

I just reset the password and verified that the login is working. Can you
please try now?

On Tue, Aug 2, 2011 at 12:12 AM, Francisco Costa wrote:

> Looks very good, but I can't login with superuser credentials
> (usearname = a, password = a)
> I get this message: "We're sorry. Please enter a password with at
> least six characters."
>
> On Aug 1, 2:16 pm, Anthony  wrote:
> > Looks very promising, but I cannot log into the demo (I've tried all the
> > provided demo logins, but they all result in "Invalid login").
> >
> >
> >
> >
> >
> >
> >
> > On Monday, August 1, 2011 2:09:23 AM UTC-4, Ramana wrote:
> > > Dear Web2py users,
> >
> > > I just launched the beta version of Web2py Instant Admin<
> http://sramana.in/web2py-instant-admin>,
> > > a (supposedly) django-like admin interface for Web2py applications. The
> > > demo  is here, documentation is here<
> http://readthedocs.org/docs/web2py-instant-admin> and
> > > source code is here .
> > > Since this is my first Web2py project, I don't know how good/bad the
> quality
> > > is. Your feedback will be very valuable for me. Thanks for your time.
> >
> > > Thanks & Regards,
> > > Ramana.
>


Re: [web2py] Re: Requesting Feedback for Web2py Instant Admin

2011-08-01 Thread Ramana
Hi Chris,

The requirements are not necessary to use the plugin. They are only for
developers for automating the dev/deploy/testing.

Regarding path, it's my mistake. It should have been "path.py". It is at
http://pypi.python.org/pypi/path.py. I fixed it now.

On Tue, Aug 2, 2011 at 7:02 AM, Christopher Steel wrote:

> Ramana,
>
> Gorgeous plugin, I think we should make it part of the Web2py Welcome app
> as well. It is a great example of a plugin and if fills an important need
> for site administration.
>
> I was able to find urls for all the requirements with the exception of path
> which obviously brings up a lot of unrelated google listings : )
>
> Here are urls for the requirements I found,  are they correct?
>
> web2py
> http://www.web2py.com/examples/static/web2py_src.zip
>
> web2py-utils
> http://packages.python.org/web2py_utils/
>
> WebTest
> http://webtest.canoo.com/webtest/manual/WebTestHome.html
>
> nose
> http://readthedocs.org/docs/nose/en/latest/
>
> path
> ???
>
> Thanks for the awesome plugin!!!
>
> Chris
>


Re: [web2py] Re: Requesting Feedback for Web2py Instant Admin

2011-08-01 Thread Ramana
Dear all,

I am overwhelmed by your positive response and kind words. Thank you very
much.

I just want to clarify that the HTML theme is not my own. I copied it
from Rails
Admin , which in turn is based on Activo
Theme , both are MIT licensed.

Regarding including this plugin in welcome app, I feel that it is still too
early. There are no test cases. Widgets for Date Time fields, multi-select
fields and many-to-many associations are still not there. But I am working
on them. I released the plugin even before it is perfect/stable because I
wanted some feedback from you. Now I can work more confidently and
enthusiastically, thanks to your feedback.

Thanks & Regards,
Ramana.

On Mon, Aug 1, 2011 at 2:21 PM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:

> A proposal
>
> 1) we change
>
> auth.requires_permission() with auth.requires(is_admin or
> has_permission(...))
>
> 2) we move  everything that is not under */plugin_instant_admin under
> plugins/plugin_instant_admin
>
> 3) we rename instant_admin into iadmin
>
> 4) we include it into welcome app
>
> 5) we expose iadmin and old appadmin, default to iadmin, allow
> administrator to switch back to old appadmin (using session to keep
> state)?
>
> I would take a patch in this direction but I would like to hear more
> opinions.
> It would be great if the the edit for and the pagination table where
> to expose as components to be embedded in regular pages.
>
> Massimo
>
> On Aug 1, 1:09 am, Ramana  wrote:
> > Dear Web2py users,
> >
> > I just launched the beta version of Web2py Instant
> > Admin,
> > a (supposedly) django-like admin interface for Web2py applications.
> > The demois here, documentation is
> > here  and source code
> is
> > here . Since this is my
> > first Web2py project, I don't know how good/bad the quality is. Your
> > feedback will be very valuable for me. Thanks for your time.
> >
> > Thanks & Regards,
> > Ramana.
>


[web2py] Re: upgrading from 1.95.1 to 1.96.1 breaks cross app authentication

2011-08-01 Thread zeng
Hi Massimo,

Further tracing lead to some additional information:

 AppA/models/db.py 
from gluon.shell import exec_environment
common_db = exec_environment('applications/appauth/models/db.py',
request=request, response=response)
db = common_db.db # <-- yes, point to the db file in AppAuth
session.connect(request, response, db, masterapp='appauth')
auth = Auth(globals(), db)
auth.define_tables(migrate=False, username=True)
auth.settings.login_url = '/appauth/default/user/login'
---

What's interesting is the exec_enviroment(), which i use to load the
db value from AppAuth in AppA, if exec_environment() is called it will
"reset" the session to empty, if I do not use exec_enviroment() cross
app login will work in both 1.95.1 and 1.96.1, if I do, it will only
work in 1.95.1

Ok, and the next question I may sound like a retard, where to submit
the ticket?


best,
Zeng


On Aug 1, 11:28 am, Massimo Di Pierro 
wrote:
> Please open a ticket about this.
>
> On Jul 22, 2:25 am, Heng Zeng Aun  wrote:
>
>
>
>
>
>
>
> > Good day Massimo,
>
> > the following are the snippets:
>
> >  AppAuth/models/db.py 
> > db = DAL('sqlite://storage.sqlite')
> > session.connect(request, response, db)
> > auth = Auth(globals(), db)
> > crud = Crud(globals(), db)
> > auth.settings.hmac_key = 'sha512:'
> > auth.define_tables(username=True)
> > crud.settings.auth = auth
>
> >  AppA/models/db.py 
> > db = DAL('sqlite://../../appauth/storage.sqlite') # <-- yes, point to the db
> > file in AppAuth
> > session.connect(request, response, db, masterapp='appauth')
> > auth = Auth(globals(), db)
> > auth.define_tables(migrate=False, username=True)
> > auth.settings.login_url = '/appauth/default/user/login'
>
> >  AppA/controllers/default.py 
> > @auth.requires_login()
> > def index():
> >     response.view='index.html'
> >     return dict()
>
> > @auth.requires_permission('sayhello')
> > def hello():
> >     response.view='saysomething.html'
> >     return dict(message=T("hello"))
>
> > The behavior of this in 1.96.1 (and 1.97.1) is that I will be able to login
> > and view the page provided in AppAuth, but when browse to AppA or AppB, it
> > will not be able to access it because auth says its not loggin. However all
> > this works in 1.95.1
>
> > If i go into web2py.gluon.tools.Auth and hack "current" to "current =
> > Storage(globals())" like it used to be in 1.95.1, and things works again.
>
> > I'm sure forcing "current" from threading.local() to something else
> > definitely is not the correct way of doing this (as i dont know what is the
> > intention of the "current" is using for as well : ).
>
> > Awaits your input, Many Thanks Massimo.
>
> > best,
> > Zeng
>
> > On Thu, Jul 21, 2011 at 8:44 PM, Massimo Di Pierro <
>
> > massimo.dipie...@gmail.com> wrote:
> > > This change should not break it. Can you please show us the code that
> > > breaks and we will check what is going on? It is possible that one of
> > > the auth modules has not been patched correctly.
>
> > > Massimo
>
> > > On Jul 21, 11:02 am, zeng  wrote:
> > > > Hey guys,
>
> > > > I'm currently running version 1.95.1 and have 3 application,
> > > > "AppAuth", "AppA", "AppB", AppA and AppB is using "AppAuth" to
> > > > authenticate logged in user and it has been working great.
>
> > > > After upgrading 1.96.1 and cross app authentication no longer works,
> > > > some debuging lead to:
> > > > - web2py.gluon.tools.Auth 
> > > > self.environment = current
> > > > request = current.request
> > > > session = current.session
> > > > - web2py.gluon.tools.Auth 
>
> > > > and "current" is a threading.local() in gluon.globals.py !!!
>
> > > > In the good'o 1.95.1 the session and auth object is retrieved from
> > > > global() ,
>
> > > > Question is, why is this changed? this seems to break the backward
> > > > compatibility "feature" of web2py, and what are the recommended
> > > > solutions now that global() is no longer used?
>
> > > > Thanks!


[web2py] CMS+blog+shop for web2py

2011-08-01 Thread Gour-Gadadhara Dasa
Hello!

I'd like to replace few of my PHP sites sites with Python technology in order
to be able to tweak them according to our needs and we prefer Python for PHP.

Basically, my needs are to have decent CMS+blog+shop which can be tweaked
easily and, so far, I was looking at Django along with two possibilities:

1) Django-CMS + Zinnia blog engine + django-shop and

2) Mezzanine + Cartridge shop.

Both have enough features for our needs and we hope they're extensible enough
so that we can plumb some other django apps, customize the combo and we'd have
to write custom payment (form-based) module for one of the above shops.

Now, I've heard some nice stories about Web2Py and wonder if it fits in the
same league of frameworks as Django and if there are some CMS+blog+shop apps
written for it which are ready to use and tweak instead of writing everything
from the scratch?

Or is it better to use Django considering there are more ready/mature apps
available?

I'm ready to learn the framework, but I simply do not have time to develop &
maintain all the required components, but prefer using available ('reusable')
apps and combine 'em to get final sites (we need few of them).



Sincerely,
Gour

-- 
“In the material world, conceptions of good and bad are
all mental speculations…” (Sri Caitanya Mahaprabhu)

http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810




signature.asc
Description: PGP signature


[web2py] Re: web2py for freelance work

2011-08-01 Thread Anthony
On Sunday, July 31, 2011 8:21:09 AM UTC-4, spiffytech wrote: 
>
> What's the complexity of site you guys normally build with web2py? Is 
> it mostly CRUD stuff, or anything more complicated? Has anyone built a 
> CMS in web2py?

 
Check out http://web2py.com/poweredby, though keep in mind that many 
developers use web2py to build applications that are internal to 
organizations and therefore not publicly available to put on this list.
 
As for CMS, there's Instant Press (http://code.google.com/p/instant-press/), 
which has now been incorporated into Powerpack 2.0 (
http://powerpack.tecnodoc.com.ar/powerpack/default/index). There's also 
plugin_wiki (http://web2py.com/book/default/chapter/13#plugin_wiki).
 
Anthony
 


Re: [web2py] Re: web2py for freelance work

2011-08-01 Thread Bruno Rocha
I frequently use some plugins that I created, and I also created a micro-CMS
calles "SimplrCMS" which is very based in radiant cms. But I do not finish
it for release yet.


[web2py] Re: web2py for freelance work

2011-08-01 Thread howesc
all of my sites have some form of content management.  they all are 
specialized enough that i would not call any of them a general CMS.  I 
actually don't really use CRUD itself too much, i have lots of custom forms.

cfh


[web2py] Re: Requesting Feedback for Web2py Instant Admin

2011-08-01 Thread Christopher Steel
minor bug or one time glitch?

Not sure if this is a bug or a one time glitch not but after installing 
auth_group for the reader shows up with bars at both ends and none of the 
other auth_group showed this

|plugin_instant_admin_reader|

rather than

plugin_instant_admin_reader

This plugin rocks! thanks again

C.


[web2py] Re: Requesting Feedback for Web2py Instant Admin

2011-08-01 Thread Christopher Steel
Ramana,

Gorgeous plugin, I think we should make it part of the Web2py Welcome app as 
well. It is a great example of a plugin and if fills an important need for 
site administration.

I was able to find urls for all the requirements with the exception of path 
which obviously brings up a lot of unrelated google listings : )

Here are urls for the requirements I found,  are they correct?

web2py
http://www.web2py.com/examples/static/web2py_src.zip

web2py-utils
http://packages.python.org/web2py_utils/

WebTest
http://webtest.canoo.com/webtest/manual/WebTestHome.html

nose
http://readthedocs.org/docs/nose/en/latest/

path
???

Thanks for the awesome plugin!!!

Chris


[web2py] Re: Problem installing web2py as a service

2011-08-01 Thread Brian M
Have you tried using the source version instead of the exe?  I've got the 
source version running as a service on 2 machines.  It may be that the exe 
is missing something that's required for running web2py as a service.  (If 
you do try from source, make sure you also install the win32 python 
extensions).

As far as setting the parameters, it's the options.py file - just open it up 
in your favorite text editor.  If you haven't already, you'll probably want 
to refer to 
http://web2py.com/book/default/chapter/11#Start-as-Windows-Service

~Brian


[web2py] Re: Ubuntu pip install web2py in virtualenv

2011-08-01 Thread Massimo Di Pierro
The pip install needs to be fixed or be removed else it will confuse
new users. I will need help to fix it.

On Aug 1, 7:34 pm, Christopher Steel  wrote:
> ; ) Mercurial rocks...


[web2py] Re: Ubuntu pip install web2py in virtualenv

2011-08-01 Thread Christopher Steel
; ) Mercurial rocks...


Re: [web2py] Do we need a Web2py micro-framework , or split web2py into multiple components ?

2011-08-01 Thread Anthony
On Monday, August 1, 2011 6:45:52 PM UTC-4, Phyo Arkar wrote: 
>
> I haven't test yest.
>
> But i am not sure if i remove a module it will break some other features as 
> web2py does magic import not static.

 
Right, I guess you can't actually delete DAL because it is automatically 
imported by the framework. I think you can probably delete tools.py (Auth, 
Crud, Mail). And you should be able to delete any of the apps.
 
Anthony


[web2py] Re: Requesting Feedback for Web2py Instant Admin

2011-08-01 Thread pbreit
Variables:


self.applicationsset(['BASE', 'admin', 'error', 'examples', 'init', 'lab', 
...])self.functionsset([])selfself.args[}>]self.controllersset(['appadmin', 'checkout', 
'components', 'connect', 'cron', 'default', ...])


[web2py] Re: Requesting Feedback for Web2py Instant Admin

2011-08-01 Thread pbreit
I had trouble logging in but was finally successful by granting an existing 
auth_user superuser membership. I ran into the same "password must be 6 
chars" error.

One thing I noticed is that it did not seem to pick up my auth_user table (I 
don't see it listed in the right side nav). I am using a custom auth_user 
table.

Then was not able to access any table records with this error:

Traceback (most recent call last):
  File "/Users/pbreit/web2py/gluon/restricted.py", line 192, in restricted
exec ccode in environment
  File 
"/Users/pbreit/web2py/applications/init/views/plugin_instant_admin/list.html", 
line 65, in 
if request.vars.get('sort_reverse') == 'false':
  File "/Users/pbreit/web2py/gluon/html.py", line 287, in URL
args, other, scheme, host, port)
  File "/Users/pbreit/web2py/gluon/rewrite.py", line 112, in url_out
acf = map_url_out(request, env, application, controller, function, args, 
other, scheme, host, port)
  File "/Users/pbreit/web2py/gluon/rewrite.py", line 1177, in map_url_out
return map.acf()
  File "/Users/pbreit/web2py/gluon/rewrite.py", line 1115, in acf
self.omit_acf() # try to omit a/c/f
  File "/Users/pbreit/web2py/gluon/rewrite.py", line 1067, in omit_acf
if self.args[0] in self.functions or self.args[0] in self.controllers or 
self.args[0] in self.applications:
TypeError: unhashable type: 'Table'



[web2py] Re: routing question

2011-08-01 Thread agend
ok, thanks a lot

Arek

On Aug 2, 12:39 am, Jonathan Lundell  wrote:
> On Aug 1, 2011, at 3:21 PM, agend wrote:
>
> > thanks, i've changed my routes.py to :
> > routers = dict(
> >  BASE  = dict(
> >    default_application='polow',
> >    default_function='show_item',
> >    functions=['index', 'show_item', 'add_item']),
> > )
> > and it's working - but is there any way to not have to specify all my
> > functions in the list - it's a bit of hassle and code duplication ?
>
> Yeah, I know, but at least for now there's no way around it.
>
> It'd be possible in principle to scan the controller and find all the valid 
> function names (perhaps using web2py's dispatch code as a starting point), 
> but that hasn't been done.
>
> Another possible extension is to accept dicts for default_function and 
> functions, where the keys would be controller names, so each controller could 
> have its own function logic. But ... not yet.
>
>
>
>
>
>
>
>
>
> > Arek
>
> > On Aug 1, 11:06 pm, Jonathan Lundell  wrote:
> >> On Aug 1, 2011, at 12:13 PM, agend wrote:
>
> >>> all i did was set routes.py to :
>
> >>> routers = dict(
> >>>  BASE  = dict(default_application='polow'),
> >>> )
>
> >>> # where polow is my app name
>
> >> To do what you ask (below), you need to specify show_item as the default 
> >> function (only the default function is omitted), and supply a list of 
> >> functions in the default controller. There's a note on it in the comments 
> >> in the routers.example file.
>
> >>> Arek
>
> >>> On Aug 1, 6:07 pm, Jonathan Lundell  wrote:
>  On Aug 1, 2011, at 8:55 AM, agend wrote:
>
> > hi, what do i have to do to make a request to this address :
> > example.com/345 go to example.com/show_item/345 ???
>
> > i've already set up the default application and controller
>
>  Is show_item intended to be the default function? Are you using the 
>  parametric ("new") router?


Re: [web2py] Do we need a Web2py micro-framework , or split web2py into multiple components ?

2011-08-01 Thread Jonathan Lundell
On Aug 1, 2011, at 3:59 PM, Bruno Rocha wrote:

> I guess you can't delete /admin if you are starting web2py with rocket and 
> cron enabled.

How come?

[Isn't 'how come' an odd idiom?]

Most of gluon/contrib could probably go away, depending on the environment. And 
gluon/tests.

> 
> On Mon, Aug 1, 2011 at 7:51 PM, pbreit  wrote:
> What specifically do you want to remove?
> 
> I believe you can safely delete these directories:
> 
> /doc
> /scipts
> /applications/admin
> /applications/examples
> /applications/welcome
> 
> In your app, you can delete controllers/appadmin.py
> 




Re: [web2py] Do we need a Web2py micro-framework , or split web2py into multiple components ?

2011-08-01 Thread Bruno Rocha
I guess you can't delete /admin if you are starting web2py with rocket and
cron enabled.

On Mon, Aug 1, 2011 at 7:51 PM, pbreit  wrote:

> What specifically do you want to remove?
>
> I believe you can safely delete these directories:
>
> /doc
> /scipts
> /applications/admin
> /applications/examples
> /applications/welcome
>
> In your app, you can delete controllers/appadmin.py
>



-- 



--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
[ Aprenda a programar: http://CursoDePython.com.br ]
[ O seu aliado nos cuidados com os animais: http://AnimalSystem.com.br ]
[ Consultoria em desenvolvimento web: http://www.blouweb.com ]


[web2py] Re: Ubuntu pip install web2py in virtualenv

2011-08-01 Thread pbreit
I always advise installing via Mercurial clone if possible.

hg clone https://code.google.com/p/web2py/ web2py 


Re: [web2py] Do we need a Web2py micro-framework , or split web2py into multiple components ?

2011-08-01 Thread pbreit
What specifically do you want to remove?

I believe you can safely delete these directories:

/doc
/scipts
/applications/admin
/applications/examples
/applications/welcome

In your app, you can delete controllers/appadmin.py


Re: [web2py] Do we need a Web2py micro-framework , or split web2py into multiple components ?

2011-08-01 Thread Phyo Arkar
I haven't test yest.

But i am not sure if i remove a module it will break some other features as
web2py does magic import not static.

And if new version of web2py comes , i just want to upgrade it in my app.
And i don't want to remove them all again (also new files).


On Tue, Aug 2, 2011 at 5:11 AM, pbreit  wrote:

> I'm not sure this would make sense. Right now, the only extra things you
> get besides Core + DAL are the applications and some docs which are simple
> to delete.
>
> Maybe I'd need to see a real example of what you are talking about. Can't
> you just distribute a package with your app in /applications?
>


[web2py] Re: Check out my new web2py website

2011-08-01 Thread weheh
ninjaui looks good. but i'm using jquery ui

On Aug 1, 3:43 pm, Bruno Rocha  wrote:
> are you using ninjaui?http://ninjaui.com/objects
>
> On Mon, Aug 1, 2011 at 9:06 AM, weheh  wrote:
> > I want to keep this low profile for now because there is still much to
> > do. But if anyone is interested in trying my beta web2py website,
> > please go ahead. It's athttp://beta.yakitome.com. Don't expect it to
> > be super stable nor have all features available, but the basics are
> > there. So far, it only handles .txt file uploads and the Mel voice is
> > not installed. I do not guarantee that I will be keeping your data
> > during the beta period. The legacy version athttp://www.yakitome.com
> > is for that. It will be supported in parallel until the new site is
> > solid. Feedback on the new site will be appreciated. Use the contact
> > form. Thanks.
>
> --
>
> --
> Bruno Rocha
> [ About me:http://zerp.ly/rochacbruno]
> [ Aprenda a programar:http://CursoDePython.com.br]
> [ O seu aliado nos cuidados com os animais:http://AnimalSystem.com.br]
> [ Consultoria em desenvolvimento web:http://www.blouweb.com]


Re: [web2py] Do we need a Web2py micro-framework , or split web2py into multiple components ?

2011-08-01 Thread pbreit
I'm not sure this would make sense. Right now, the only extra things you get 
besides Core + DAL are the applications and some docs which are simple to 
delete.

Maybe I'd need to see a real example of what you are talking about. Can't 
you just distribute a package with your app in /applications?


Re: [web2py] Re: routing question

2011-08-01 Thread Jonathan Lundell
On Aug 1, 2011, at 3:21 PM, agend wrote:

> thanks, i've changed my routes.py to :
> routers = dict(
>  BASE  = dict(
>default_application='polow',
>default_function='show_item',
>functions=['index', 'show_item', 'add_item']),
> )
> and it's working - but is there any way to not have to specify all my
> functions in the list - it's a bit of hassle and code duplication ?

Yeah, I know, but at least for now there's no way around it.

It'd be possible in principle to scan the controller and find all the valid 
function names (perhaps using web2py's dispatch code as a starting point), but 
that hasn't been done.

Another possible extension is to accept dicts for default_function and 
functions, where the keys would be controller names, so each controller could 
have its own function logic. But ... not yet.

> 
> Arek
> 
> On Aug 1, 11:06 pm, Jonathan Lundell  wrote:
>> On Aug 1, 2011, at 12:13 PM, agend wrote:
>> 
>>> all i did was set routes.py to :
>> 
>>> routers = dict(
>>>  BASE  = dict(default_application='polow'),
>>> )
>> 
>>> # where polow is my app name
>> 
>> To do what you ask (below), you need to specify show_item as the default 
>> function (only the default function is omitted), and supply a list of 
>> functions in the default controller. There's a note on it in the comments in 
>> the routers.example file.
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>> Arek
>> 
>>> On Aug 1, 6:07 pm, Jonathan Lundell  wrote:
 On Aug 1, 2011, at 8:55 AM, agend wrote:
>> 
> hi, what do i have to do to make a request to this address :
> example.com/345 go to example.com/show_item/345 ???
>> 
> i've already set up the default application and controller
>> 
 Is show_item intended to be the default function? Are you using the 
 parametric ("new") router?




Re: [web2py] Do we need a Web2py micro-framework , or split web2py into multiple components ?

2011-08-01 Thread Anthony
On Monday, August 1, 2011 6:06:11 PM UTC-4, Phyo Arkar wrote: 
>
> As web2py grow bigger and bigger :
>
> - There are many many features which are not used, just sits around.
> - If we dont want , have to remove them by hand from web2py
> - If we just want to release a standalone application, web2py is already 
> too big
> - if i want to strip down features i have to look into web2py code , 
> modifying , removing stuff , that will break things and every web2py update 
> i have to redo that work.
>
> May be in Future , in backward-incompatible version of web2py(may be also 
> possible in this version) , shouldn't we separate web2py into separate 
> components
> eg:
>
> Web2py-Core (Main web2py Rocket, MVC,Routing)
> Web2py-DAL (DAL SPecific,auth,curd)
> Web2py-Extras (Extra web2py Examples,scaffolding)
> Web2py-Admin (Admin interface)

 
All of these things are already "modular" in the sense that you can get rid 
of any of them by simply deleting specific files or folders (i.e., you don't 
have to edit any code). Are you saying you just want an easier way to 
download/install exactly what you need without having to bother with any 
deleting?
 
Anthony
 


[web2py] Requesting Feedback for Web2py Instant Admin Options

2011-08-01 Thread peter
When I add this plugin to my existing app, following the instructions

3.Under ‘upload plugin file’, select the
web2py.plugin.instant_admin.w2p file you just downloaded and click on
upload.
4.Visit http://127.0.0.1:8000/your_app/plugin_instant_admin/welcome.
(Replace your_app with the name of the app where you uploaded the
plugin)

I get

Traceback (most recent call last):
 File "D:\web2py\gluon\restricted.py", line 192, in restricted
exec ccode in environment
File "D:/web2py/applications/images/models/plugin_wiki.py", line 59,
in 
Field('role',db.auth_group,  File "D:\web2py\gluon\dal.py", line
4251, in __getattr__
return self[key]
File "D:\web2py\gluon\dal.py", line 4245, in __getitem__
return dict.__getitem__(self, str(key))

KeyError: 'auth_group'


Thanks
Peter


[web2py] Re: routing question

2011-08-01 Thread agend
thanks, i've changed my routes.py to :
routers = dict(
  BASE  = dict(
default_application='polow',
default_function='show_item',
functions=['index', 'show_item', 'add_item']),
)
and it's working - but is there any way to not have to specify all my
functions in the list - it's a bit of hassle and code duplication ?

Arek

On Aug 1, 11:06 pm, Jonathan Lundell  wrote:
> On Aug 1, 2011, at 12:13 PM, agend wrote:
>
> > all i did was set routes.py to :
>
> > routers = dict(
> >  BASE  = dict(default_application='polow'),
> > )
>
> > # where polow is my app name
>
> To do what you ask (below), you need to specify show_item as the default 
> function (only the default function is omitted), and supply a list of 
> functions in the default controller. There's a note on it in the comments in 
> the routers.example file.
>
>
>
>
>
>
>
>
>
> > Arek
>
> > On Aug 1, 6:07 pm, Jonathan Lundell  wrote:
> >> On Aug 1, 2011, at 8:55 AM, agend wrote:
>
> >>> hi, what do i have to do to make a request to this address :
> >>> example.com/345 go to example.com/show_item/345 ???
>
> >>> i've already set up the default application and controller
>
> >> Is show_item intended to be the default function? Are you using the 
> >> parametric ("new") router?


[web2py] Do we need a Web2py micro-framework , or split web2py into multiple components ?

2011-08-01 Thread Phyo Arkar
As web2py grow bigger and bigger :

- There are many many features which are not used, just sits around.
- If we dont want , have to remove them by hand from web2py
- If we just want to release a standalone application, web2py is already too
big
- if i want to strip down features i have to look into web2py code ,
modifying , removing stuff , that will break things and every web2py update
i have to redo that work.

May be in Future , in backward-incompatible version of web2py(may be also
possible in this version) , shouldn't we separate web2py into separate
components
eg:

Web2py-Core (Main web2py Rocket, MVC,Routing)
Web2py-DAL (DAL SPecific,auth,curd)
Web2py-Extras (Extra web2py Examples,scaffolding)
Web2py-Admin (Admin interface)

And also  new stuffs:
Web2py-Deployment (Easy deployment and setup features for multiple type of
servers)
Web2py-Plugins (Cube , etc)



-There should be more that can be separated

so Here is what we get - Two versions:  Web2py-Lite = Web2py-Core +
Web2py-DAL and then web2py , All included

That way if Some features need its own maintainer Massimo can assign task to
that person , he will work on it without touching other stuff. It will be
easier for everybody to contribute too.


The thing i want about Web2py-Lite is :

I am starting to make web2py-based  issue tracker for mercurial, Database
Manager  (Full featured like PHPMyadmin) and Web-based File manager based on
web2py in my free time.

They will be avliable as opensource and free. But i want to release them as
Both web2py applicance and Standalone.
As Standalone , it will attract other developers , PHP / .NET who do not use
web2py or python use it and it will also attract them.
I know a lot of them who just stick to phpMyadmin for database management
over the web, even tho their development langauge is not PHP. Web2py's DAL
is so easy to make Something like
phpMyadmin and it will be alot better coz zero configuration + Setup
requirment that web2py gives.For phpMyadmin , one have to install apache +
php + mysql + phpMyadmin.

Would it be too much work? But i believe with this modular design it  will
make future of web2py a lot brighter .


[web2py] Re: Legacy Tables: Can't Insert rows. Nothing back from db._lastsql

2011-08-01 Thread Andrew
Thanks Anthony,

   It's mostly working !

   I ran web2py from the shell (for the first time) and I was able to
successfully add a row.  I did forget to do a commit.  Thanks for the
tip.
print db._lastsql  also works.  Sounds like I shouldn't bother with
the shell in the admin screen.

The appadmin database administration screen briefly flashes for a
split second when I press Submit, but nothing else.  Still no errors
in the "errors" screen?  The log has the following:
127.0.0.1, 2011-08-02 09:51:31, GET, /Max/appadmin/insert/db/
web2pytest_leg, HTTP/1.1, 200, 0.031000

Andrew


Re: [web2py] Re: routing question

2011-08-01 Thread Jonathan Lundell
On Aug 1, 2011, at 12:13 PM, agend wrote:

> all i did was set routes.py to :
> 
> routers = dict(
>  BASE  = dict(default_application='polow'),
> )
> 
> # where polow is my app name

To do what you ask (below), you need to specify show_item as the default 
function (only the default function is omitted), and supply a list of functions 
in the default controller. There's a note on it in the comments in the 
routers.example file.

> 
> Arek
> 
> On Aug 1, 6:07 pm, Jonathan Lundell  wrote:
>> On Aug 1, 2011, at 8:55 AM, agend wrote:
>> 
>>> hi, what do i have to do to make a request to this address :
>>> example.com/345 go to example.com/show_item/345 ???
>> 
>>> i've already set up the default application and controller
>> 
>> Is show_item intended to be the default function? Are you using the 
>> parametric ("new") router?




[web2py] Re: LOAD with indicator in a helper method

2011-08-01 Thread Alexander Cabezas
I solved the problem. I'd been making some mistakes.

Solution:

#helpers.py
def load(self, c=None, f='index', args=[], vars={}, extension=None,
target=None, ajax=False, ajax_trap=False,url=None,
user_signature=False, content=None, **attr):

target = target or 'c'+str(random.random())[2:]
content = content or TAG['']
(T("loading..."),IMG(_src=URL(request.application,'static','images/
ajax-loader.gif')))
a = request.application
r = request
url = URL(a,c,f,r,args=args,vars=vars,extension=extension)
return
LOAD(url=url,target=target,ajax=ajax,ajax_trap=ajax_trap,user_signature=user_signature,content=content,**attr)

#index.html
{{=helpers.load("default","login.load",ajax=True,ajax_trap=True)}}

If anyone see other bugs tell me please. Thanks.

On 1 ago, 16:23, Alexander Cabezas  wrote:
> Hello,
>
> I've been trying to do a helper method but I get an error, below:
>
> #helpers.py
>     def load(c=None, f='index', args=[], vars={},
>              extension=None, target=None,ajax=False,ajax_trap=False,
>              url=None, user_signature=False, content='loading...',
> **attr):
>
>         target = target or 'c'+str(random.random())[2:]
>         content = DIV(T("loading..."),IMG(_src="images/ajax-
> loader.gif"),_id=target)
>         a = request.application
>         r = request
>         url = URL(a,c,f,r,args=args,vars=vars,extension=extension)
>         return
> LOAD(target,ajax,ajax_trap,user_signature,content,url=url,**attr)
>
> #index.html
> {{extend 'layouts.html'}}
> {{=helpers.load(c='default',f='login.load',ajax=True,ajax_trap=True)}}
>
> #error:
> TypeError: load() got an unexpected keyword argument 'c'
>
> When I try a different call without 'c' and 'f' keys, like:
>
> #index.html
> {{=helpers.load('default','login.load',ajax=True,ajax_trap=True)}}
>
> #error:
> TypeError: sequence item 1: expected string, instance found
>
> Any clue?


Re: [web2py] Re: web2py.com/book raise an Error

2011-08-01 Thread Ismael Serratos
+1 Internal Error :S

On Mon, Aug 1, 2011 at 2:05 PM, Anthony  wrote:

> Same here.
>
> On Monday, August 1, 2011 3:01:10 PM UTC-4, w2padawan wrote:
>
>> Internal error and ticket is issued. you know the rest
>
>


[web2py] LOAD with indicator in a helper method

2011-08-01 Thread Alexander Cabezas
Hello,

I've been trying to do a helper method but I get an error, below:

#helpers.py
def load(c=None, f='index', args=[], vars={},
 extension=None, target=None,ajax=False,ajax_trap=False,
 url=None, user_signature=False, content='loading...',
**attr):

target = target or 'c'+str(random.random())[2:]
content = DIV(T("loading..."),IMG(_src="images/ajax-
loader.gif"),_id=target)
a = request.application
r = request
url = URL(a,c,f,r,args=args,vars=vars,extension=extension)
return
LOAD(target,ajax,ajax_trap,user_signature,content,url=url,**attr)

#index.html
{{extend 'layouts.html'}}
{{=helpers.load(c='default',f='login.load',ajax=True,ajax_trap=True)}}

#error:
TypeError: load() got an unexpected keyword argument 'c'

When I try a different call without 'c' and 'f' keys, like:

#index.html
{{=helpers.load('default','login.load',ajax=True,ajax_trap=True)}}

#error:
TypeError: sequence item 1: expected string, instance found

Any clue?


Re: [web2py] Bug in virtualfields w/ session

2011-08-01 Thread Michael Toomim
Maybe it helps for me to explain my use-case. I mainly use virtual fields as 
lazy methods, to help traverse related tables. I was actually surprised that 
lazy evaluation wasn't the default. I noticed a few implications of this:
  - Large queries are slowed by virtualfields, even if they won't be needed, 
esp if they query db
  - My definitions for virtualfields aren't as clean as they could be, because 
I have many nested "lazy" funcs in the class definition
  - We can't serialize all objects into session variables

So really I'm just using this because it's a nicer notation to call 
row.otherthing() instead of getotherthing(row). Maybe I really want some 
different feature here?

On Aug 1, 2011, at 5:40 AM, Anthony Bastardi wrote:

> Note, after looking at this some more, Massimo recalled that the reason 
> auth_user virtual fields were excluded from auth.user (and therefore from 
> saving in the session) is because some virtual fields are objects that cannot 
> be pickled and therefore cannot be serialized to store in the session. So, 
> we're thinking of either creating an option to store auth_user virutual 
> fields in auth.user, or maybe testing to make sure the virtual fields can be 
> pickled, and excluding them if not.
>  
> Anthony
> 
> On Mon, Aug 1, 2011 at 5:30 AM, Michael Toomim  
> wrote:
> Awesome! I did not know there was an issue submission system.
> 
> On Jul 30, 2011, at 7:02 AM, Anthony wrote:
> 
>> An issue has been submitted, and this should be corrected soon.
>>  
>> Anthony
>> 
>> On Friday, July 29, 2011 9:57:30 PM UTC-4, Anthony wrote:
>> auth.user is Storage(table_user._filter_fields(user, id=True)). The 
>> _filter_fields method of the auth_user table only selects actual table 
>> fields, not virtual fields, so auth.user will not include any virtual 
>> fields. Perhaps this should be changed.
>>  
>> Anthony
>> 
>> On Friday, July 29, 2011 9:05:39 PM UTC-4, Michael Toomim wrote:
>> I think I found a bug in virtualfields. I have the following 
>> controller: 
>> 
>> def posts(): 
>> user = session.auth.user 
>> n = user.name # returns None 
>> 
>> Where "person" is defined as a virtualfield on user: 
>> 
>> class Users(): 
>> def name(self): 
>> return self.users.first_name + ' ' + self.users.last_name 
>> db.users.virtualfields.append(Users()) 
>> 
>> The problem is that user.name returns None, because apparently the 
>> virtualfield isn't loaded into the session variable of user. 
>> 
>> I made this work with the following modification to the controller: 
>> 
>> def posts(): 
>> user = db.users[session.auth.user.id] 
>> n = user.name # returns the user name correctly! 
>> 
>> I just had to refetch the user from the database.
> 
> 



Re: [web2py] Re: layout with submenu

2011-08-01 Thread Richard Vézina
If you use the wizard maybe there could be a bug somewhere and the menu get
it.

You should map you menu to your controller function by hand... Start with a
single level menu and copy paste sub menu, by trial and error you should be
able to figure what the proper syntax you should use base on the example app
and welcome app... Then you only have to generalize the approach when you
are trusting in your code.

Richard

On Mon, Aug 1, 2011 at 1:56 PM, Casey Schroeder  wrote:

>
> Help appreciated.  I do not see the error in this code and neither do
> my editors.  All i did was make a new app from scratch (not with the
> very latest release, but downloaded fresh a week ago) using the wizard
> and inserted this in menu.py to get this problem (I have tried 5
> different new templates, and it is only the welcome app format that
> accepts the code.
>
>
> response.menu = [
>(T('Home'),False,URL('index'),[]),
>(T('Domain'),False,URL('index'),
>[
>(T('agriculture'),False,URL('agriculture_home'),
>[
>(T('R&D'),False,URL('agriculture_rnd'),[]),
>
> (T('Consulting'),False,URL('agriculture_consulting'),[]),
>(T('Education'),False,URL('agriculture_edu'),[])
>]
>),
>(T('equipment'),False,URL('equip_home'),
>[
>(T('R&D'),False,URL('equip_rnd'),[]),
>(T('Consulting'),False,URL('equip_consulting'),
> []),
>(T('Education'),False,URL('equip_edu'),[])
>]
>
>),
>(T('analysis'),False,URL('analysis_home'),
>[
>(T('R&D'),False,URL('analysis_rnd'),[]),
>(T('Consulting'),False,URL('analysis_consulting'),
> []),
>(T('Education'),False,URL('analysis_edu'),
> [])
>]
>)
>]
>),
>
>(T('Function'),False,URL('index'),
>[
>(T('R&D'),False,URL('home_rnd'),
>[
>(T('agriculture'),False,URL('agriculture_rnd'),
> []),
>(T('equipment'),False,URL('equip_rnd'),[]),
>(T('analysis'),False,URL('analysis_rnd'),
> [])
>]
>),
>
>(T('Consulting'),False,URL('home_consulting'),
>[
>
> (T('agriculture'),False,URL('agriculture_consulting'),[]),
>(T('equipment'),False,URL('equip_consulting'),[]),
>(T('analysis'),False,URL('analysis_consulting'),
> [])
>]
>),
>
>(T('Education'),False,URL('home_edu'),
>[
>(T('agriculture'),False,URL('agriculture_edu'),
> []),
>(T('equipment'),False,URL('equip_edu'),[]),
>(T('analysis'),False,URL('analysis_edu'),[])
>]
>)
>]
>)
>
> ]
>
>
>
> On Aug 1, 9:26 am, Richard Vézina  wrote:
> > Show your code, it must be closing bracket or something... It is easy to
> > miss one out not closed when making sub-sub-menu, code get confusing
> > sometimes.
> >
> > There is no other threads.
> >
> > Richard
> >
> >
> >
> >
> >
> >
> >
> > On Sat, Jul 30, 2011 at 6:08 AM, Casey Schroeder 
> wrote:
> >
> > > Hi Richard, i ran into a similar problem with sub-sub-menus just today
> > > using a number of the available layouts in the layouts plugin - in
> > > fact all 4 that i downloaded.  It worked fine with the default layout,
> > > but with the other four the menu was not navigable.  I used firefox 5
> > > and the latest source download.  Is there an update to this thread you
> > > can share?  Thanks, Casey
> >
> > > On Jun 6, 3:28 pm, Richard Vézina  wrote:
> > > > Do you have a example (screenshot) of the glitch... I don't see any
> > > problem
> > > > in the welcome app?
> >
> > > > Richard
> >
> > > > On Mon, Jun 6, 2011 at 4:15 PM, Manuele Pesenti
> > > > wrote:
> >
> > > > > thank you Richard but the problem is the css code that in most or
> quite
> > > all
> > > > > layouts does not defines proper classes to manage sub menu so if
> you
> > > use it
> > > > > you will obtain ugly effects... I'm not so skilled with css and I
> was
> > > > > looking for some layout that contains classes for submenu
> >
> > > > > Sorry if my quest was not so clear
> >
> > > > > cheers
> >
> > > > >Manuele
> >
> > > > > On 06/06/2011 16:51, Richard Vézina wrote:
> >
> > > > >> I am not sure to understand what you need, but you can nest you
> stuff
> > > > >> like this :
> >
> > > > >> response.menu = [
> > > > >>  [T('root1').capitalize(),
> > > > >>  False,
> > > > >> '',
> > > > >>  [
> > > > >>  [T('level1-1').capitalize(),
> > > > >>  False,
> > > > >>  URL(request.application,
> > > > >> 'controller',
> > > > >> 'function'),
> > > > >>  [
> > > > >> 

Re: [web2py] Re: layout with submenu

2011-08-01 Thread Richard Vézina
I know that in one of the latest release of web2py, list menu have been
replace by tuple menu... So, it surely still possible to use the list menu,
but maybe the tuplue menu not "compatible" with earlier version of web2py...

There is also a tiny little detail that could be cause some problem to you :

response.menu = [
(T('Home'), False, URL('default','index'), [])
]

##
## this is here to provide shortcuts
## during development. remove in production
##
## mind that plugins may also affect menu
##

#
## Make your own menus
##

response.menu*+*=[
(T('This App'), False, URL('admin', 'default', 'design/%s' %
request.application),
 [


I didn't review your code... But since you say that it works in newer
version of web2py, it should be related to change in the menu declaration...

Try to copy older code in newer app and use the older menu declaration and
it should work everywhere, I guest.

Richard



On Mon, Aug 1, 2011 at 1:56 PM, Casey Schroeder  wrote:

>
> Help appreciated.  I do not see the error in this code and neither do
> my editors.  All i did was make a new app from scratch (not with the
> very latest release, but downloaded fresh a week ago) using the wizard
> and inserted this in menu.py to get this problem (I have tried 5
> different new templates, and it is only the welcome app format that
> accepts the code.
>
>
> response.menu = [
>(T('Home'),False,URL('index'),[]),
>(T('Domain'),False,URL('index'),
>[
>(T('agriculture'),False,URL('agriculture_home'),
>[
>(T('R&D'),False,URL('agriculture_rnd'),[]),
>
> (T('Consulting'),False,URL('agriculture_consulting'),[]),
>(T('Education'),False,URL('agriculture_edu'),[])
>]
>),
>(T('equipment'),False,URL('equip_home'),
>[
>(T('R&D'),False,URL('equip_rnd'),[]),
>(T('Consulting'),False,URL('equip_consulting'),
> []),
>(T('Education'),False,URL('equip_edu'),[])
>]
>
>),
>(T('analysis'),False,URL('analysis_home'),
>[
>(T('R&D'),False,URL('analysis_rnd'),[]),
>(T('Consulting'),False,URL('analysis_consulting'),
> []),
>(T('Education'),False,URL('analysis_edu'),
> [])
>]
>)
>]
>),
>
>(T('Function'),False,URL('index'),
>[
>(T('R&D'),False,URL('home_rnd'),
>[
>(T('agriculture'),False,URL('agriculture_rnd'),
> []),
>(T('equipment'),False,URL('equip_rnd'),[]),
>(T('analysis'),False,URL('analysis_rnd'),
> [])
>]
>),
>
>(T('Consulting'),False,URL('home_consulting'),
>[
>
> (T('agriculture'),False,URL('agriculture_consulting'),[]),
>(T('equipment'),False,URL('equip_consulting'),[]),
>(T('analysis'),False,URL('analysis_consulting'),
> [])
>]
>),
>
>(T('Education'),False,URL('home_edu'),
>[
>(T('agriculture'),False,URL('agriculture_edu'),
> []),
>(T('equipment'),False,URL('equip_edu'),[]),
>(T('analysis'),False,URL('analysis_edu'),[])
>]
>)
>]
>)
>
> ]
>
>
>
> On Aug 1, 9:26 am, Richard Vézina  wrote:
> > Show your code, it must be closing bracket or something... It is easy to
> > miss one out not closed when making sub-sub-menu, code get confusing
> > sometimes.
> >
> > There is no other threads.
> >
> > Richard
> >
> >
> >
> >
> >
> >
> >
> > On Sat, Jul 30, 2011 at 6:08 AM, Casey Schroeder 
> wrote:
> >
> > > Hi Richard, i ran into a similar problem with sub-sub-menus just today
> > > using a number of the available layouts in the layouts plugin - in
> > > fact all 4 that i downloaded.  It worked fine with the default layout,
> > > but with the other four the menu was not navigable.  I used firefox 5
> > > and the latest source download.  Is there an update to this thread you
> > > can share?  Thanks, Casey
> >
> > > On Jun 6, 3:28 pm, Richard Vézina  wrote:
> > > > Do you have a example (screenshot) of the glitch... I don't see any
> > > problem
> > > > in the welcome app?
> >
> > > > Richard
> >
> > > > On Mon, Jun 6, 2011 at 4:15 PM, Manuele Pesenti
> > > > wrote:
> >
> > > > > thank you Richard but the problem is the css code that in most or
> quite
> > > all
> > > > > layouts does not defines proper classes to manage sub menu so if
> you
> > > use it
> > > > > you will obtain ugly effects... I'm not so skilled with css and I
> was
> > > > > looking for some layout that contains classes for subme

Re: [web2py] Check out my new web2py website

2011-08-01 Thread Bruno Rocha
are you using ninjaui? http://ninjaui.com/objects

On Mon, Aug 1, 2011 at 9:06 AM, weheh  wrote:

> I want to keep this low profile for now because there is still much to
> do. But if anyone is interested in trying my beta web2py website,
> please go ahead. It's at http://beta.yakitome.com. Don't expect it to
> be super stable nor have all features available, but the basics are
> there. So far, it only handles .txt file uploads and the Mel voice is
> not installed. I do not guarantee that I will be keeping your data
> during the beta period. The legacy version at http://www.yakitome.com
> is for that. It will be supported in parallel until the new site is
> solid. Feedback on the new site will be appreciated. Use the contact
> form. Thanks.




-- 



--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
[ Aprenda a programar: http://CursoDePython.com.br ]
[ O seu aliado nos cuidados com os animais: http://AnimalSystem.com.br ]
[ Consultoria em desenvolvimento web: http://www.blouweb.com ]


[web2py] Re: Ubuntu pip install web2py in virtualenv

2011-08-01 Thread Christopher Steel
I just download Web2py source and unpack. Since Web2py does not require 
installing in a traditional sense this works fine.

personally I use pip to install virtualenv but since the pip installer 
breaks up web2py into non-traditional directories I don't install Web2py 
with pip


C.


[web2py] Re: routing question

2011-08-01 Thread agend
all i did was set routes.py to :

routers = dict(
  BASE  = dict(default_application='polow'),
)

# where polow is my app name

Arek

On Aug 1, 6:07 pm, Jonathan Lundell  wrote:
> On Aug 1, 2011, at 8:55 AM, agend wrote:
>
> > hi, what do i have to do to make a request to this address :
> > example.com/345 go to example.com/show_item/345 ???
>
> > i've already set up the default application and controller
>
> Is show_item intended to be the default function? Are you using the 
> parametric ("new") router?


[web2py] Re: Check out my new web2py website

2011-08-01 Thread Christopher Steel
Looks very promising weheh.

Chris



[web2py] Re: NameError: name 'copyright' is not defined

2011-08-01 Thread Christopher Steel
I got the same error running the OS X binary installation. OS X 10.4


[web2py] Re: web2py.com/book raise an Error

2011-08-01 Thread Anthony
Same here.

On Monday, August 1, 2011 3:01:10 PM UTC-4, w2padawan wrote:

> Internal error and ticket is issued. you know the rest 



[web2py] web2py book not available?

2011-08-01 Thread apple
http://www.web2py.com/book is currently generating an error.


Re: [web2py] Re: time to contribute with a big app: openMyWork

2011-08-01 Thread Anthony
OK, done. I'll update it when www.openmywork.org is ready.
 
Anthony

On Monday, August 1, 2011 2:37:37 PM UTC-4, demetrio wrote:

>  
> The correct url should be 
> http://forjas.infloss.com/forja
>  (i 
> hope to have ready www.openmywork.org on september)
>
> And the correct name sholud be openMyWork.
>
> Thanks to everybody
>
>
> El 01/08/2011, a las 20:30, Anthony  escribió:
>
>  On Monday, August 1, 2011 2:05:26 PM UTC-4, Massimo Di Pierro wrote: 
>>
>> +1 
>>
>> @Anthony, can you please add it to poweredby?
>
>  
> I'd be happy to list it on the web2py Poweredby page. Daniel, what would be 
> the most appropriate link/page to list: 
> http://forjas.infloss.com/portal/default/index, 
> http://forjas.infloss.com/forja, or something else (or should we list more 
> than one)? Also, what should it be called -- "openMyWork", "Forjas de 
> Gobierno Vasco", "sale"?
>  
> Thanks.
>  
> Anthony
>  
>
>

[web2py] Re: time to contribute with a big app: openMyWork

2011-08-01 Thread Christopher Steel
major project, looking good!


[web2py] web2py.com/book raise an Error

2011-08-01 Thread danto
Internal error and ticket is issued. you know the rest


Re: [web2py] Re: Requesting Feedback for Web2py Instant Admin

2011-08-01 Thread Furqan Rauf
me likey!!! web2py gets better every moment :) thanks all

On Mon, Aug 1, 2011 at 1:42 PM, Francisco Costa wrote:

> Looks very good, but I can't login with superuser credentials
> (usearname = a, password = a)
> I get this message: "We're sorry. Please enter a password with at
> least six characters."
>
> On Aug 1, 2:16 pm, Anthony  wrote:
> > Looks very promising, but I cannot log into the demo (I've tried all the
> > provided demo logins, but they all result in "Invalid login").
> >
> >
> >
> >
> >
> >
> >
> > On Monday, August 1, 2011 2:09:23 AM UTC-4, Ramana wrote:
> > > Dear Web2py users,
> >
> > > I just launched the beta version of Web2py Instant Admin<
> http://sramana.in/web2py-instant-admin>,
> > > a (supposedly) django-like admin interface for Web2py applications. The
> > > demo  is here, documentation is here<
> http://readthedocs.org/docs/web2py-instant-admin> and
> > > source code is here .
> > > Since this is my first Web2py project, I don't know how good/bad the
> quality
> > > is. Your feedback will be very valuable for me. Thanks for your time.
> >
> > > Thanks & Regards,
> > > Ramana.
>



-- 
*-Furqan Rauf*
*Do you love your creator? Love your fellow-beings first. -Prophet Muhammad
*
*http://www.amway.com/furqanrauf*


[web2py] Splitting python code in the database

2011-08-01 Thread Hybride
Hi everyone,

Am having a hard time with figuring out this rather simple split. I
have python code (actual code) store in the database, with the
following table (f_codetest is the table, the result are three after):

'f_codetest': '>>> functionOne(1, 2)\r\nTrue\r\n>>> functionOne(2, 1)\r
\nFalse\r\n>>> functionOne(0, -1)\r\nFalse\r\n'

I grab the data as such:

{{for row in
db(db.t_problems.id==db.t_problems(request.args(0))).select(): }}

How do I loop through the functions to put functionOne(X, Y) in a
separate variable from True/False? I've gotten this far:

{{io = row.f_tests.split('>>>')}}

Which will remove the >>>, and the result is:

functionOne(1, 2)\r\nTrue\r\n functionOne(2, 1)\r\nFalse\r\n
functionOne(0, -1)\r\nFalse\r\n'

I tried doing:
{{ for io in ioList:
i = io.split("\r\n")}}

but that only removes the "\r\n". Am trying to put functionOne(X,Y) in
it's own td and True/False right next to it, so:

functionOne(X,Y)True
functionOne(X,Y)False

Not sure why Python loops have always given me so much trouble, but
any help would be awesome!


[web2py] Re: Requesting Feedback for Web2py Instant Admin

2011-08-01 Thread Francisco Costa
Looks very good, but I can't login with superuser credentials
(usearname = a, password = a)
I get this message: "We're sorry. Please enter a password with at
least six characters."

On Aug 1, 2:16 pm, Anthony  wrote:
> Looks very promising, but I cannot log into the demo (I've tried all the
> provided demo logins, but they all result in "Invalid login").
>
>
>
>
>
>
>
> On Monday, August 1, 2011 2:09:23 AM UTC-4, Ramana wrote:
> > Dear Web2py users,
>
> > I just launched the beta version of Web2py Instant 
> > Admin,
> > a (supposedly) django-like admin interface for Web2py applications. The
> > demo  is here, documentation is 
> > here and
> > source code is here .
> > Since this is my first Web2py project, I don't know how good/bad the quality
> > is. Your feedback will be very valuable for me. Thanks for your time.  
>
> > Thanks & Regards,
> > Ramana.


Re: [web2py] Re: time to contribute with a big app: openMyWork

2011-08-01 Thread Daniel Gonzale

The correct url should be http://forjas.infloss.com/forja (i hope to have ready 
www.openmywork.org on september)

And the correct name sholud be openMyWork.

Thanks to everybody


El 01/08/2011, a las 20:30, Anthony  escribió:

> On Monday, August 1, 2011 2:05:26 PM UTC-4, Massimo Di Pierro wrote:  
> +1 
> 
> @Anthony, can you please add it to poweredby?
>  
> I'd be happy to list it on the web2py Poweredby page. Daniel, what would be 
> the most appropriate link/page to list: 
> http://forjas.infloss.com/portal/default/index, 
> http://forjas.infloss.com/forja, or something else (or should we list more 
> than one)? Also, what should it be called -- "openMyWork", "Forjas de 
> Gobierno Vasco", "sale"?
>  
> Thanks.
>  
> Anthony
>  


[web2py] Re: time to contribute with a big app: openMyWork

2011-08-01 Thread Anthony
On Monday, August 1, 2011 2:05:26 PM UTC-4, Massimo Di Pierro wrote: 
>
> +1 
>
> @Anthony, can you please add it to poweredby?

 
I'd be happy to list it on the web2py Poweredby page. Daniel, what would be 
the most appropriate link/page to list: 
http://forjas.infloss.com/portal/default/index, 
http://forjas.infloss.com/forja, or something else (or should we list more 
than one)? Also, what should it be called -- "openMyWork", "Forjas de 
Gobierno Vasco", "sale"?
 
Thanks.
 
Anthony
 


[web2py] Re: time to contribute with a big app: openMyWork

2011-08-01 Thread Massimo Di Pierro
+1

@Anthony, can you please add it to poweredby?

On Aug 1, 12:59 pm, pbreit  wrote:
> Wow, ambitious project! Looks good.


[web2py] Re: time to contribute with a big app: openMyWork

2011-08-01 Thread pbreit
Wow, ambitious project! Looks good.

[web2py] Re: layout with submenu

2011-08-01 Thread Casey Schroeder

Help appreciated.  I do not see the error in this code and neither do
my editors.  All i did was make a new app from scratch (not with the
very latest release, but downloaded fresh a week ago) using the wizard
and inserted this in menu.py to get this problem (I have tried 5
different new templates, and it is only the welcome app format that
accepts the code.


response.menu = [
(T('Home'),False,URL('index'),[]),
(T('Domain'),False,URL('index'),
[
(T('agriculture'),False,URL('agriculture_home'),
[
(T('R&D'),False,URL('agriculture_rnd'),[]),
 
(T('Consulting'),False,URL('agriculture_consulting'),[]),
(T('Education'),False,URL('agriculture_edu'),[])
]
),
(T('equipment'),False,URL('equip_home'),
[
(T('R&D'),False,URL('equip_rnd'),[]),
(T('Consulting'),False,URL('equip_consulting'),
[]),
(T('Education'),False,URL('equip_edu'),[])
]

),
(T('analysis'),False,URL('analysis_home'),
[
(T('R&D'),False,URL('analysis_rnd'),[]),
(T('Consulting'),False,URL('analysis_consulting'),
[]),
(T('Education'),False,URL('analysis_edu'),
[])
]
)
]
),

(T('Function'),False,URL('index'),
[
(T('R&D'),False,URL('home_rnd'),
[
(T('agriculture'),False,URL('agriculture_rnd'),
[]),
(T('equipment'),False,URL('equip_rnd'),[]),
(T('analysis'),False,URL('analysis_rnd'),
[])
]
),

(T('Consulting'),False,URL('home_consulting'),
[
 
(T('agriculture'),False,URL('agriculture_consulting'),[]),
(T('equipment'),False,URL('equip_consulting'),[]),
(T('analysis'),False,URL('analysis_consulting'),
[])
]
),

(T('Education'),False,URL('home_edu'),
[
(T('agriculture'),False,URL('agriculture_edu'),
[]),
(T('equipment'),False,URL('equip_edu'),[]),
(T('analysis'),False,URL('analysis_edu'),[])
]
)
]
)

]



On Aug 1, 9:26 am, Richard Vézina  wrote:
> Show your code, it must be closing bracket or something... It is easy to
> miss one out not closed when making sub-sub-menu, code get confusing
> sometimes.
>
> There is no other threads.
>
> Richard
>
>
>
>
>
>
>
> On Sat, Jul 30, 2011 at 6:08 AM, Casey Schroeder  wrote:
>
> > Hi Richard, i ran into a similar problem with sub-sub-menus just today
> > using a number of the available layouts in the layouts plugin - in
> > fact all 4 that i downloaded.  It worked fine with the default layout,
> > but with the other four the menu was not navigable.  I used firefox 5
> > and the latest source download.  Is there an update to this thread you
> > can share?  Thanks, Casey
>
> > On Jun 6, 3:28 pm, Richard Vézina  wrote:
> > > Do you have a example (screenshot) of the glitch... I don't see any
> > problem
> > > in the welcome app?
>
> > > Richard
>
> > > On Mon, Jun 6, 2011 at 4:15 PM, Manuele Pesenti
> > > wrote:
>
> > > > thank you Richard but the problem is the css code that in most or quite
> > all
> > > > layouts does not defines proper classes to manage sub menu so if you
> > use it
> > > > you will obtain ugly effects... I'm not so skilled with css and I was
> > > > looking for some layout that contains classes for submenu
>
> > > > Sorry if my quest was not so clear
>
> > > > cheers
>
> > > >        Manuele
>
> > > > On 06/06/2011 16:51, Richard Vézina wrote:
>
> > > >> I am not sure to understand what you need, but you can nest you stuff
> > > >> like this :
>
> > > >>     response.menu = [
> > > >>          [T('root1').capitalize(),
> > > >>              False,
> > > >> '',
> > > >>              [
> > > >>              [T('level1-1').capitalize(),
> > > >>                  False,
> > > >>                  URL(request.application,
> > > >> 'controller',
> > > >> 'function'),
> > > >>                  [
> > > >>                      [T('level2-1').capitalize(),
> > > >>                      False,
> > > >>                      URL(request.application,
> > > >> 'controller',
> > > >> 'function'),
> > > >>                      []],
> > > >>                  ]],
> > > >>              [T('level1-2').capitalize(),
> > > >>                  False,
> > > >>                  URL(request.application,
> > > >> 'controller',
> > > >> 'function'),
> > > >>                  []],
> > > >>              [T('level1-3').capitalize(),
> > > >>                  False,
> > > >>                  URL(request.application,
> > > >> 'controller',
> > > >> 'function'),
> > > >>                  []],
> > > >>          ]],
>
> > > >>          [T('ro

[web2py] Re: NameError: name 'copyright' is not defined

2011-08-01 Thread Anthony
On Monday, August 1, 2011 12:53:46 PM UTC-4, Michael McMahon wrote: 
>
> Hi, I'm new to programming in python, and thought I would start 
> experimenting with web frameworks as 
> well.  However, I keep getting 'NameError: name 'copyright' is not defined' 
>
> when I try to run the web2py 
> web app.

 
Can you explain exactly what you're doing and where you see that error 
message?
 

>   When I try to install in the terminal, 
> python web2py.py, I get a 'file not found'  (though I'm 
> running the command in the directory that the unzipped web2py is located.

 
Did you download the Mac binary version? 'python web2py.py' is used when 
running from the source version.
 
Anthony



[web2py] NameError: name 'copyright' is not defined

2011-08-01 Thread Michael McMahon
Hi, I'm new to programming in python, and thought I would start 
experimenting with web frameworks as 
well.  However, I keep getting 'NameError: name 'copyright' is not defined' 
when I try to run the web2py 
web app.  When I try to install in the terminal, 
python web2py.py, I get a 'file not found'  (though I'm 
running the command in the directory that the unzipped web2py is located.

I'm using a mac book with os x 10.6.7, and have recently 
updated to python 2.7 on this machine.

Thank you,
Michael



[web2py] Fwd: nix python from scratch installer

2011-08-01 Thread Chris Steel
Opps,

Mercurial users will want to do this instead:

hg clone 
https://code.google.com/p/uc-unified-python-installer/uc-unified-python-installer

(remove my gmail user name...)

C.
-- Forwarded message --
From: Chris Steel 
Date: Mon, Aug 1, 2011 at 12:28 PM
Subject: nix python from scratch installer
To: web2py-users 



Web2py is trivial to install but sometimes Python is not, especially on
older MacBook Pro's that are not worth upgrading to the latest version of OS
X.

Anyway this morning I remembered using the Plone Unified installer some time
ago and to make a long story short, it is still able to install a sandboxed
Python from scratch on most (all?) nix systems.

So, in the tradition of Web2py, I stole it...

License is GPL2

My roughly hewn version could use a lot more love and fat trimming before it
would meet Web2py's aesthetics code but if you happen to need a quick and
dirty installer for developing (Web2py) with Python it works.

You will need to fill the packages directory. This can be done by
downloading the latest Unified Plone Installer (a whopper of a download FYI)
and manually copying them over or you can manually download the packages in
the list (packages.txt).

Let me know what fat you would like to see trimmed and or added and I will
do it. enhancement suggestions welcomed.

https://code.google.com/p/uc-unified-python-installer/

hg clone 
https://chris.st...@code.google.com/p/uc-unified-python-installer/uc-unified-python-installer



C.

-- 
Christopher Steel

Voice of Access


-- 
Christopher Steel

Voice of Access



-- 
Christopher Steel

Voice of Access


[web2py] nix python from scratch installer

2011-08-01 Thread Chris Steel
Web2py is trivial to install but sometimes Python is not, especially on
older MacBook Pro's that are not worth upgrading to the latest version of OS
X.

Anyway this morning I remembered using the Plone Unified installer some time
ago and to make a long story short, it is still able to install a sandboxed
Python from scratch on most (all?) nix systems.

So, in the tradition of Web2py, I stole it...

License is GPL2

My roughly hewn version could use a lot more love and fat trimming before it
would meet Web2py's aesthetics code but if you happen to need a quick and
dirty installer for developing (Web2py) with Python it works.

You will need to fill the packages directory. This can be done by
downloading the latest Unified Plone Installer (a whopper of a download FYI)
and manually copying them over or you can manually download the packages in
the list (packages.txt).

Let me know what fat you would like to see trimmed and or added and I will
do it. enhancement suggestions welcomed.

https://code.google.com/p/uc-unified-python-installer/

hg clone 
https://chris.st...@code.google.com/p/uc-unified-python-installer/uc-unified-python-installer



C.

-- 
Christopher Steel

Voice of Access


-- 
Christopher Steel

Voice of Access


Re: [web2py] routing question

2011-08-01 Thread Jonathan Lundell
On Aug 1, 2011, at 8:55 AM, agend wrote:

> hi, what do i have to do to make a request to this address :
> example.com/345 go to example.com/show_item/345 ???
> 
> i've already set up the default application and controller

Is show_item intended to be the default function? Are you using the parametric 
("new") router?

[web2py] routing question

2011-08-01 Thread agend
hi, what do i have to do to make a request to this address :
example.com/345 go to example.com/show_item/345 ???

i've already set up the default application and controller

Arek


[web2py] Shall we do a shameless self-promoting web2py awards?

2011-08-01 Thread weheh
Shall we do a shameless self-promoting award for best web2py apps of
the year? Drum up interest in web2py as well as for our respective
apps? It is very heartening to see so many great apps coming out of
the back offices after much toiling by the various authors.


[web2py] time to contribute with a big app: openMyWork

2011-08-01 Thread demetrio
Hi everyone!

I'm very proud to announce the project openMyWork based on the Web2py
framework.

openMyWork has been created for the Basque Government in Spain, and
it's gonna be the Basque Government's center of future liberations of
open source applications.

The source code available is a beta and there is a little
documentation missing (like an installation manual), we are developing
new features and the next release its gonna be something really big :)
(including documentation in English and Spanish). I hope to have a
website ready on the next month

And now, what is openMyWork?

openMyWork is a collaborative work environment, joining a set of
applications. Here goes a little resume of the apps.

   - openMyForge: a code forge, which can be installed in 2 versions
"lite" and "enterprise". " The "enterprise" version uses svn and a
webdav server, and it's pre-installation is a bit more complicated.
The version "lite" use a filemanager does not use the services of
webdav and svn.
   - openMyDesktop: its a personal web-desktop like the iGoogle
interface, but it can connect to a infinite number of openMyForge
installations to see and merge the data (tasks, bugs, incidences)
of all the projects that you are working in. And it can be extended to
merge data from other sites, like GoogleCode.
   - openMyCalendar: openMyCalendar is a calendar app, based on the
jquery library fullCalendar, and is integrated with and openMyDesktop
openMyForge.
   - CAS: its your cas application, but we added a mobile view for
login and logout.
   - Filemanager: only visible in the "lite" installation, and its the
web2py app called "filemanager" with no modifications.
   - Portal: its a web-frontend, its the web frontend that were used
in the december web2py app contest :)
   - openMyWork: actually its the web2py's admin app but modified to
only install and configure the other apps.

I'm going to talk a little more of the 2 larger applications of the
openMyWork project: openMyForge and openMyDesktop.

openMyForge, as i said before, is a code forge where you can make
private and public projects. It offers the next services:
  - Bugs
  - Incidences
  - Tasks
  - Roadmap
  - Calendars(the openMyCalendar app)
  - Webdav viewer (only in enterprise installation)
  - SVN viewer (only in the enterprise installation)
  - Filemanager (only in the lite installation)
  - ETR ("Editor en Tiempo Real" or "Real Time Editor" in english).
(This is an experimental feature, it is a real time editor like gobby,
and now its based in the google library: mobwrite but in the future we
want to make this with another library like nodeJS or something like
that).

It offers to extract info with the RESTful API (at first, we developed
one, but we moved to the one developed by Massimo)

openMyDesktop its a "merge center" of all the data from openMyForge.
You can visualice and merge the data from many projects in many
openMyForge instances (even a local instance of openMyForge). It
offers this services:
  - Tasks (that can merge with the ones in openMyForge)
  - Notes.

It has a mobile interface (at the moment "read only" features) with
jQueryMobile :)

In the future we want to make a more updates with a social aspect,
like integration with Facebook, chats, etc...

The apps are running here, so you can visit the public frontend of the
application:

http://forjas.infloss.com/ -the frontend-
http://forjas.infloss.com/forja -the openMyForge app with more
projects liberated by the Basque Gobernment-
http://forjas.infloss.com/escritorio -the openMyDesktop app but you
will need an user :( -

Manuals:
http://forjas.infloss.com/dav/openmywork/openmydesktop (user manual
but in spanish only)
http://forjas.infloss.com/dav/openmywork/openmyforge (lite-
installation: user manual but in english only)

In order to see the "private part" you will need an user but for the
moment the registration is closed (in the next relase we will open the
registration to everyone :D) but you can see how to administer the
forge application with the manual.

In the next release we are gonna to include this (and more ;D):
  - In the online version there are a lot of usability flaws and its
code is very old now, but we are working in a new interface (like
GQueues) for the layout of bugs, incidences, task and roadmap services
that it will make more usable. In fact, the GQueues interface is
available in the trunk version, and you can see some screenshots in
the forge-lite manual.
  - Registration open to everybody
  - Wiki
  - bug corrections.
  - Read and write from openMyDesktop to openMyForge.

We know that we are not offering you the 100% of the application now,
but we wanted to make it public, since the project was released in
January. And so we self-oblige us to have the all documentation in
English for you (and a better installations system) as soon as
possible ;)

For now I invite you to visit the public frontend of the application
and wait till the next release to do any type of instal

Re: [web2py] Powergrid documentation?

2011-08-01 Thread Bruno Rocha
I am writing some docs and solving some issues.

Thanks

http://zerp.ly/rochacbruno
Em 01/08/2011 11:28, "Johann Spies"  escreveu:
> I am trying out PowerGrid. As I could not find good documentation that
> explains how to use it, I was following the examples to try and figure out
> how to use it.
>
> So far I had no success at all after a little bit more than 2 hours of
> trying.
>
> It will help users like me with very little ajax/javascript background if
> there can be some tutorial on how to use this plugin - not only explaining
> how to set up a grid with specific options but also explaining what is
> actually happening there and why?
>
> I would appreciate more information on:
>
> 1. How to specify a query to be used by PowerGrid
> 2. Which parameters to supply - optional and compulsary
> 3. When to have specific callback-functions (like 'features' in the
> Demo-app) and what they should look like and how to use them.
> 4. The role of data.load in the examples.
>
> Maybe questions by slow ones like me will help others. :)
>
> Regards
>
> Johann
>
> --
> May grace and peace be yours in abundance through the full knowledge of
God
> and of Jesus our Lord! His divine power has given us everything we need
for
> life and godliness through the full knowledge of the one who called us by
> his own glory and excellence.
> 2 Pet. 1:2b,3a


[web2py] Powergrid documentation?

2011-08-01 Thread Johann Spies
I am trying out PowerGrid.  As I could not find good documentation that
explains how to use it, I was following the examples  to try and figure out
how to use it.

So far I had no success at all after a little bit more than 2 hours of
trying.

It will help users like me with very little ajax/javascript background if
there can be some tutorial on how to use this plugin - not only explaining
how to set up a grid with specific options  but also explaining what is
actually happening there and why?

I would appreciate more information on:

1. How to specify a query to be used by PowerGrid
2. Which parameters to supply - optional and compulsary
3. When to have specific callback-functions (like 'features' in the
Demo-app) and what they should look like and how to use them.
4. The role of data.load in the examples.

Maybe questions by slow ones like me will help others. :)

Regards

Johann

-- 
 May grace and peace be yours in abundance through the full knowledge of God
and of Jesus our Lord!  His divine power has given us everything we need for
life and godliness through the full knowledge of the one who called us by
his own glory and excellence.
2 Pet. 1:2b,3a


Re: [web2py] Re: layout with submenu

2011-08-01 Thread Richard Vézina
Show your code, it must be closing bracket or something... It is easy to
miss one out not closed when making sub-sub-menu, code get confusing
sometimes.

There is no other threads.

Richard

On Sat, Jul 30, 2011 at 6:08 AM, Casey Schroeder  wrote:

>
> Hi Richard, i ran into a similar problem with sub-sub-menus just today
> using a number of the available layouts in the layouts plugin - in
> fact all 4 that i downloaded.  It worked fine with the default layout,
> but with the other four the menu was not navigable.  I used firefox 5
> and the latest source download.  Is there an update to this thread you
> can share?  Thanks, Casey
>
> On Jun 6, 3:28 pm, Richard Vézina  wrote:
> > Do you have a example (screenshot) of the glitch... I don't see any
> problem
> > in the welcome app?
> >
> > Richard
> >
> > On Mon, Jun 6, 2011 at 4:15 PM, Manuele Pesenti
> > wrote:
> >
> >
> >
> >
> >
> >
> >
> > > thank you Richard but the problem is the css code that in most or quite
> all
> > > layouts does not defines proper classes to manage sub menu so if you
> use it
> > > you will obtain ugly effects... I'm not so skilled with css and I was
> > > looking for some layout that contains classes for submenu
> >
> > > Sorry if my quest was not so clear
> >
> > > cheers
> >
> > >Manuele
> >
> > > On 06/06/2011 16:51, Richard Vézina wrote:
> >
> > >> I am not sure to understand what you need, but you can nest you stuff
> > >> like this :
> >
> > >> response.menu = [
> > >>  [T('root1').capitalize(),
> > >>  False,
> > >> '',
> > >>  [
> > >>  [T('level1-1').capitalize(),
> > >>  False,
> > >>  URL(request.application,
> > >> 'controller',
> > >> 'function'),
> > >>  [
> > >>  [T('level2-1').capitalize(),
> > >>  False,
> > >>  URL(request.application,
> > >> 'controller',
> > >> 'function'),
> > >>  []],
> > >>  ]],
> > >>  [T('level1-2').capitalize(),
> > >>  False,
> > >>  URL(request.application,
> > >> 'controller',
> > >> 'function'),
> > >>  []],
> > >>  [T('level1-3').capitalize(),
> > >>  False,
> > >>  URL(request.application,
> > >> 'controller',
> > >> 'function'),
> > >>  []],
> > >>  ]],
> >
> > >>  [T('root2').capitalize(),
> > >>  False,
> > >> '',
> > >>  [
> > >>  [T('level1-1').capitalize(),
> > >>  False,
> > >>  URL(request.application,
> > >> 'controller',
> > >> 'function'),
> > >>  []],
> > >>  [T('level1-2').capitalize(),
> > >>  False,
> > >>  URL(request.application,
> > >> 'controller',
> > >> 'function'),
> > >>  []],
> > >>  ]],
> > >> ]
> >
> > >> Take care of proper indentation and open and closing your bracket
> > >> correctly.
> >
> > >> Richard
> >
> > >> On Mon, Jun 6, 2011 at 7:13 AM, Manuele Pesenti
> > >> mailto:manuele.pese...@gmail.com>> wrote:
> >
> > >>Hi *,
> > >>I realize that most of the layouts available for download do not
> > >>support the submenu, in the sense that it's not managed so if
> > >>defined it couses unwanted behavior... does anybody knows layouts
> > >>that implements submenu managment?
> >
> > >>thanks
> >
> > >>Manuele
>


Re: [web2py] Re: web2py 1.98.1 is OUT

2011-08-01 Thread Richard Vézina
Hello Massimo,

This issue is still there :
http://code.google.com/p/web2py/issues/detail?id=348

Thanks you anyway for the continuous improvement work.

I really appreciate and enjoy web2py.

Richard

On Sun, Jul 31, 2011 at 4:49 PM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:

> As often happens this is an error in running the tests, not in the
> tests, not in the actual code.
>
> On Jul 31, 10:14 am, Cliff Williams  wrote:
> > Not sure whether this is an issue..
> >
> > http://www.web2py.com/examples/static/nightly/tests.log :
> >
> > [: 44: ==: unexpected operator
> >
> /usr/lib/python2.5/site-packages/nose-1.0.0-py2.5.egg/nose/plugins/multipro
> cess.py:120:
> > RuntimeWarning: multiprocessing module is not available, multiprocess
> > plugin cannot be used
> >   "cannot be used", RuntimeWarning)
> > 
> > --
> > Ran 68 tests in 0.908s
> >
> > OK
> >
> > On Sun, Jul 31, 2011 at 7:46 AM, Massimo Di Pierro <
> >
> >
> >
> >
> >
> >
> >
> > massimo.dipie...@gmail.com> wrote:
> > > 1.98.1 changelog
> >
> > > fixed some problems with LOAD(ajax=False), thanks Anthony
> > > jquery 1.6.2
> > > gevent.pywsgi adds ssl support, thanks Vasile
> > > import/export of blobs are base64 encoded
> > > max number of login attempts in admin, thanks Ross
> > > fixed joins with alias tables
> > > new field.custom_delete attribute
> > > removed rescrtions on large 'text fields, thanks Martin
> > > field.represent = lambda value,record:  (record is optional)
> > > FORM.validate() and FORM.process(), thanks Bruno
> > > faster virtualfields, thanks Howsec
> > > mail has ssl support separate from tls, thanks Eric
> > > TAG objects are now pickable
> > > new CAT tag for no tags
> > > request.user_agent(), thanks Ross
> > > fixed fawps support
> > > SQLFORM(...,separator=': ') now customizable
> > > many small bug fixes
>


[web2py] Re: Legacy Tables: Can't Insert rows. Nothing back from db._lastsql

2011-08-01 Thread Anthony
First, if you're in the shell, you need to do db.commit() for your DB 
transactions to be committed (see 
http://web2py.com/book/default/chapter/06#commit-and-rollback). Also, if 
you're using the web-based shell via the 'admin' app, sometimes it doesn't 
work so well -- you might be better off using the regular Python shell 
starting from command line (see 
http://web2py.com/book/default/chapter/04#Command-Line-Options).
 
I'm not sure why it wasn't working from 'appadmin' (i.e., the Models 
database administration screen) -- what did you see there?
 
Anthony
 

On Monday, August 1, 2011 1:37:05 AM UTC-4, Andrew wrote:

> Hello, 
> I'm experimenting with using legacy tables, and I've created a test 
> table in MS SQL, inserted some rows(through SQLServer Studio), and I 
> can now see the rows in a very simple View. 
>
> I have tried to Insert rows into this table through the Models 
> database administration screen, as well as using the Controllers 
> shell.   db.web2pytest_leg.insert(LoadName='blah', DestinationName = 
> 'blah2', Description = 'blahblah') 
>
> This doesn't come back with any errors but doesn't insert anything 
> either.  There is no feedback on the shell that it did anything. 
> Another point, which may be a related symptom, is that when I then run 
> "print db._lastsql"   I just get the command echoed back to me and no 
> sql.  There are no errors in the log. 
>
>
> my db.py file includes: 
>
> db.define_table('web2pytest_leg', 
> Field('LoadName', 'string'), 
> Field('DestinationName', 'string'), 
> Field('Description', 'string'), 
> primarykey=['LoadName'], 
> migrate=False 
> ) 
> I've also tried running with fake_migrate=True for a while too. 
>
> Any ideas please.   I've browsed through the forum for a while but I 
> can't see this issue.   Thanks.



[web2py] Re: Requesting Feedback for Web2py Instant Admin

2011-08-01 Thread Anthony
Looks very promising, but I cannot log into the demo (I've tried all the 
provided demo logins, but they all result in "Invalid login").

On Monday, August 1, 2011 2:09:23 AM UTC-4, Ramana wrote:

> Dear Web2py users, 
>
> I just launched the beta version of Web2py Instant 
> Admin, 
> a (supposedly) django-like admin interface for Web2py applications. The 
> demo  is here, documentation is 
> here and 
> source code is here . 
> Since this is my first Web2py project, I don't know how good/bad the quality 
> is. Your feedback will be very valuable for me. Thanks for your time.  
>
> Thanks & Regards,
> Ramana.
>


Re: [web2py] Re: proper way to define a user table

2011-08-01 Thread Anthony
On Monday, August 1, 2011 6:23:03 AM UTC-4, Ramos wrote: 
>
> this way works
>
> auth.settings.extra_fields['auth_user'] = [Field('Skype')]
>
 
Yes, this will create auth.settings.extra_fields['auth_user']. Once created, 
you should be able to add additional fields via append().
 
Anthony
 


[web2py] web2py instant admin

2011-08-01 Thread contatogilson...@gmail.com
Hello guys,

Some should now be aware, but I took the liberty to disclose this great
plugin made ​​for web2py. It's instant web2py admin [2], which is a module for
managing your application in web2py. He was a Sramana developers [1]. It's
worth a look. It's pretty good!

[1] - http://sramana.in/
[2] - http://sramana.in/web2py-instant-admin/
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*


Re: [web2py] Check out my new web2py website

2011-08-01 Thread Furqan Rauf
looks neat :)

On Mon, Aug 1, 2011 at 7:06 AM, weheh  wrote:

> I want to keep this low profile for now because there is still much to
> do. But if anyone is interested in trying my beta web2py website,
> please go ahead. It's at http://beta.yakitome.com. Don't expect it to
> be super stable nor have all features available, but the basics are
> there. So far, it only handles .txt file uploads and the Mel voice is
> not installed. I do not guarantee that I will be keeping your data
> during the beta period. The legacy version at http://www.yakitome.com
> is for that. It will be supported in parallel until the new site is
> solid. Feedback on the new site will be appreciated. Use the contact
> form. Thanks.




-- 
*-Furqan Rauf*
*Do you love your creator? Love your fellow-beings first. -Prophet Muhammad
*
*http://www.amway.com/furqanrauf*


[web2py] Check out my new web2py website

2011-08-01 Thread weheh
I want to keep this low profile for now because there is still much to
do. But if anyone is interested in trying my beta web2py website,
please go ahead. It's at http://beta.yakitome.com. Don't expect it to
be super stable nor have all features available, but the basics are
there. So far, it only handles .txt file uploads and the Mel voice is
not installed. I do not guarantee that I will be keeping your data
during the beta period. The legacy version at http://www.yakitome.com
is for that. It will be supported in parallel until the new site is
solid. Feedback on the new site will be appreciated. Use the contact
form. Thanks.


[web2py] Problem installing web2py as a service

2011-08-01 Thread guruyaya
WinXP, web2py 1.98.1 (latest stable) for windows.

C:\uniart4\uniart4\www>web2py.exe -W install
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2011
Version 1.98.1 (2011-07-31 10:15:50)
Database drivers available: SQLite3, pymysql
Starting hardcron...
Installing service web2py
Service installed

C:\uniart4\uniart4\www>web2py.exe -W start
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2011
Version 1.98.1 (2011-07-31 10:15:50)
Database drivers available: SQLite3, pymysql
Starting hardcron...
Starting service web2py
Error starting service: The service did not respond to the start or
control request in a timely fashion.

The service does appear in the list of installed applications. I've
tried installing web2py.py, it didn't work, or throw an error of any
sort

I've tried running '"C:\uniart4\uniart4\www\web2py.exe" options' (the
lines I saw in the services.msc). It gave me the gui screen to choose
port and password and so on. When I tried "C:\uniart4\uniart4\www
\web2py.exe" -L options (from web2py folder), it worked as expected.
I'd try changing the service params - but I have no idea how.

That's what I can say about this problem. Is it a bug? Is it me not
knowing what I'm doing (I'm a linux person trapped on a windows
computer :( )?

Thanks in advance
Yaya


[web2py] Re: Login form's "remember for 30 days" not working

2011-08-01 Thread Massimo Di Pierro
No objection but can you please email me the new file as an
attachment?

On Aug 1, 5:26 am, Iceberg  wrote:
> Hi Massimo,
>
> This problem exists for quite some time, today I trace it to these old
> source.
>
> [1] The 
> diagnosis.http://groups.google.com/group/web2py/browse_thread/thread/bb9f92e255...
>
> [2] The 
> fix.http://groups.google.com/group/web2py/browse_thread/thread/b9ad5c501d...
>
> Would you please take the above fix? Thanks.
>
> Regards,
> Ray (a.k.a. Iceberg)


[web2py] Login form's "remember for 30 days" not working

2011-08-01 Thread Iceberg
Hi Massimo,

This problem exists for quite some time, today I trace it to these old
source.

[1] The diagnosis. 
http://groups.google.com/group/web2py/browse_thread/thread/bb9f92e255323a94

[2] The fix. 
http://groups.google.com/group/web2py/browse_thread/thread/b9ad5c501df50be6

Would you please take the above fix? Thanks.

Regards,
Ray (a.k.a. Iceberg)


Re: [web2py] Re: proper way to define a user table

2011-08-01 Thread António Ramos
this way works

auth.settings.extra_fields['auth_user'] = [Field('Skype')]



Em 1 de agosto de 2011 10:46, António Ramos  escreveu:

> i tried but got this error
>
>
> File "gluon/restricted.py", line 192, in restricted
> File "D:/web2py10/web2py/applications/Vendas/models/db.py", line 55, in
> 
> KeyError: 'auth_user'
>
> the line 55 is
> *auth.settings.extra_fields['auth_user'].append(Field('Skype')) *
>
>
> 2011/7/30 pbreit 
>
>> auth.settings.extra_fields['auth_user'].append(Field('country'))
>
>
>


Re: [web2py] Re: Requesting Feedback for Web2py Instant Admin

2011-08-01 Thread thakor yogesh
pls

  after some time dont sent any mail to my e-mail.


Re: [web2py] Re: block users from appadmin

2011-08-01 Thread António Ramos
Got it.
Thank you

2011/8/1 Massimo Di Pierro 

> Which you suer you are logged in as is irrelevant. appadmin ignores
> the app users and permissions. appadmin grants you access if you are
> the administrator (i.e. if you loggin into the admin app) and the
> admin app has only one user.
>
>
> On Aug 1, 4:39 am, António Ramos  wrote:
> > hello, i just created the second user in an app.
> >
> > With the login of this user i can go to appadmin
> >
> > How to prevent this?
> >
> > thank you
> >
> > António
>


[web2py] Re: block users from appadmin

2011-08-01 Thread Massimo Di Pierro
Which you suer you are logged in as is irrelevant. appadmin ignores
the app users and permissions. appadmin grants you access if you are
the administrator (i.e. if you loggin into the admin app) and the
admin app has only one user.


On Aug 1, 4:39 am, António Ramos  wrote:
> hello, i just created the second user in an app.
>
> With the login of this user i can go to appadmin
>
> How to prevent this?
>
> thank you
>
> António


Re: [web2py] Re: Requesting Feedback for Web2py Instant Admin

2011-08-01 Thread Martín Mulone
superb. Ramana, silently, you made a great job, also with docs!. Congrats!.

2011/8/1 Massimo Di Pierro 

> Hope you do not mind ;-)
>
> http://www.reddit.com/r/Python/comments/j5jhw/new_web2py_admin_plugin/
>
>
> On Aug 1, 1:09 am, Ramana  wrote:
> > Dear Web2py users,
> >
> > I just launched the beta version of Web2py Instant
> > Admin,
> > a (supposedly) django-like admin interface for Web2py applications.
> > The demois here, documentation is
> > here  and source code
> is
> > here . Since this is my
> > first Web2py project, I don't know how good/bad the quality is. Your
> > feedback will be very valuable for me. Thanks for your time.
> >
> > Thanks & Regards,
> > Ramana.
>



-- 
 http://martin.tecnodoc.com.ar


Re: [web2py] Re: proper way to define a user table

2011-08-01 Thread António Ramos
i tried but got this error


File "gluon/restricted.py", line 192, in restricted
File "D:/web2py10/web2py/applications/Vendas/models/db.py", line 55, in

KeyError: 'auth_user'

the line 55 is
*auth.settings.extra_fields['auth_user'].append(Field('Skype')) *


2011/7/30 pbreit 

> auth.settings.extra_fields['auth_user'].append(Field('country'))


[web2py] block users from appadmin

2011-08-01 Thread António Ramos
hello, i just created the second user in an app.

With the login of this user i can go to appadmin


How to prevent this?


thank you

António


[web2py] Re: Requesting Feedback for Web2py Instant Admin

2011-08-01 Thread Massimo Di Pierro
Hope you do not mind ;-)

http://www.reddit.com/r/Python/comments/j5jhw/new_web2py_admin_plugin/


On Aug 1, 1:09 am, Ramana  wrote:
> Dear Web2py users,
>
> I just launched the beta version of Web2py Instant
> Admin,
> a (supposedly) django-like admin interface for Web2py applications.
> The demois here, documentation is
> here  and source code is
> here . Since this is my
> first Web2py project, I don't know how good/bad the quality is. Your
> feedback will be very valuable for me. Thanks for your time.
>
> Thanks & Regards,
> Ramana.


[web2py] Re: Requesting Feedback for Web2py Instant Admin

2011-08-01 Thread Massimo Di Pierro
A proposal

1) we change

auth.requires_permission() with auth.requires(is_admin or
has_permission(...))

2) we move  everything that is not under */plugin_instant_admin under
plugins/plugin_instant_admin

3) we rename instant_admin into iadmin

4) we include it into welcome app

5) we expose iadmin and old appadmin, default to iadmin, allow
administrator to switch back to old appadmin (using session to keep
state)?

I would take a patch in this direction but I would like to hear more
opinions.
It would be great if the the edit for and the pagination table where
to expose as components to be embedded in regular pages.

Massimo

On Aug 1, 1:09 am, Ramana  wrote:
> Dear Web2py users,
>
> I just launched the beta version of Web2py Instant
> Admin,
> a (supposedly) django-like admin interface for Web2py applications.
> The demois here, documentation is
> here  and source code is
> here . Since this is my
> first Web2py project, I don't know how good/bad the quality is. Your
> feedback will be very valuable for me. Thanks for your time.
>
> Thanks & Regards,
> Ramana.


[web2py] Re: Requesting Feedback for Web2py Instant Admin

2011-08-01 Thread weheh
Ramana, looks really really nice. Congrats!

On Aug 1, 2:09 am, Ramana  wrote:
> Dear Web2py users,
>
> I just launched the beta version of Web2py Instant
> Admin,
> a (supposedly) django-like admin interface for Web2py applications.
> The demois here, documentation is
> here  and source code is
> here . Since this is my
> first Web2py project, I don't know how good/bad the quality is. Your
> feedback will be very valuable for me. Thanks for your time.
>
> Thanks & Regards,
> Ramana.


[web2py] Re: upgrading from 1.95.1 to 1.96.1 breaks cross app authentication

2011-08-01 Thread Massimo Di Pierro
Please open a ticket about this.

On Jul 22, 2:25 am, Heng Zeng Aun  wrote:
> Good day Massimo,
>
> the following are the snippets:
>
>  AppAuth/models/db.py 
> db = DAL('sqlite://storage.sqlite')
> session.connect(request, response, db)
> auth = Auth(globals(), db)
> crud = Crud(globals(), db)
> auth.settings.hmac_key = 'sha512:'
> auth.define_tables(username=True)
> crud.settings.auth = auth
>
>  AppA/models/db.py 
> db = DAL('sqlite://../../appauth/storage.sqlite') # <-- yes, point to the db
> file in AppAuth
> session.connect(request, response, db, masterapp='appauth')
> auth = Auth(globals(), db)
> auth.define_tables(migrate=False, username=True)
> auth.settings.login_url = '/appauth/default/user/login'
>
>  AppA/controllers/default.py 
> @auth.requires_login()
> def index():
>     response.view='index.html'
>     return dict()
>
> @auth.requires_permission('sayhello')
> def hello():
>     response.view='saysomething.html'
>     return dict(message=T("hello"))
>
> The behavior of this in 1.96.1 (and 1.97.1) is that I will be able to login
> and view the page provided in AppAuth, but when browse to AppA or AppB, it
> will not be able to access it because auth says its not loggin. However all
> this works in 1.95.1
>
> If i go into web2py.gluon.tools.Auth and hack "current" to "current =
> Storage(globals())" like it used to be in 1.95.1, and things works again.
>
> I'm sure forcing "current" from threading.local() to something else
> definitely is not the correct way of doing this (as i dont know what is the
> intention of the "current" is using for as well : ).
>
> Awaits your input, Many Thanks Massimo.
>
> best,
> Zeng
>
> On Thu, Jul 21, 2011 at 8:44 PM, Massimo Di Pierro <
>
>
>
>
>
>
>
> massimo.dipie...@gmail.com> wrote:
> > This change should not break it. Can you please show us the code that
> > breaks and we will check what is going on? It is possible that one of
> > the auth modules has not been patched correctly.
>
> > Massimo
>
> > On Jul 21, 11:02 am, zeng  wrote:
> > > Hey guys,
>
> > > I'm currently running version 1.95.1 and have 3 application,
> > > "AppAuth", "AppA", "AppB", AppA and AppB is using "AppAuth" to
> > > authenticate logged in user and it has been working great.
>
> > > After upgrading 1.96.1 and cross app authentication no longer works,
> > > some debuging lead to:
> > > - web2py.gluon.tools.Auth 
> > > self.environment = current
> > > request = current.request
> > > session = current.session
> > > - web2py.gluon.tools.Auth 
>
> > > and "current" is a threading.local() in gluon.globals.py !!!
>
> > > In the good'o 1.95.1 the session and auth object is retrieved from
> > > global() ,
>
> > > Question is, why is this changed? this seems to break the backward
> > > compatibility "feature" of web2py, and what are the recommended
> > > solutions now that global() is no longer used?
>
> > > Thanks!


[web2py] Re: upgrading from 1.95.1 to 1.96.1 breaks cross app authentication

2011-08-01 Thread zeng
Hi Guys, Some info update, I've just tried with the latest release
1.98.1 and the problem still persists.

best,
Zeng

On Jul 22, 10:25 am, Heng Zeng Aun  wrote:
> Good day Massimo,
>
> the following are the snippets:
>
>  AppAuth/models/db.py 
> db = DAL('sqlite://storage.sqlite')
> session.connect(request, response, db)
> auth = Auth(globals(), db)
> crud = Crud(globals(), db)
> auth.settings.hmac_key = 'sha512:'
> auth.define_tables(username=True)
> crud.settings.auth = auth
>
>  AppA/models/db.py 
> db = DAL('sqlite://../../appauth/storage.sqlite') # <-- yes, point to the db
> file in AppAuth
> session.connect(request, response, db, masterapp='appauth')
> auth = Auth(globals(), db)
> auth.define_tables(migrate=False, username=True)
> auth.settings.login_url = '/appauth/default/user/login'
>
>  AppA/controllers/default.py 
> @auth.requires_login()
> def index():
>     response.view='index.html'
>     return dict()
>
> @auth.requires_permission('sayhello')
> def hello():
>     response.view='saysomething.html'
>     return dict(message=T("hello"))
>
> The behavior of this in 1.96.1 (and 1.97.1) is that I will be able to login
> and view the page provided in AppAuth, but when browse to AppA or AppB, it
> will not be able to access it because auth says its not loggin. However all
> this works in 1.95.1
>
> If i go into web2py.gluon.tools.Auth and hack "current" to "current =
> Storage(globals())" like it used to be in 1.95.1, and things works again.
>
> I'm sure forcing "current" from threading.local() to something else
> definitely is not the correct way of doing this (as i dont know what is the
> intention of the "current" is using for as well : ).
>
> Awaits your input, Many Thanks Massimo.
>
> best,
> Zeng
>
> On Thu, Jul 21, 2011 at 8:44 PM, Massimo Di Pierro <
>
>
>
>
>
>
>
> massimo.dipie...@gmail.com> wrote:
> > This change should not break it. Can you please show us the code that
> > breaks and we will check what is going on? It is possible that one of
> > the auth modules has not been patched correctly.
>
> > Massimo
>
> > On Jul 21, 11:02 am, zeng  wrote:
> > > Hey guys,
>
> > > I'm currently running version 1.95.1 and have 3 application,
> > > "AppAuth", "AppA", "AppB", AppA and AppB is using "AppAuth" to
> > > authenticate logged in user and it has been working great.
>
> > > After upgrading 1.96.1 and cross app authentication no longer works,
> > > some debuging lead to:
> > > - web2py.gluon.tools.Auth 
> > > self.environment = current
> > > request = current.request
> > > session = current.session
> > > - web2py.gluon.tools.Auth 
>
> > > and "current" is a threading.local() in gluon.globals.py !!!
>
> > > In the good'o 1.95.1 the session and auth object is retrieved from
> > > global() ,
>
> > > Question is, why is this changed? this seems to break the backward
> > > compatibility "feature" of web2py, and what are the recommended
> > > solutions now that global() is no longer used?
>
> > > Thanks!


[web2py] Re: Requesting Feedback for Web2py Instant Admin

2011-08-01 Thread Massimo Di Pierro
This is fantastic! I also see it is already packaged as a plugin.

I only took a quick look at the source code. It is well written. I
noticed you use the has_permission decorator everywhere therefore this
is more suitable to be an admin to be exposed to users than an admin
for the administrator. We could make some minor changes in those
requirements and give all permissions to user logged in as "admin" and
use this code to replace appadmin:

I see some pros and some significative differences (not really any
cons):

Pros:
- looks better
- can be exposed to users with permissions

Differences:
- current appadmin allows arbitrary queries, we would have to add that
option for the administrator
- current appadmin allows export/import in csv
- current appadmin inherits layout from the app, this one does not
- it would make the welcome app heavier (how much?)

I think everybody should try this and we should discuss it.

Congratulations Ramana!

Massimo








On Aug 1, 1:09 am, Ramana  wrote:
> Dear Web2py users,
>
> I just launched the beta version of Web2py Instant
> Admin,
> a (supposedly) django-like admin interface for Web2py applications.
> The demois here, documentation is
> here  and source code is
> here . Since this is my
> first Web2py project, I don't know how good/bad the quality is. Your
> feedback will be very valuable for me. Thanks for your time.
>
> Thanks & Regards,
> Ramana.


[web2py] Re: streamer vs stream_file_or_304_or_206

2011-08-01 Thread Massimo Di Pierro
Yes this is correct but you still need to set

response.headers['Content-Type']=''

manually.

On Aug 1, 12:22 am, Charles Law  wrote:
> I've noticed that when I stream() files using the streamer I get
> content type warnings in chrome:
>   Resource interpreted as Document but transferred with MIME type
> image/png.
> But the static directory, which uses stream_file_or_304_or_206() does
> not have this issue.
>
> Should the streamer be returning HTTP status codes?  Should I be doing
> this?  Could this be why chrome has an issue?  My controller code
> currently looks like this:
>   return response.stream(open(path,'rb'),chunk_size=64*1024)
>
> Thanks,
> Charles


[web2py] Re: jqgrid widget with no table source

2011-08-01 Thread xenebros
Thank you very much, Bruno, I already knew PowerGrid,
however jQgrid is a project requirement, so...
Regards.


On 28 jul, 15:37, Bruno Rocha  wrote:
> I dont know about jQgrid, but in PowerGrid[1] you can pass any callback
> function which returns JSON.
>
> http://labs.blouweb.com/PowerGrid
>
> On Thu, Jul 28, 2011 at 4:27 AM, xenebros  wrote:
> > Dear friends,
>
> > I would like to know if is possible to use the jqgrid widget with a
> > data source that wouldn't be a table or a set of tables. I would like
> > to know if I could use it with a json webservice, for example.
>
> > I know its possible to use the Javascript version of the control with
> > such type of source but ¿is it also possible with Massimos's widget?
> > looking into plugin_wiki code, I suppose that's not, but may be there
> > someone around more inspired than me.
>
> > Thanks in advance.
>
> --
>
> --
> Bruno Rocha
> [ About me:http://zerp.ly/rochacbruno]
> [ Aprenda a programar:http://CursoDePython.com.br]
> [ O seu aliado nos cuidados com os animais:http://AnimalSystem.com.br]
> [ Consultoria em desenvolvimento web:http://www.blouweb.com]


[web2py] Re: Ubuntu pip install web2py in virtualenv

2011-08-01 Thread flebber


On Jul 29, 11:17 am, flebber  wrote:
> On Jul 27, 11:45 pm, Johann Spies  wrote:
>
>
>
>
>
>
>
>
>
> > On 27 July 2011 14:08, flebber  wrote:
>
> > > I installed web2py into a virtualenv in my ubuntu install. When
> > > reading the book it states to start web2py with "python web2py.py -S
> > > welcome" however I don't appear to have web2py in my directory.
>
> > Are you referring to web2py or web2py.py in that directory?
>
> > > directory being  /home/sayth/.virtualenvs/learnWeb2py/bin
>
> > > the most likely candidate is runweb2py Is that what I should be using?
>
> > python web2py.py -S welcome
>
> > should work if you run it in the directory where web2py was installed.
> > There should be a file named web2py.py.
>
> > Regards
> > Johann
>
> > --
> >  May grace and peace be yours in abundance through the full knowledge of God
> > and of Jesus our Lord!  His divine power has given us everything we need for
> > life and godliness through the full knowledge of the one who called us by
> > his own glory and excellence.
> >                                                     2 Pet. 1:2b,3a
>
> I can see from the install from pip that web2py.py isn't installed.
>
> (learn272)sayth@sayth-TravelMate-5740G:~$ pip install web2py
> Downloading/unpacking web2py
>   Downloading web2py-1.96.4.tar.gz (4.7Mb): 4.7Mb downloaded
>   Running setup.py egg_info for package web2py
>
> Installing collected packages: web2py
>   Running setup.py install for web2py
>     changing mode of build/scripts-2.7/mkweb2pyenv from 644 to 755
>     changing mode of build/scripts-2.7/runweb2py from 644 to 755
>
>     changing mode of /home/sayth/.virtualenvs/learn272/bin/mkweb2pyenv
> to 755
>     changing mode of /home/sayth/.virtualenvs/learn272/bin/runweb2py
> to 755
> Successfully installed web2py
> Cleaning up...
> (learn272)sayth@sayth-TravelMate-5740G:~$

Guess the motto is shouldn't install web2py via pip .

Sayth


[web2py] Re: response streaming html with images

2011-08-01 Thread Hege



Those output files are short living objects with tmp names and tmp
dir. Too short living,  to put them to Static. Transformation to html
is specific as there could be more  output files and as far as I
understand, missing images will be requested by browser. So, I will
just alter html to point to specific controler, which will just serve
those files from fixed, yet temporary place.



Thanx for help.