On Mar 8, 2011, at 2:20 PM, Jonathan Lundell wrote:
On Mar 8, 2011, at 2:00 PM, DenesL wrote:
I mean curl --trace-ascii
On Mar 8, 4:37 pm, DenesL denes1...@yahoo.ca wrote:
On Mar 8, 1:06 pm, Jonathan Lundell jlund...@pobox.com wrote:
Try making the requests with curl -I and see
On Mar 8, 2011, at 6:36 PM, Plumo wrote:
thanks John, that makes sense.
I tested it on the stock welcome app, and it seems to work fine. I'll send
Massimo a patch for the example app.yaml, since this is a fairly common
requirement.
and logging.example.conf), partly for that reason and partly
so app.yaml doesn't get overwritten during an upgrade.
Too bad YAML doesn't support variable substitution.
On Wed, Mar 9, 2011 at 2:03 PM, Jonathan Lundell jlund...@pobox.com wrote:
On Mar 8, 2011, at 6:36 PM, Plumo wrote:
thanks John
On Mar 9, 2011, at 5:00 AM, DenesL wrote:
I did use -I but it did not show any redirects.
Anyway, I still don't know why it gets redirected to profile when it
is not properly defined.
What was the minimum you needed to do to get the redirection? Just the
double-form version of user?
On Mar 9, 2011, at 3:49 PM, stargate wrote:
I am following the following tutorial for web2py deployment
http://docs.dotcloud.com/static/tutorials/web2py/
the problem i am stuck at is when i try to run the following command
What exactly do you mean by stuck?
web2py$ ln -s
wsgi.py
Command not found means it can't find the ls or ln commands; nothing to do with
web2py. What's the sequence of operations leading up to this?
Try the commands 'which ls' and 'which ln' and see what they have to say.
That is why i am stuck
On Mar 9, 7:07 pm, Jonathan Lundell
On Mar 10, 2011, at 7:47 AM, Ross Peoples wrote:
I just updated to the latest trunk and I am now having problems view errors
in my application, as clicking on a ticket creates another ticket, but in the
admin application this time. I opened the latest error in the
applications/admin/errors
On Mar 10, 2011, at 9:36 AM, LightOfMooN wrote:
Full function is too complex.
But this little shows the problem well:
value=request.vars.myvar
t = type(value)
value = float(value)
t2 = type(value)
value = int(value)
t3 = type(value)
print value, t, t2, t3
result:
On Mar 10, 2011, at 11:57 AM, LightOfMooN wrote:
the same result..
so my validate for value is:
isinstance(value, int) and -2147483649value2147483648
It works fine, but... it's not good...
Why not? You shouldn't be relying on sizeof(int).
On 10 мар, 23:32, Martín Mulone
On Mar 10, 2011, at 2:18 PM, LightOfMooN wrote:
because it's not beautiful ;)
Well, the field you're using in the database doesn't have a beautiful
constraint...
On 11 мар, 03:16, Jonathan Lundell jlund...@pobox.com wrote:
On Mar 10, 2011, at 11:57 AM, LightOfMooN wrote:
the same
On Mar 10, 2011, at 3:09 PM, Tito Garrido wrote:
I'm wondering what is the best implementation for a unique click counting
in web2py... somehow I need to capture the ip address of the client and store
it on a table, I guess... So I'd like a piece of your knowledge on this :-)
The requesting
On Mar 11, 2011, at 6:24 AM, Bruno Rocha wrote:
Use the !important[0]
style type=text/css
textarea {
width: 100px !important;
}
/style
[0]
http://www.webcredible.co.uk/user-friendly-resources/web-dev/css-important.shtml
Generally speaking, you should be
On Mar 11, 2011, at 5:13 AM, Massimo Di Pierro wrote:
This is a strange behavior of open. Which linux version? Anyway, I
will test your solution, it seems the right one.
No. The second open unlocks the file (presumably because f is closed with f
gets rebound) and it's not getting locked
On Mar 9, 2011, at 1:22 PM, DenesL wrote:
plus the decoration of index:
@auth.requires_login()
On Mar 9, 11:04 am, Jonathan Lundell jlund...@pobox.com wrote:
On Mar 9, 2011, at 5:00 AM, DenesL wrote:
I did use -I but it did not show any redirects.
Anyway, I still don't know why
On Mar 11, 2011, at 10:14 AM, pbreit wrote:
Can it be config'd?
self.settings.logged_url = self.url('user', args='profile')
if self.is_logged_in():
redirect(self.settings.logged_url)
Yes. But Auth.register is written to be called only when user/register is
accessed. And
On Mar 11, 2011, at 11:29 AM, pbreit wrote:
But can't you just put auth.settings.logged_url = self.url('default',
'index') in a model?
Sure. The problem is only with calling (for example) auth.register() directly.
On Mar 12, 2011, at 11:05 AM, pierreth wrote:
Hello,
I have small problem when the characters and are used in web2py
html template views. Using them for Python breaks the html:
{{=OK if x 0 else bad}}
Because these characters are not escaped in the code, the html file is
no longer
document
but it parse directly the html file. I would really like Massimo to
fix this.
On Mar 12, 2:15 pm, Jonathan Lundell jlund...@pobox.com wrote:
On Mar 12, 2011, at 11:05 AM, pierreth wrote:
Hello,
I have small problem when the characters and are used in web2py
html template
On Mar 12, 2011, at 11:54 AM, Jonathan Lundell wrote:
On Mar 12, 2011, at 11:39 AM, pierreth wrote:
I think you mean the response object.
Yes, response.
The example code you gave still
use the character so it does not help.
Did you try it? How about the second version?
Hmm. I
illegal characters for an id. Wrapping it in html comments
wouldn't help (I don't think html comments are legal in that context).
Would it suffice to hide the template files from the IDE? Or at least fool it
into treating them as plain text?
On Mar 12, 3:11 pm, Jonathan Lundell jlund...@pobox.com
On Mar 13, 2011, at 10:33 AM, Massimo Di Pierro wrote:
How do you know there is no need for it? Did you look at what is being
re-written? It should only try to re-write if you have new text
needing translation.
José mentioned restricted permissions. If the write fails, might it keep
trying?
On Mar 13, 2011, at 5:19 PM, pbreit wrote:
Sounds like the problem is with your route changes. I think the
routes_onerror needs to be inside of the routers dict. Make sure to restart
web2py after you edit routes.py.
routers = dict(
BASE = dict(
routes_onerror = [
On Mar 13, 2011, at 5:07 PM, mattynoce wrote:
hi, i just upgraded to 1.93.2 from 1.89.1 and my appadmin link is no longer
working. i get the following error by going to
http://localhost:8080/init/appadmin:
invalid controller (appadmin/index)
Generally speaking, this suggests that web2py
On Mar 14, 2011, at 9:15 AM, mattynoce wrote:
hi jonathan. i tried renaming routes.py and leaving the default config, and
that actually did not work either. so something happened in the upgrade that
screwed things up.
i had a web2py-wide routes file in my last version, but it simply had
On Mar 14, 2011, at 9:57 AM, mattynoce wrote:
woah! i just found it.
i neglected to mention that i was running on gae, using the mac sdk. i didn't
think to mention it. but it looks like that's an important piece here.
i had been checking my log file and it was telling me it was returning
On Mar 14, 2011, at 8:55 AM, Corne wrote:
We've looked into the problem a bit deeper.. There is a problem but
it's different than what was in the first post.
The problem seems to be in the locking of the session file:
Two processes/requests open the same session file for write and thus
On Mar 14, 2011, at 1:10 PM, Gene Chow wrote:
I'm using the basic router from router.example.py. I also use
subversion to track changes and I have a .svn directory in
applications directory. The load function in gluon/rewrite.py tries to
read controllers in the .svn directory and throws an
On Mar 15, 2011, at 8:12 AM, Kevin Ivarsen wrote:
So far I like Productivity by design.
I do too. It speaks to web2py's strongest point.
I'm not happy with 'enterprise' because to me it reeks of Enterprise Java
(Java is the new COBOL).
I'd be happier with 'scales' if we had deployed,
On Mar 15, 2011, at 6:00 AM, Ross Peoples wrote:
I just noticed that the sessions are still being saved, which may be why I
didn't see any performance improvement. I deleted all of the sessions inside
the sessions folder, stopped and restarted the server, then visited the
/default/index
On Mar 15, 2011, at 7:15 AM, Corne wrote:
We (again) looked deeper into what is really happening; and it is yet
different.
What we ran into is the following:
We tried to set a session_id our self based on information in the url,
which in this case resulted in calling the session connect
key or hash or something in the URL (like the newish
hash logic in URL()), this seems open to hijacking.
On Mar 15, 11:55 am, Jonathan Lundell jlund...@pobox.com wrote:
On Mar 15, 2011, at 7:15 AM, Corne wrote:
We (again) looked deeper into what is really happening; and it is yet
different
On Mar 15, 2011, at 12:17 PM, Corne wrote:
When you set your own session_id, does the corresponding session file always
exist?
Yes, it does. I'm sure..
If that's not an issue, you could try setting response.session_new = False
before calling session.connect
I already tried that, and
On Mar 15, 2011, at 2:42 PM, Massimo Di Pierro wrote:
how about designed for productivity?
Productivity. Security. Community.
On Mar 15, 2:49 pm, mwolfe02 michael.joseph.wo...@gmail.com wrote:
+1 Productivity by design
On Mar 15, 2:13 pm, danto web2py.n...@gmail.com wrote:
2011/3/15
On Mar 16, 2011, at 10:48 AM, Ross Peoples wrote:
Jonathan has done some awesome work with routing, and I hit my first problem.
I have a table called auth_user_extended, which I use to store extended
information not included in the default auth_user table. One of the fields in
this table is
On Mar 16, 2011, at 11:01 AM, Corne wrote:
Yes, I have a working solution now.
Thanks for all the help :)
The fix is in the trunk, and will be in the next stable version.
On Mar 16, 2011, at 7:09 PM, Kevin Ivarsen wrote:
I'm biased in that I don't do any GAE development, but even though it's
only 7MB, it seems like a big jump relative to the size of the current code
base. If you exclude the examples directory under applications, the web2py
source tree comes
On Mar 17, 2011, at 7:40 AM, Anthony wrote:
In the book under Efficiency Tricks it says:
Set session.forget() in all controllers and/or functions that do not change
the session.
Does this new change make it unnecessary to bother calling session.forget()
in most cases because sessions
On Mar 17, 2011, at 7:29 AM, Martín Mulone wrote:
@auth.requires(auth.has_membership(role='Admin'))
def index():
return dict()
No longer redirect to login page, instead show not authorized message. This
only happen in trunk.
The two lines marked below were removed when Massimo
On Mar 17, 2011, at 9:45 AM, Anthony wrote:
On Thursday, March 17, 2011 11:17:17 AM UTC-4, Jonathan Lundell wrote:
On Mar 17, 2011, at 7:40 AM, Anthony wrote:
In the book under Efficiency Tricks it says:
Set session.forget() in all controllers and/or functions that do not change
On Mar 17, 2011, at 10:44 AM, Anthony wrote:
Thanks. This is helpful.
On Thursday, March 17, 2011 1:14:22 PM UTC-4, Jonathan Lundell wrote:
On Mar 17, 2011, at 9:45 AM, Anthony wrote:
On Thursday, March 17, 2011 11:17:17 AM UTC-4, Jonathan Lundell wrote:
On Mar 17, 2011, at 7:40 AM, Anthony
On Mar 18, 2011, at 9:01 AM, kenji4569 wrote:
session.connect(request, response, masterapp=masterapp, db=db)
where masterapp is my application name, and use the method in a module
file.
If it's in a module (vs model) file, where are you invoking it from?
On 3月19日, 午前12:57, Massimo Di
On Mar 18, 2011, at 12:31 PM, David Warnock wrote:
Christian,
Thanks
yes, as a GAE user you *need* to have app.yaml, index.yaml, and queue.yaml in
your source control (right now they get overwritten on upgrade so you want
them backed up). most people also need to have routes.py in
On Mar 18, 2011, at 2:31 PM, metaperl wrote:
The archives have 3 instances of this problem, but their solutions do
not apply to me. Here is a link to the ticket for the failed
application creation:
On Mar 19, 2011, at 3:37 PM, Massimo Di Pierro wrote:
Let me keep my competitive advantage for a while. ;-)
Besides I have this problem I cannot solve. Consider this code:
import terminal
import time
import sys
import curses
import os
screen = curses.initscr()
curses.nocbreak()
it implies: restore the terminal to a reasonable
setting.
More elaborately, you can do this:
save_state=$(stty -g)
mess it up
...
stty $save_state
(except pythonically)
On Mar 19, 6:28 pm, Jonathan Lundell jlund...@pobox.com
On Mar 21, 2011, at 2:37 PM, Tom Atkins wrote:
I am designing an app with a URL structure like this:
myapp.com/yoursitename
'yoursitename' is effectively an argument as there could be many sites and
users are allowed to create their own sites. But I'd like it to be 'top
level'.
Then
On Mar 21, 2011, at 8:35 PM, VP wrote:
I was trying to tweak various settings in terms of processes and
threads. This is what I observed. With web2py's default setting (I
believed 1 process 15 threads), I got about 30 requests/second for my
app.
With 3 processes and 2 threads, I got
On Mar 21, 2011, at 8:41 PM, yutaka kawate wrote:
There is no problem if run from dev_appserver.py.
Some wrong in session file system.
so the safe way is passing session,request as prameters.
thank you
Yes. A module has its own namespace, so it doesn't have access to the caller's
globals.
On Mar 21, 2011, at 7:44 PM, Indra Gunawan wrote:
Agree, Flask way looks more elegant (see Variable Rules). It could be nice if
this way also exists on Web2Py.
On 22 March 2011 06:05, Tom Atkins minkto...@gmail.com wrote:
I was playing with Flask and I have to say its solution to routing
('editprofile', yoursitename='Supersite')
gives:
/Supersite/users
On 22 March 2011 05:23, Jonathan Lundell jlund...@pobox.com wrote:
On Mar 21, 2011, at 7:44 PM, Indra Gunawan wrote:
Agree, Flask way looks more elegant (see Variable Rules). It could be nice
if this way also exists on Web2Py
On Mar 22, 2011, at 11:12 AM, pbreit wrote:
Would there be any way to support something like:
/$user/app/controller/function
Where $user is available to controllers as some sort of arg?
I could see your idea about re-formatting the URL to:
/app/controller/function/$user but am
On Mar 22, 2011, at 11:30 AM, Ross Peoples wrote:
I'm not quite sure what the deal is with that. I think one of the two files
is from the old routers file and just never got cleaned up.
They're both available. The regex router (routes.example.py) is still
available, and it can do things that
On Mar 22, 2011, at 12:34 PM, Anthony wrote:
Got it. Thanks.
In the current version, there's no practical difference between session.forget
and session._unlock. This is a change, but (and this is open to question) I
think that unlock without forget can only be a bug. Maybe I'm wrong about
On Mar 22, 2011, at 1:57 PM, Anthony wrote:
Thanks for the feedback. I think the new parameter-based system is probably
preferred in general because it's easier, but there are things it cannot do
that can only be done with the pattern-based system, so we probably need to
maintain good
On Mar 22, 2011, at 1:31 PM, Pystar wrote:
Are models loaded in alphabetical order? or alphanumerical order?
They're sorted by Python's built-in function sorted, in its default mode, which
I believe in this case is eventually using str.__cmp__.
On Mar 22, 1:45 pm, DenesL denes1...@yahoo.ca
On Mar 22, 2011, at 3:53 PM, David Warnock wrote:
Is there any support for subdomains in either routing system? I couldn't see
any.
I am thinking of what I think 37signals use
http://clienta.myapp.com/users // list of all users for client A
http://clientb.myapp.com/users/dave
On Mar 22, 2011, at 8:46 PM, Massimo Di Pierro wrote:
I use Mac say. It comes with it.
Alex.
On Mar 23, 2011, at 11:36 AM, Anthony wrote:
Massimo, if one thread/request locks the session file, can a second request
unlock the file, or does it have to be unlocked within the same request that
locked it? For example, let's say a page includes two components (via LOAD)
-- if the request
On Mar 24, 2011, at 8:25 AM, Anthony wrote:
There is an additional problem, though. According to Massimo, web2py cannot
store instances of classes in the session:
https://groups.google.com/d/msg/web2py/dmN54cpMuXo/lufvxmaQMLUJ. Perhaps
Massimo has more to say regarding this example.
This
On Mar 24, 2011, at 8:04 AM, VP wrote:
Noticing the version of web2py keeps interestingly increasing to 2.0,
I think this is something Massimo might want to spend sometime
thinking about.
As I understand it, because of exec, controllers are called *after*
the request arrives. This allows
On Mar 24, 2011, at 9:39 AM, Rui Gomes wrote:
Regarding storing the class in the session is not a problem that work fine
for me(need to be careful some things can't be pickel), the problem is
re-write it at each call,
I already try something similar to
order = session.order or Order()
On Mar 24, 2011, at 9:57 AM, Martín Mulone wrote:
For example I have a blog application with this url
http://www.mysite.com/blog/default/post/2010/10/10/my-article
I can short to this:
http://www.mysite.com/blog/2010/10/10/my-article
with this one route:
On Mar 24, 2011, at 10:35 AM, Anthony wrote:
On Thursday, March 24, 2011 12:51:56 PM UTC-4, Martin.Mulone wrote:
Yes but not in the application folder. The importance is to be distributed
with the application.
I think you two might be talking at cross purposes here. It goes in
On Mar 27, 2011, at 3:21 AM, johntynan wrote:
I had written a tutorial about Setting up web2py for use with Google
App Engine here:
http://opensourcebroadcasting.blogspot.com/2010/04/setting-up-web2py-for-use-with-google.html
Please feel free to have a look and let me know if this helps
On Mar 27, 2011, at 2:08 AM, Mariusz Zieliński wrote:
More details would be useful. I'm no expert on deploying on GAE,
though I succesfully managed to deploy my first app on GAE
yesterday :) I got some problems with app.yaml file as with some rules
from example file in skip_files section
-packages.
chrism
On Feb 13, 11:46 am, Carl m...@carlroach.com wrote:
On Feb 12, 4:03 pm, Jonathan Lundell jlund...@pobox.com wrote:
On Feb 12, 2011, at 3:12 AM, Carl wrote:
I've avoided editing oauth10a_account.py by moving the directory
oauth2 to web2py (and keeping httplib2 inside
On Mar 29, 2011, at 5:10 AM, CVstash dot com wrote:
so I made web2py/routes.py with this code:
*
routers = dict(
BASE = dict(default_application='resume'),
)
routes_in = (
('/view/', '/resume/default/cv/'),
(r'/view/any', r'/resume/default/cv/(?Pany.*)'),
)
On Mar 29, 2011, at 6:53 AM, Jim Karsten wrote:
I have a variable named 'reg_no' that when used as a link paramater is
getting converted into a registered trademark symbol. Here is a simple
example that illustrates it.
The controller:
def page():
link = A('my link',
'),
)
*
doing http://localhost:8000/ would redirect to the resume app just
fine, but doing http://localhost:8000/view gives an invalid request
error.
Is there any clue in the error message as to the URL that it's using?
Thanks,
Arbie
On Mar 29, 9:41 pm, Jonathan Lundell jlund...@pobox.com wrote
On Mar 29, 2011, at 7:06 AM, Jonathan Lundell wrote:
On Mar 29, 2011, at 6:58 AM, CVstash dot com wrote:
Thanks a lot Jonathan for the reply. I did just that but it still
doesn't work out the shortcut even with this code:
*
default_application='resume'
routes_in
On Mar 29, 2011, at 10:34 AM, Anthony wrote:
When web2py writes A('my link', _href=URL(r=request, vars=request.vars)) to
HTML, it results in:
a href=/page?input_one=aaareg_no=bbbmy link/a
The problem is, the browser converts the reg in the href to the registered
trademark symbol, so
On Mar 29, 2011, at 11:04 AM, Jonathan Lundell wrote:
On Mar 29, 2011, at 10:34 AM, Anthony wrote:
When web2py writes A('my link', _href=URL(r=request, vars=request.vars)) to
HTML, it results in:
a href=/page?input_one=aaareg_no=bbbmy link/a
The problem is, the browser converts the reg
On Mar 30, 2011, at 8:28 AM, kedai wrote:
tried that, returned no json. that was my first guess too
Is the controller getting invoked? What does it do?
That ought to work, unless there's a routing problem or the like. I think...
On Mar 30, 10:43 pm, DenesL denes1...@yahoo.ca wrote:
On Mar 30, 2011, at 3:21 PM, contatogilson...@gmail.com wrote:
So what can I do to fix this. These modules would have to be in the folder
modulesbecause I'm going to play such an application on Google App Engine.
Did you try putting them in site-packages?
On Mar 30, 2011, at 3:59 PM, VP wrote:
I think this is whatt he new routing mechanism does. Is this right?
Is there a technical reason why?
My app's name has a hyphen in it. And the links are all broken.
By default, the new router maps hyphens in URLs (for the
app/controller/function)
On Mar 30, 2011, at 5:37 PM, contatogilson...@gmail.com wrote:
But doing the import from site-packages, to make deployed on Google App
Engine it will be able to use the modules?
We're talking about web2py/site-packages. Create the directory if necessary in
the web2py base directory.
The
in the URL to underscores internally.
On Mar 30, 6:08 pm, Jonathan Lundell jlund...@pobox.com wrote:
On Mar 30, 2011, at 3:59 PM, VP wrote:
I think this is whatt he new routing mechanism does. Is this right?
Is there a technical reason why?
My app's name has a hyphen
apps.
Thanks.
On Mar 30, 9:35 pm, Jonathan Lundell jlund...@pobox.com wrote:
On Mar 30, 2011, at 7:25 PM, VP wrote:
I actually found the opposite of this. Namely, it maps underscores to
hyphens, as I described above. Note that, my app's name has
underscores; but my controllers
On Mar 30, 2011, at 9:43 PM, VP wrote:
i'm using 1.94.6 with router. When I created a new application, I
must restart apache in order for the application to get recognized.
Otherwise, its URL is not accessible.
You ought to be able to just reload the routing table, I think:
in some controller that does nothing but make that call
and then redirect anywhere you like. That should do the trick.
Thanks.
On Mar 30, 11:58 pm, Jonathan Lundell jlund...@pobox.com wrote:
On Mar 30, 2011, at 9:43 PM, VP wrote:
i'm using 1.94.6 with router. When I created a new
On Mar 31, 2011, at 7:30 AM, David J. wrote:
Seeing that using a - in function names is invalid in python;
I was wondering how I define in my controller get-started url;
If I define in my controller
def get-started():
return dict()
Its invalid; so I have to maybe use routes.py
On Mar 31, 2011, at 7:46 AM, David J. wrote:
I missed that
calling app/default/get_started
works also;
The hyphen-underscore translation works only if you're running the new router.
On 3/31/11 10:31 AM, Ross Peoples wrote:
web2py will automatically convert dashes to underscores
On Mar 30, 2011, at 11:35 PM, pbreit wrote:
Perhaps at least it can be fixed to accept hyphens in the app name? The only
problem is with function names, correct?
I'm pretty sure that controller names are a problem, too, and I'm not certain
about application names.
Function names are the
/reload_routes
It's not automatic. I think it's maybe better for it not to be, since depending
on the configuration it might be necessary to edit routes.py before reloading
it.
Thanks.
On Mar 30, 11:58 pm, Jonathan Lundell jlund...@pobox.com wrote:
On Mar 30, 2011, at 9:43 PM, VP wrote
On Mar 31, 2011, at 9:27 AM, David J. wrote:
It is optional; read the router.py docs.
Jonathan mentioned that in his post.
VP is suggesting the opposite default, and I think perhaps he's right. It
causes too much confusion.
On 3/31/11 12:24 PM, VP wrote:
Unless I misunderstand the
On Mar 31, 2011, at 9:24 AM, VP wrote:
Unless I misunderstand the issue at hand here, seriously, I do not
think this is web2py's scope to do this automatic mapping hyphens or
dashes to underscores.
Hyphen/dash is a minus sign. You can't define a Python variable or
function that has a
On Mar 31, 2011, at 10:09 AM, pbreit wrote:
I guess I can see leaving the default to re-map hyphens to underscores but
perhaps only on controllers?
Well, functions for sure. I'm not sure about applications and controllers.
, March 31, 2011 1:25:30 PM UTC-4, Jonathan Lundell wrote:
On Mar 31, 2011, at 10:09 AM, pbreit wrote:
I guess I can see leaving the default to re-map hyphens to underscores but
perhaps only on controllers?
Well, functions for sure. I'm not sure about applications and controllers.
On Mar 31, 2011, at 12:52 PM, VP wrote:
I guess I can see leaving the default to re-map hyphens to underscores but
perhaps only on functions?
YES.
App names are file names, and people generally don't want to have
hyphens in their file names, which is the opposite of what they would
On Mar 31, 2011, at 1:02 PM, VP wrote:
I should have written directory names instead of file names (even
though they are related).
The conflict is apparent when web2py and other things (Apache, etc.)
work together. For example, Apache routes the static files whereas
web2py routes the
On Mar 31, 2011, at 4:26 PM, villas wrote:
I believe the w2p file is just a standard zip file. If you want to
include a subset of files, I guess you could always make your own zip
file.
They're tgz (gzipped tar).
I sometimes just zip the app folder myself and unzip it on my other
...on condition that it be rewritten in Java.
On Apr 3, 2011, at 4:58 AM, ChrisM wrote:
update - seems to only work if you have multiple page definitions in
same html file.
I'd avoid using # in a URL, because a browser is likely to parse it as a
fragment (anchor) identifier.
On Apr 2, 1:02 pm, ChrisM cjjmur...@gmail.com wrote:
i am
On Apr 3, 2011, at 9:01 AM, Shark wrote:
Hello
I am asking about url rewriting in web2py withGAE
I want to make our site page
www.site.com/init/login
to
www.site,com/login
can you help me ?
someone tell me change app,yaml
others
say change routers.py
Change (create)
On Apr 3, 2011, at 2:11 PM, pbreit wrote:
Setting the default_application works really well. Would actual re-writing
need to be performed by the server?
That will interpret / as /init/default/index, but it won't help for /login
On Apr 3, 2011, at 2:22 PM, pbreit wrote:
Oh right, cuz login is going to be /user/login ?
Well, that too, but simply setting default_application (without any routing)
will never suppress the application unless it's also suppressing the controller
and function.
pm, Jonathan Lundell jlund...@pobox.com wrote:
On Apr 3, 2011, at 4:58 AM, ChrisM wrote:
update - seems to only work if you have multiple page definitions in
same html file.
I'd avoid using # in a URL, because a browser is likely to parse it as a
fragment (anchor) identifier
The default setting for map_hyphen in the parametric router has been changed
from True to False in the trunk, and will show up in the next stable release.
This is to make the default setting the same as having no router at all.
If you're using URL hyphen mapping now, just add map_hyphen=True to
how to point to one of them ?
web2py will pick out the right function from the URL, but you have to go
through the handler. Use routes.py to shorten the URLs if you need to.
Thanks for your patience and your ideas
On 3 April 2011 23:38, Jonathan Lundell jlund...@pobox.com wrote:
On Apr
On Apr 4, 2011, at 11:03 AM, Massimo Di Pierro wrote:
Problem is mercurial does not version control empty folder. It should
have been created at startup. Was it not?
We put __init__.py (otherwise unnecessary) in site-packages partly to fix that,
I thought. Maybe that doesn't work because
1501 - 1600 of 2556 matches
Mail list logo