Hi
I got problems with escape displaying like junk when upgrading from
django 0.96 to 1.2 with google app engine.
The code is
# let user choose authenticator
for p in openIdProviders:
p_name = p.split('.')[0] # take AOL from AOL.com
p_url = p.lower()#
On 4 Okt, 20:38, Tobiah t...@rcsreg.com wrote:
It gets used here frequently, but not
having majored in programming, I'm not
familiar with it. One might say:
Don't do it that way, it will result in O(n**2)!
Or something like that. I read this to mean
that the execution time varies with
Hello
Getting a web same page with 2 or more possible states eg business
part, private part or all parts, can you recommend a way to represent
the states via HTTP GET? Feasible way could be ?business=business, ?
type=business, ?business=true or others. Should I minimize casting the
variable? Which
On Sep 20, 7:39 am, Bruno Desthuilliers bruno.
42.desthuilli...@websiteburo.invalid wrote:
Niklasro a écrit :
Good to learn what I'm doing :-) since important being able to explain
choices taken farther than doing it because it works.
I understand the concept of modules may not correspond
...
There can be issues with both in some web frameowrks.
Good points, Bruno, thank you.
Niklasro, a good example of Bruno's second point: running a module as
a script and then importing it elsewhere later will execute the module
in the second import, creating two module objects - '__main__
On Sep 18, 11:15 pm, Jorgen Grahn grahn+n...@snipabacken.se wrote:
On Sat, 2010-09-18, Niklasro wrote:
Hi
How can I make the visibility of a variable across many methods or
files? To avoid repeating the same line eg url =
os.environ['HTTP_HOST'] if os.environ.get('HTTP_HOST') else
On Sep 19, 2:31 am, alex23 wuwe...@gmail.com wrote:
Niklasro nikla...@gmail.com wrote:
I got 2 files main.py and i18n both with
webapp request handlers which I would like access the variable.
I'd probably use a module for this. Create a third file, called
something like shared.py
It works but I don't know whether it's formally inheritance or class
variable.
Before code was
url = os.environ['HTTP_HOST'] if os.environ.get('HTTP_HOST') else
os.environ['SERVER_NAME']
if url.find('niklas') 0:
and now the change saves me from repeating myself!
util.py:
url =
On Sep 19, 8:12 am, Thomas Jollans tho...@jollans.com wrote:
On 2010-09-19 09:22, Niklasro wrote: util.py:
url = os.environ.get(HTTP_HOST, os.environ[SERVER_NAME]) #declared
as class variable(?)
There is no class here, so this is no class variable, and you're not
inheriting anything
Hi
How can I make the visibility of a variable across many methods or
files? To avoid repeating the same line eg url =
os.environ['HTTP_HOST'] if os.environ.get('HTTP_HOST') else
os.environ['SERVER_NAME'] I repeat for many methods. So declaring it
to a super class and inheriting it is my plan.
On Sep 18, 4:13 pm, bruno.desthuilli...@gmail.com
bruno.desthuilli...@gmail.com wrote:
On 18 sep, 17:25, Niklasro nikla...@gmail.com wrote:
Hi
How can I make the visibility of a variable across many methods or
files? To avoid repeating the same line eg url =
os.environ['HTTP_HOST
Hello
Learning python datetime somewhat similar to SQL type timestamp my
attempt creating a 24 h 2 months ago is
str(datetime.now () - timedelta (days = 60)) +' cron '+
str(datetime.now () - timedelta (days = 59))
Do you agree? Can I improve this declaration?
Regards
Niklas Rosencrantz
--
On Sep 5, 10:57 pm, bussiere bussiere bussi...@gmail.com wrote:
i've got a python.txt that contain python and it must stay as it (python.txt)
how can i include it in my program ?
import python.txt doesn't work
is there a way :
a) to make an include(python.txt)
b) tell him to treat .txt as
Hello
Making a GUI, could you recommend tkinter or any other proposal?
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
Hello, Suspecting it's completely doable combining these 2 regexes to
just 1 expression I'm looking for the working syntax. If you know then
kindly inform. Thanks in advance
('/a/([^/]*)',List), #list
('/a([^/]*)',List), #list
Niklas Rosencrantz
--
Many thanks. It works. You also helped me refactor these
('/([0-9]*)/?([^/]*)',AById),#id2a
('/([0-9]*)',AById)
to just 1
('/([0-9]*)/?([^/]*)',AById),#id2a
It's from the appspot framework.
Sincerely
Niklas R
--
http://mail.python.org/mailman/listinfo/python-list
16 matches
Mail list logo