锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲乱码一二三四区乱码,亚洲一区二区三区免费,亚洲一区二区三区播放在线 http://www.tkk7.com/qixiangnj/category/17829.html <STRONG><FONT color=#ff0000>鐩涘勾涓嶅啀鏉ワ紝涓鏃ラ毦鍐嶆櫒銆?lt;BR>
鍙婃椂褰撳媺鍔憋紝宀佹湀涓嶅緟浜恒?lt;/FONT></STRONG> zh-cn Tue, 27 Feb 2007 11:36:51 GMT Tue, 27 Feb 2007 11:36:51 GMT 60 Pylons瀹炴垬錛堜竴錛?/title> http://www.tkk7.com/qixiangnj/archive/2006/12/05/85722.htmlant ant Tue, 05 Dec 2006 15:59:00 GMT http://www.tkk7.com/qixiangnj/archive/2006/12/05/85722.html http://www.tkk7.com/qixiangnj/comments/85722.html http://www.tkk7.com/qixiangnj/archive/2006/12/05/85722.html#Feedback 0 http://www.tkk7.com/qixiangnj/comments/commentRss/85722.html http://www.tkk7.com/qixiangnj/services/trackbacks/85722.html 鏃跺欎笉鏃╀簡錛屽簾璇濅篃涓嶅璇翠簡銆傚紑濮嬪惂錛?br />1. paster create --template=pylons minispider 2. MySQL錛屽緩绔嬫暟鎹簱minispider
CREATE
聽
TABLE
聽minispider.titleinfo (聽id聽
INTEGER
聽UNSIGNED聽
NOT
聽
NULL
聽AUTO_INCREMENT, 聽聽link聽
VARCHAR
(
255
)聽
NOT
聽
NULL
聽
DEFAULT
聽
''
, 聽聽description聽
VARCHAR
(
255
)聽
NOT
聽
NULL
聽
DEFAULT
聽
''
, 聽聽sitename聽
VARCHAR
(
255
)聽
NOT
聽
NULL
聽
DEFAULT
聽
''
, 聽聽updatetime聽
TIMESTAMP
聽
NOT
聽
NULL
聽
DEFAULT
聽
0
, 聽聽
PRIMARY
聽
KEY
(id) )
3. The Model 1) 淇敼development.ini錛屼唬鐮佸涓嬶細聽1 # 聽2 #聽minispider聽-聽Pylons聽development聽environment聽configuration 聽3 #聽4 #聽The聽%(here)s聽variable聽will聽be聽replaced聽with聽the聽parent聽directory聽of聽this聽file 聽5 #聽6 [DEFAULT] 聽7 debug聽= 聽true 聽8 email_to聽= 聽you@yourdomain.com 聽9 smtp_server聽= 聽localhost 10 error_email_from聽= 聽paste@localhost 11 12 [server:main]13 use聽= 聽egg:Paste # http 14 host聽 = 聽 0.0 . 0.0 15 port聽= 聽 5000 16 17 [app:main]18 use聽= 聽egg:minispider 19 cache_dir聽= 聽 % (here)s / data 20 session_key聽= 聽minispider 21 session_secret聽= 聽somesecret 22 23 # 聽If聽you'd聽like聽to聽fine-tune聽the聽individual聽locations聽of聽the聽cache聽data聽dirs 24 #聽for聽Myghty,聽the聽Cache聽data,聽or聽the聽Session聽saves,聽un-comment聽the聽desired 25 #聽settings聽here: 26 #myghty_data_dir聽=聽%(here)s/data/templates 27 #cache_data_dir聽=聽%(here)s/data/cache 28 #session_data_dir聽=聽%(here)s/data/sessions 29 30 # 聽Specify聽the聽database聽for聽SQLObject聽to聽use聽via聽pylons.database.PackageHub. 31 #聽%(here)聽may聽include聽a聽':'聽character聽on聽Windows聽environments;聽this聽can 32 #聽invalidate聽the聽URI聽when聽specifying聽a聽SQLite聽db聽via聽path聽name.聽Refer聽to聽the 33 #聽SQLObject聽documentation聽for聽a聽special聽syntax聽to聽preserve聽the聽URI. 34 #sqlobject.dburi聽=聽sqlite:%(here)s/somedb.db 35 sqlobject.dburi聽 = 聽mysql: // root: 123456 @localhost: 3306 / minispider 36 37 # 聽WARNING:聽*THE聽LINE聽BELOW聽MUST聽BE聽UNCOMMENTED聽ON聽A聽PRODUCTION聽ENVIRONMENT* 38 #聽Debug聽mode聽will聽enable聽the聽interactive聽debugging聽tool,聽allowing聽ANYONE聽to 39 #聽execute聽malicious聽code聽after聽an聽exception聽is聽raised. 40 #set聽debug聽=聽false 絎?5琛屼負娣誨姞鐨勯儴鍒嗐?br />2錛夊湪models鐩綍涓嬶紝寤虹珛msmodel.py錛屼唬鐮佸涓嬶細from 聽sqlobject聽 import 聽 * from 聽pylons.database聽 import 聽PackageHub hub聽 = 聽PackageHub( " minispider " ) __connection__ 聽 = 聽hub class 聽titleinfo(SQLObject): 聽聽聽聽link聽 = 聽StringCol(length = 255 ) 聽聽聽聽description聽 = 聽StringCol(length = 255 ) 聽聽聽聽sitename聽 = 聽StringCol(length = 255 ) 聽聽聽聽updatetime聽 = 聽DateTimeCol() 淇敼__init__.py錛屼唬鐮佸涓嬶細# #聽NOTE ##聽聽聽If聽you聽plan聽on聽using聽SQLObject,聽the聽following聽should聽be聽un-commented聽and聽provides ##聽聽聽a聽starting聽point聽for聽setting聽up聽your聽schema # from聽sqlobject聽import聽* #from聽pylons.database聽import聽PackageHub #hub聽=聽PackageHub("minispider") #__connection__聽=聽hub # 聽You聽should聽then聽import聽your聽SQLObject聽classes #聽from聽myclass聽import聽MyDataClass from 聽msmodel聽 import 聽titleinfo 4.The view 鍦╰emplates鏂囦歡澶逛笅寤虹珛ms鏂囦歡澶癸紝鍦╩s鏂囦歡涓緩绔媗ist.myt錛屼唬鐮佸涓嬶細< html > < head > < title > Generated聽by聽Mini聽Spider聽v0. 1 </ title > </ head > < body > < table聽width = " 80% " 聽聽border = " 0 " > 聽聽< tr > 聽聽聽聽< td聽width = " 60% " >< strong > What </ strong ></ td > 聽聽聽聽< td聽width = " 20% " >< strong > Where </ strong ></ td > 聽聽聽聽< td聽width = " 20% " >< strong > When </ strong ></ td > 聽聽</ tr > % 聽 for 聽ti聽 in 聽c.titleinfo: 聽聽 < tr > 聽聽聽聽< td >< a聽href = " <%聽ti.link聽%> " 聽target = " _blank " ><% 聽ti.description聽 %></ a ></ td > 聽聽聽聽< td ><% 聽ti.sitename聽 %></ td > 聽聽聽聽< td ><% 聽ti.updatetime聽 %></ td > 聽聽</ tr > % 聽 # endfor </ table > </ body > </ html > 鍔″繀娉ㄦ剰浠g爜鐨勭緝榪涳紒嫻垂浜嗗伓鍗婁釜澶氬皬鏃訛紒 5.The controller 鍛戒護琛岃繍琛岋細 cd minispider paster controller ms 灝哻ontrollers鏂囦歡澶逛笅ms.py淇敼錛屼唬鐮佸涓嬶細from 聽minispider.lib.base聽 import 聽 * class 聽MsController(BaseController): 聽聽聽聽聽聽聽聽 聽聽template_prefix聽 = 聽 ' /ms ' 聽聽聽聽聽聽聽聽 聽聽def 聽index(self): 聽聽聽聽redirect_to(action = ' list ' ) 聽聽聽聽聽聽聽聽 聽聽 def 聽list(self): 聽聽聽聽c.titleinfo聽 = 聽list(model.titleinfo.select()) 聽聽聽聽 return 聽render_response(self.template_prefix聽 + 聽 ' /list.myt ' ) 6. run 鍛戒護琛岃繍琛岋細 paster serve --reload development.ini ok錛岃闂細http://127.0.0.1:5000/ms 緇撴灉綾諱技錛?br />What Where When Baidu Baidu 2006-12-05 22:18:12 Google Google 2006-12-05 22:18:42
鍒濊瘯錛屽姛鑳戒箣寮哄ぇ錛屾搷浣滀箣綆渚匡紝鍒濊绔?img src ="http://www.tkk7.com/qixiangnj/aggbug/85722.html" width = "1" height = "1" /> ]]>Pylons0.9.3鐨勪竴涓猙ug http://www.tkk7.com/qixiangnj/archive/2006/12/05/85468.htmlant ant Mon, 04 Dec 2006 16:09:00 GMT http://www.tkk7.com/qixiangnj/archive/2006/12/05/85468.html http://www.tkk7.com/qixiangnj/comments/85468.html http://www.tkk7.com/qixiangnj/archive/2006/12/05/85468.html#Feedback 0 http://www.tkk7.com/qixiangnj/comments/commentRss/85468.html http://www.tkk7.com/qixiangnj/services/trackbacks/85468.html HowTo write a basic Blog錛宻tep by step錛屾渶鍚庤繍琛岋紝鍗存姤綾諱技涓嬮潰鐨勯敊璇細閿欒淇℃伅 File 'D:\development\python\projects\blogtutorial\blogtutorial\controllers\blog.py' , line聽12 聽in聽list c.blogPosts聽 = 聽list(model.BlogPosts.select()) File 'D:\development\python\ 2.4.4 \lib\site-packages\sqlobject- 0.7.1 -py2 .4 .egg\sqlobject\sresults.py' , line聽155 聽in聽__iter__ return聽iter(list(self.lazyIter())) File 'D:\development\python\ 2.4.4 \lib\site-packages\sqlobject- 0.7.1 -py2 .4 .egg\sqlobject\sresults.py' , line聽162 聽in聽lazyIter conn聽 = 聽self._getConnection() File 'D:\development\python\ 2.4.4 \lib\site-packages\sqlobject- 0.7.1 -py2 .4 .egg\sqlobject\sresults.py' , line聽38 聽in聽_getConnection return聽self.ops.get('connection')聽or聽self.sourceClass._connection File 'd:\development\python\ 2.4.4 \lib\site-packages\Pylons- 0.9.3 -py2 .4 .egg\pylons\database.py' , line聽104 聽in聽__get__ return聽self.hub.__get__(obj , 聽type) File 'D:\development\python\ 2.4.4 \lib\site-packages\sqlobject- 0.7.1 -py2 .4 .egg\sqlobject\dbconnection.py' , line聽888 聽in聽__get__ return聽self.getConnection() File 'D:\development\python\ 2.4.4 \lib\site-packages\sqlobject- 0.7.1 -py2 .4 .egg\sqlobject\dbconnection.py' , line聽900 聽in聽getConnection raise聽AttributeError( AttributeError:聽No聽connection聽has聽been聽defined聽for聽this聽thread聽or process 鑻﹁嫤鎼滅儲浜嗕竴鐣紝緇堜簬鎵懼埌浠ヤ笅絳旀錛?br />sqlobject support not working Reported by: climbus Assigned to: benbangert Priority: highest Milestone: 0.9.4 Component: middleware Version: 0.9.3 Severity: blocker Keywords: Cc:
]]> Pylons鍒濇帰 http://www.tkk7.com/qixiangnj/archive/2006/11/29/84176.htmlant ant Wed, 29 Nov 2006 00:31:00 GMT http://www.tkk7.com/qixiangnj/archive/2006/11/29/84176.html http://www.tkk7.com/qixiangnj/comments/84176.html http://www.tkk7.com/qixiangnj/archive/2006/11/29/84176.html#Feedback 0 http://www.tkk7.com/qixiangnj/comments/commentRss/84176.html http://www.tkk7.com/qixiangnj/services/trackbacks/84176.html 闃呰鍏ㄦ枃 ]]>
主站蜘蛛池模板:
国内精品久久久久影院亚洲 |
亚洲色图激情文学 |
国产精品免费αv视频 |
国产小视频免费观看 |
欧美亚洲国产SUV |
国产一级淫片免费播放 |
黄网站色视频免费看无下截 |
免费jjzz在线播放国产 |
色老头综合免费视频 |
亚洲精品和日本精品 |
一个人看的hd免费视频 |
久久久久久A亚洲欧洲AV冫 |
四虎影视无码永久免费 |
亚洲天天做日日做天天欢毛片 |
亚洲一区二区三区免费视频 |
亚洲娇小性xxxx色 |
国产免费直播在线观看视频 |
精品一区二区三区免费视频 |
亚洲国产精久久久久久久 |
日本免费xxxx色视频 |
亚洲AV无码一区二区大桥未久
|
国产高清免费视频 |
亚洲香蕉久久一区二区 |
国产精品极品美女免费观看 |
五月婷婷免费视频 |
亚洲第一网站免费视频 |
日韩毛片免费在线观看 |
美女巨胸喷奶水视频www免费 |
亚洲一区二区三区日本久久九 |
在线观看免费人成视频色9 |
精品视频免费在线 |
久久亚洲中文字幕精品有坂深雪 |
久久综合AV免费观看 |
国产精品免费观看视频 |
亚洲AV无码成人专区 |
中文字幕亚洲日本岛国片 |
免费福利在线播放 |
一级做a爱过程免费视 |
精品亚洲成AV人在线观看 |
免费在线观看黄网站 |
91精品成人免费国产片 |