This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@render_to('sro2/journal/journal.html') | |
def journal_ng_obj(request,ctype,obj_id,start_date='',end_date=''): | |
if start_date and end_date: | |
#если даты переданы, то созадаем из них объекты datetime | |
day,mounth,year = start_date.split('.') | |
eday,emounth,eyear = end_date.split('.') | |
sd=date(int(year), int(mounth), int(day)) | |
ed=date(int(eyear), int(emounth), int(eday)+1) | |
else: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Change project version | |
__author__ = 'Averrin' | |
__version__ = '0.2' | |
path='config/main.cfg' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fish_prompt -d "Write out the prompt" | |
set tt (math (random)/5000) | |
switch tt | |
case 0 | |
set tt green | |
case 1 | |
set tt red | |
case 2 | |
set tt yellow |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== modified file 'src/core/config.py' | |
--- src/core/config.py 2011-06-10 19:03:28 +0000 | |
+++ src/core/config.py 2011-07-01 13:21:35 +0000 | |
@@ -212,6 +212,7 @@ | |
Config.__init__ (self, fname, readonly) | |
self.typeOption = StringOption (self, PageConfig.sectionName, u"type", u"") | |
+ self.templateOption = StringOption (self, PageConfig.sectionName, u"template", u"") | |
self.orderOption = IntegerOption (self, PageConfig.sectionName, PageConfig.orderParamName, -1) | |
self.lastViewedPageOption = StringOption (self,u"History", u"LastViewedPage", u"") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== modified file 'src/pages/html/HtmlPanel.py' | |
--- src/pages/html/HtmlPanel.py 2011-06-14 17:44:58 +0000 | |
+++ src/pages/html/HtmlPanel.py 2011-07-05 13:21:23 +0000 | |
@@ -18,7 +18,7 @@ | |
from gui.htmlrenderfactory import getHtmlRender | |
from gui.HtmlTextEditor import HtmlTextEditor | |
from core.system import getTemplatesDir | |
- | |
+from core.recent import RecentWiki | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class WinterPM(object): | |
""""" | |
Plugin manager | |
""""" | |
def activate(self, plugin): | |
""""" | |
Activate plugin | |
""""" | |
try: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
import config | |
buttons=config.Config(file(os.path.expanduser('~/.outwiker/panel.cfg'))).buttons | |
for btn in buttons: | |
self._addTool (self.pageToolsMenu, | |
btn.id, | |
lambda event: self.codeEditor.turnText (btn.prefix, btn.postfix), | |
_(btn.hint1), | |
_(btn.hint2), | |
os.path.join (self.imagesDir, btn.icon)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib, urllib2 | |
import wx, re | |
def add_link(editor): | |
dlg = wx.TextEntryDialog(None, "Instapaper",'Insert URL') | |
if dlg.ShowModal() == wx.ID_OK: | |
response = dlg.GetValue() | |
launch='<script>window.onload = function(){loadDefaults(); _width += 240; saveFont(); return false;};</script>' | |
if re.match('(http|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?',response): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
id name is_myself | |
----- ----------------------------------------- ------------ | |
3241 Коммуны 26 корп 1 1 | |
4011 Революции 29 1 | |
4014 Революции 33 корп 3 1 | |
4016 Революции 33 корп 5 1 | |
4018 Революции 45 1 | |
4020 Энгельса 129 1 | |
4022 Энгельса 131 корп 2 1 | |
4024 Энгельса 139 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<opml version="1.0"> | |
<head> | |
<title>Averrin subscriptions in Google Reader</title> | |
</head> | |
<body> | |
<outline title="Eng" text="Eng"> | |
<outline text="Android Phone Fans" | |
title="Android Phone Fans" type="rss" | |
xmlUrl="http://phandroid.com/feed/" htmlUrl="http://phandroid.com"/> |
OlderNewer