[web2py] New layout.html makes unable to use appadmin without auth

2010-07-25 Thread ciastek
Disabling auth in application breaks appadmin.
layout.html assumes, that auth is defined:
--- layout.html { ---
  
{{=response.flash or ''}}

  {{#-- Layout 3 from http://www.ez-css.org/layouts --}}
  

 
{{=auth.navbar(action=URL(request.application,'default','user'))}}
<-- line to blame!
 
{{=response.title or 'response.title'}}
  
  
{{=response.subtitle or 'response.subtitle'}}
  

--- } layout.html ---

Cheers!
-- Sebastian


[web2py] Re: inserting attributes into form.custom.begin

2010-07-26 Thread ciastek
Is it desired behaviour?
-- Sebastian

On 6 Lip, 20:55, "mr.freeze"  wrote:
> It looks like the custom components are only built in the init of
> SQLFORM so you will have to pass it in the constructor:>>>form= 
> SQLFORM(db.things, _class='small')
> >>>form.custom.begin.xml()
>
> ' method="post">'
>
> On Jul 6, 12:55 pm, rāma  wrote:
>
>
>
> >form['_class']='small'
> > Doesn't work with custom forms. :-(
>
> > On Jul 7, 1:07 am, "mr.freeze"  wrote:
>
> > > That doesn't work for me in the console. What am I doing wrong?:
>
> > > >>>form= SQLFORM(db.things)
> > > >>>form['_class'] = 'small'
> > > >>>form.custom.begin.xml()
>
> > > ''
>
> > > On Jul 6, 11:14 am, mdipierro  wrote:
>
> > > >form['_class']='small'
>
> > > > On 6 Lug, 09:33, rāma  wrote:
>
> > > > > How do I insert attributes ie _class="small" into a customformtag.
> > > > > Should look like below at the end of the day.
> > > > > ' > > > >class="small">'
>
> > > > > I didn't find any attribute function inform.custom.begin to insert
> > > > > the above.


[web2py] How can I change language of admin interface?

2010-03-05 Thread ciastek
How can I change language of admin interface without changing prefered
language in browser options?
-- ciastek

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.



[web2py] Re: googling web2py

2010-03-28 Thread ciastek
Poland - 109000

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.



[web2py] Re: how to troubleshoot admin errors?

2010-03-29 Thread ciastek
I've had the same problem ("unable to create application") on Ubuntu
JeOS 8.04.3 configured as shown at http://vimeo.com/10377947 [
web2py production deployment on vps.net (VIDEO) by mdipierro].
Ubuntu fully upgraded, web2py installed using setup-web2py-ubuntu.sh
script.
Running web2py from console once, resolved the problem.
IMHO the source of problem is absence of web2py/deposit and web2py/
site-packages directories.
mdipierro - web2py rox! :)
-- ciastek

On Mar 22, 4:01 am, KMax  wrote:
> Hello
>   My web2py instalation (1.73 and newer) was affected by the same
> issue.
>   Running on debian by wsgi apache2. Installed by unzipping
> web2py_src.zip in to fresh folder and coping parameters_443.py.
>   Creation of newapplicationgive an error flash "unabletocreateapplication."
>
>   Workaround was found accidently.
>   Starting web2py.by at console ( typing pass and quit ) solve issue
> at apache.
>
> Thank you.
> On 3 ÍÁÒ, 00:13, snfctech  wrote:
>
> > Fedora10 web2py1.76.1 apache2/mod_wsgi
>
> > I thought all errors generated tickets? šWhen I try tocreatean app
> > via the admin over HTTPS on a LAN all I get is an error flash "unable
> > tocreateapplication." šIt's not an apache permission issue because
> > it does the same thing if all my files and dirs have 777 permissions.
> > I don't get any apache errors in the error log and the only funny
> > thing I get in the access log is a 303 code from the POST request to
> > admin/default/site. šSomething must not be working out with
> > gluon.admin.app_create.
>
> > How should I troubleshoot this type of error, or does anybody have an
> > idea what's going on?
>
> > I'm going to start dissecting the app_create function - but my python
> > skills are still pretty weak and I was hoping there would just be a
> > good error log somewhere...
>
> > Thanks in advance for any tips.

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.



[web2py] Re: how to troubleshoot admin errors?

2010-03-30 Thread ciastek
Yarko, thanks for detailed description, but it's not a problem.

If there were no parameters_xxx.py file, I could not log in admin
interface. The problem is, that I can log in, but admin is unable to
create new application.

