Pako wrote:You can try this great (and free) editor:
http://www.pspad.com/en/
Excuse me, if I am writing nonsense. I did not follow the whole topic.
Pako
Hey!
That was a great piece of software!
Thanks!
Pako wrote:You can try this great (and free) editor:
http://www.pspad.com/en/
Excuse me, if I am writing nonsense. I did not follow the whole topic.
Pako
Livin wrote:Bit,
Interested to hear your thoughts on this idea.
Create a set of properties for each Macro and Action, then have the web code auto-generate the web pages based on the properties.
Example...
Macro 'Media Center - on'
Type: trigger
States: <last triggered date/time>
Web Visible: yes
Web Page: 'Main'
Tab Order: 1
Label: "Media Center"
Images: TriggerOn.gif/TriggerOff.gif
Device 'Kitchen Lights'
Type: slider
States: off/10/20/30/40/50/60/70/80/90/100
Web Visible: yes
Web Page: 'Main'
Tab Order: 2
Label: "Kitchen Lights"
Image base: SliderVertible.jpg
Image movable: SliderThumbVerticle.jpg
Device 'Ceiling Fan'
Type: toggle
States: on/off
Web Visible: yes
Web Page: 'Master Bedroom'
Tab Order: 2
Label: "Ceiling Fan"
Image on: ToggleHighOn.gif/ToggleLowOn.gif
Image off ToggleHighOff.gif/ToggleLowOff.gif
def translate_path(self, path):
"""Translate a /-separated PATH to the local filename syntax.
Components that mean special things to the local file system
(e.g. drive or directory names) are ignored. (XXX They should
probably be diagnosed.)
"""
# stolen from SimpleHTTPServer.SimpleHTTPRequestHandler
# but changed to handle files from a defined basepath instead
# of os.getcwd()
path = path.split('?',1)[0]
path = path.split('#',1)[0]
path = posixpath.normpath(unquote(path))
words = [word for word in path.split('/') if word]
path = self.server.basepath
for word in words:
drive, word = os.path.splitdrive(word)
head, word = os.path.split(word)
if word in (os.curdir, os.pardir):
continue
path = os.path.join(path, word)
return pathI am using Notepad++ and tried utf-8 with and without BOM with no luck. I have read http://boodebr.org/main/python/all-about-python-and-unicode and http://www.joelonsoftware.com/articles/Unicode.html trying to understand the whole thing. My intended use is getting a template file called through ajax where the variables get replaced with strings with non ascii characters, but to put it in more simpler terms, how can I include a non ascii character in the light.html example and make it work?Templates must be stored in UTF-8 if they use non-ASCII characters. So set you editor accordingly.
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe5' in position 1053: ordinal not in range(128)
alt av eller på (vil lyse hvis en enhet er på) {{"<a href='?allOFF'><img src='on.png' width='30' height='50' border='0' /></a>" if kjokkenState or gangstate or stuestare else "<a href='?allON'><img src='off.png' width='30' height='50' border='0' /></a>"}}alt av eller på (vil lyse hvis en enhet er på) {{"<a href='?allOFF'><img src='on.png' width='30' height='50' border='0' /></a>" if kjokkenState or gangstate or stuestare else "<a href='?allON'><img src='off.png' width='30' height='50' border='0' /></a>"}}<title>strømstyring</title><title>strømstyring</title>Users browsing this forum: No registered users and 3 guests