[web2py:35368] Re: django's spaceless analog?

2009-11-14 Thread akonsu
do you know if apache can be made to do it? doing this from every controller is not elegant. On Nov 14, 11:04 pm, mdipierro wrote: > yes. sorry for the typo. > > On Nov 14, 9:55 pm, akonsu wrote: > > > thanks. > > > did you mean > > > def index():

[web2py:35365] Re: django's spaceless analog?

2009-11-14 Thread akonsu
return re.compile('\s+').sub(' ',render.response > ('default.index.html',**dict())) > > It will mess up text in > > On Nov 14, 2:05 pm, akonsu wrote: > > > hello, is there a way to remove whitespaces fr

[web2py:35352] django's spaceless analog?

2009-11-14 Thread akonsu
hello, is there a way to remove whitespaces from generated xhtml output in a manner similar to django's spaceless tag? thanks konstantin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to

[web2py:34208] Re: how to generate absolute url ?

2009-10-30 Thread akonsu
rry. I misunderstood. > > create a file web2py/routes.py and in it write > > routes_out=[('/admin/(?P.*)','https://hostname/admin/\g')] > > where hostname is your hostname or ip address and port. > > On Oct 29, 11:46 pm, akonsu wrote: > > > Ma

[web2py:34148] Re: how to generate absolute url ?

2009-10-29 Thread akonsu
Massimo, thanks for taking time to explain. my question is not about running admin over https or http and how web2py detects this, or how to connect to admin using ssh. i was just wondering how to emit the correct url. right now the default hello world app emits relative url for the admin and th

[web2py:34142] Re: how to generate absolute url ?

2009-10-29 Thread akonsu
On Oct 29, 11:41 pm, mdipierro wrote: > Yes you can. read the routes.examples.py file. > thanks, you are saying that rather than emitting the absolute url that includes https prefix in the markup i need to map the admin url to https in my routes, right? konstantin --~--~-~--~~--

[web2py:34138] how to generate absolute url ?

2009-10-29 Thread akonsu
hello, i have discovered web2py just yesturday. so i am completely new, please forgive my ignorance. (currently i am using django but i am almost convinced now that i need to switch to web2py :) but one thing that bothers me so far is that after i installed web2py on my webfaction share it seems