At the end of setup-web2py-ubuntu.sh file we can find:
cd /home/www-data/web2py
sudo -u www-data python -c "from gluon.main import save_password;
save_password(raw_input('admin passw
ord: '),443)"
This line asks for password and writes it in parameters_443.py file.

Running ./web2py creates: deposit/, site-package/, parameters_8000.py
and welcome.w2p
(BTW: As you can see default port is 8000)

Looks like as long as you don't run ./web2py, admin can't find
welcome.w2p to scaffold.

On Mar 29, 5:27 pm, Yarko Tymciurak 
wrote:
> On Mar 29, 9:27 am, ciastek  wrote:
>
> > I've had the same problem ("unable to create application") on Ubuntu
> > JeOS 8.04.3 configured as shown athttp://vimeo.com/10377947[
> > web2py production deployment on vps.net (VIDEO) by mdipierro].
> > Ubuntu fully upgraded, web2py installed using setup-web2py-ubuntu.sh
> > script.
> > Running web2py from console once, resolved the problem.
>
> Just to be sure there is not mystery / this is clear:
>
> When you start web2py from the console with no arguments, you are
> asked to config various things (port, admin password);
> You can also do this from the command line (in which case, no config-
> gui comes up prior to starting the built-in server).
>
> When you run from other than the built-in server, there is no setup:
> the port and admin password must exist _somewhere_!
>
> The way you create this information is to run from the console "once"
> - because what this does is create a file:
> parameters_{port_number}.py, which is then used at startup.
>
> So (for example):
>
>     $ python web2py.py -a 'hello'
>
> will create  parameters_80.py   (the default port is 80).
>
> You can edit, or copy this file - if you want to use the same
> password, but on port 432, just copy this file (for example) to:
> parameters_432.py
>
> In any case, the parameters file is used to supply "command-line"
> parameters when not running from the command line.
>
> Hope this takes the mystery out of it.
>
> Regards,
> Yarko
>
> > IMHO the source of problem is absence of web2py/deposit and web2py/
> > site-packages directories.
> > mdipierro - web2py rox! :)
> > -- ciastek
>
> > On Mar 22, 4:01 am, KMax  wrote:
>
> > > Hello
> > >   My web2py instalation (1.73 and newer) was affected by the same
> > > issue.
> > >   Running on debian by wsgi apache2. Installed by unzipping
> > > web2py_src.zip in to fresh folder and coping parameters_443.py.
> > >   Creation of newapplicationgive an error flash 
> > > "unabletocreateapplication."
>
> > >   Workaround was found accidently.
> > >   Starting web2py.by at console ( typing pass and quit ) solve issue
> > > at apache.
>
> > > Thank you.
> > > On 3 ÍÁÒ, 00:13, snfctech  wrote:
>
> > > > Fedora10 web2py1.76.1 apache2/mod_wsgi
>
> > > > I thought all errors generated tickets? šWhen I try tocreatean app
> > > > via the admin over HTTPS on a LAN all I get is an error flash "unable
> > > > tocreateapplication." šIt's not an apache permission issue because
> > > > it does the same thing if all my files and dirs have 777 permissions.
> > > > I don't get any apache errors in the error log and the only funny
> > > > thing I get in the access log is a 303 code from the POST request to
> > > > admin/default/site. šSomething must not be working out with
> > > > gluon.admin.app_create.
>
> > > > How should I troubleshoot this type of error, or does anybody have an
> > > > idea what's going on?
>
> > > > I'm going to start dissecting the app_create function - but my python
> > > > skills are still pretty weak and I was hoping there would just be a
> > > > good error log somewhere...
>
> > > > Thanks in advance for any tips.

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.



[web2py] Re: problems using web2py ajax function

2010-04-03 Thread ciastek
Thank you Russell, your suggestion works great.
I use hello!

On Mar 29, 3:46 am, mdipierro  wrote:
> I think you can. I have not tried it. Mind that you have to ecape the
> args.
>
> On Mar 28, 7:56 pm, Russell  wrote:
>
> > Is there a reason not to simply place the constant in the args?
> >ajax('show_month/3',[],'test')
>
> > or if you want to be explicit...
> >ajax('show_month?month_to_show=3',[],'test')
>
> > On Mar 29, 4:24 am, mdipierro  wrote:
>
> > > Normally if I want to pass a constant, I put it in a hidden field and
> > > then pass the name of the hidden field.
>
> > > On Mar 28, 10:14 am, salbefe  wrote:
>
> > > > Thanks,
>
> > > > Now is clear to me.

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.



[web2py] Re: web2py production deployment on vps.net (VIDEO)

2010-04-05 Thread ciastek
Christopher, just run web2py.py once after running setup-web2py-
ubuntu.sh
Details: 
http://groups.google.com/group/web2py/browse_thread/thread/20e724c51c4dca55/7a6bc911316dd23a


On Apr 3, 11:28 am, Christopher Steel  wrote:
> With 8.04 64 I am unable to create new applications via the web2py
> interface, get the message "unable to create application"

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.



[web2py] Re: Web2Py Database Web Interface

2010-04-08 Thread ciastek
On Apr 7, 8:27 pm, cesmiga  wrote:
> At one time I thought I saw a project available for a Web2Py Database
> Web Interface.  Does anyone know if one exists?
This one? http://gaesql.appspot.com/
Found in Book, 6.4 (http://web2py.com/book/default/section/6/4)

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.



[web2py] Re: Presentation of web2py

2010-04-16 Thread ciastek
Text extracted - 
http://docs.google.com/document/pub?id=1Xg1r8kxfmgo4vC3mSKW_OX-WKTHAWFkt3fJO25pdATg
Is it OK?

On Apr 14, 5:44 pm, mdipierro  wrote:
> That document needs to be updated. The problem is I lost the source.
> If anybody would like to take the time to extract the text from the
> PDF we could work on it and update it.
>
> On Apr 14, 10:01 am, Thadeus Burgess  wrote:
>
> > There is a PDF with web2py vs some other frameworks, this might help
> > you in figuring out key elements to compare.
>
> >http://www.scribd.com/doc/12288297/Web2py-vs-Others
>
> > There is always the speed factor, every ASP site I visit
> > usually takes 15 to 45 seconds to load one page.
>
> > --
> > Thadeus
>
> > On Wed, Apr 14, 2010 at 9:43 AM, Jose  wrote:
> > > Hi,
>
> > > For a presentation of web2py talk I've suggested them to include a
> > > comparison with other technologies and highlight the  advantages over
> > > technologies such as asp.net. and PHP.
>
> > > Please could you help me with this.
>
> > > Thanks
>
> > > Jose
>
> > > --
> > > To unsubscribe, reply using "remove me" as the subject.