Permalink
Browse files

Merge remote branch 'bireme/master'

Conflicts:
	examples/bibitex/bibitex.py
	isis/model/mapper.py
  • Loading branch information...
2 parents f1f64f7 + d5d3087 commit a8bc9067a840fa32327f3d4161be9da7ea42b012 @gustavofonseca gustavofonseca committed May 31, 2011
Showing with 5,232 additions and 8 deletions.
  1. +15 −0 examples/bibitex/template.pt
  2. +1 −0 examples/pyramid-attachs/.gitignore
  3. +4 −0 examples/pyramid-attachs/CHANGES.txt
  4. +2 −0 examples/pyramid-attachs/MANIFEST.in
  5. +16 −0 examples/pyramid-attachs/README.txt
  6. +13 −0 examples/pyramid-attachs/build/lib.linux-x86_64-2.6/pyramidattachs/__init__.py
  7. +3 −0 examples/pyramid-attachs/build/lib.linux-x86_64-2.6/pyramidattachs/resources.py
  8. BIN examples/pyramid-attachs/build/lib.linux-x86_64-2.6/pyramidattachs/static/favicon.ico
  9. BIN examples/pyramid-attachs/build/lib.linux-x86_64-2.6/pyramidattachs/static/footerbg.png
  10. BIN examples/pyramid-attachs/build/lib.linux-x86_64-2.6/pyramidattachs/static/headerbg.png
  11. +8 −0 examples/pyramid-attachs/build/lib.linux-x86_64-2.6/pyramidattachs/static/ie6.css
  12. BIN examples/pyramid-attachs/build/lib.linux-x86_64-2.6/pyramidattachs/static/middlebg.png
  13. +65 −0 examples/pyramid-attachs/build/lib.linux-x86_64-2.6/pyramidattachs/static/pylons.css
  14. BIN examples/pyramid-attachs/build/lib.linux-x86_64-2.6/pyramidattachs/static/pyramid-small.png
  15. BIN examples/pyramid-attachs/build/lib.linux-x86_64-2.6/pyramidattachs/static/pyramid.png
  16. BIN examples/pyramid-attachs/build/lib.linux-x86_64-2.6/pyramidattachs/static/transparent.gif
  17. +75 −0 examples/pyramid-attachs/build/lib.linux-x86_64-2.6/pyramidattachs/templates/mytemplate.pt
  18. +16 −0 examples/pyramid-attachs/build/lib.linux-x86_64-2.6/pyramidattachs/tests.py
  19. +2 −0 examples/pyramid-attachs/build/lib.linux-x86_64-2.6/pyramidattachs/views.py
  20. +52 −0 examples/pyramid-attachs/development.ini
  21. +63 −0 examples/pyramid-attachs/production.ini
  22. +7 −0 examples/pyramid-attachs/pyattachs/.couchappignore
  23. +1 −0 examples/pyramid-attachs/pyattachs/.couchapprc
  24. +40 −0 examples/pyramid-attachs/pyattachs/README.md
  25. +29 −0 examples/pyramid-attachs/pyattachs/_attachments/index.html
  26. +75 −0 examples/pyramid-attachs/pyattachs/_attachments/style/main.css
  27. +1 −0 examples/pyramid-attachs/pyattachs/_id
  28. +4 −0 examples/pyramid-attachs/pyattachs/couchapp.json
  29. +11 −0 examples/pyramid-attachs/pyattachs/evently/items/_changes/data.js
  30. +18 −0 examples/pyramid-attachs/pyattachs/evently/items/_changes/mustache.html
  31. +5 −0 examples/pyramid-attachs/pyattachs/evently/items/_changes/query.json
  32. +14 −0 examples/pyramid-attachs/pyattachs/evently/profile/profileReady/mustache.html
  33. +12 −0 examples/pyramid-attachs/pyattachs/evently/profile/profileReady/selectors/form/submit.js
  34. +1 −0 examples/pyramid-attachs/pyattachs/language
  35. +235 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/_attachments/jquery.couch.app.js
  36. +90 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/_attachments/jquery.couch.app.util.js
  37. +399 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/_attachments/jquery.evently.js
  38. +346 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/_attachments/jquery.mustache.js
  39. +174 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/_attachments/jquery.pathbinder.js
  40. +17 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/_attachments/loader.js
  41. +22 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/evently/README.md
  42. +16 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/evently/account/_init.js
  43. +1 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/evently/account/adminParty/mustache.html
  44. +10 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/evently/account/doLogin.js
  45. +8 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/evently/account/doLogout.js
  46. +10 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/evently/account/doSignup.js
  47. +4 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/evently/account/loggedIn/after.js
  48. +7 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/evently/account/loggedIn/data.js
  49. +4 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/evently/account/loggedIn/mustache.html
  50. +3 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/evently/account/loggedIn/selectors.json
  51. +1 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/evently/account/loggedOut/mustache.html
  52. +4 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/evently/account/loggedOut/selectors.json
  53. +3 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/evently/account/loginForm/after.js
  54. +6 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/evently/account/loginForm/mustache.html
  55. +6 −0 ...ples/pyramid-attachs/pyattachs/vendor/couchapp/evently/account/loginForm/selectors/form/submit.js
  56. +3 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/evently/account/signupForm/after.js
  57. +6 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/evently/account/signupForm/mustache.html
  58. +6 −0 ...les/pyramid-attachs/pyattachs/vendor/couchapp/evently/account/signupForm/selectors/form/submit.js
  59. +21 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/evently/profile/loggedIn.js
  60. +3 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/evently/profile/loggedOut/after.js
  61. +1 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/evently/profile/loggedOut/mustache.html
  62. +3 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/evently/profile/noProfile/data.js
  63. +11 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/evently/profile/noProfile/mustache.html
  64. +36 −0 ...ples/pyramid-attachs/pyattachs/vendor/couchapp/evently/profile/noProfile/selectors/form/submit.js
  65. +3 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/evently/profile/profileReady/after.js
  66. +3 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/evently/profile/profileReady/data.js
  67. +8 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/evently/profile/profileReady/mustache.html
  68. +39 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/lib/atom.js
  69. +25 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/lib/cache.js
  70. +20 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/lib/code.js
  71. +121 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/lib/docform.js
  72. +18 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/lib/linkup.js
  73. +13 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/lib/list.js
  74. +1,300 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/lib/markdown.js
  75. +261 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/lib/md5.js
  76. +339 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/lib/mustache.js
  77. +83 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/lib/path.js
  78. +8 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/lib/redirect.js
  79. +21 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/lib/utils.js
  80. +53 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/lib/validate.js
  81. +5 −0 examples/pyramid-attachs/pyattachs/vendor/couchapp/metadata.json
  82. +3 −0 examples/pyramid-attachs/pyattachs/views/all_docs/map.js
  83. +38 −0 examples/pyramid-attachs/pyramidattachs/__init__.py
  84. 0 examples/pyramid-attachs/pyramidattachs/main/__init__.py
  85. +8 −0 examples/pyramid-attachs/pyramidattachs/main/models.py
  86. +10 −0 examples/pyramid-attachs/pyramidattachs/main/templates/list.pt
  87. +11 −0 examples/pyramid-attachs/pyramidattachs/main/templates/view.pt
  88. +80 −0 examples/pyramid-attachs/pyramidattachs/main/views.py
  89. +3 −0 examples/pyramid-attachs/pyramidattachs/resources.py
  90. BIN examples/pyramid-attachs/pyramidattachs/static/favicon.ico
  91. BIN examples/pyramid-attachs/pyramidattachs/static/footerbg.png
  92. BIN examples/pyramid-attachs/pyramidattachs/static/headerbg.png
  93. +8 −0 examples/pyramid-attachs/pyramidattachs/static/ie6.css
  94. BIN examples/pyramid-attachs/pyramidattachs/static/middlebg.png
  95. +65 −0 examples/pyramid-attachs/pyramidattachs/static/pylons.css
  96. BIN examples/pyramid-attachs/pyramidattachs/static/pyramid-small.png
  97. BIN examples/pyramid-attachs/pyramidattachs/static/pyramid.png
  98. BIN examples/pyramid-attachs/pyramidattachs/static/transparent.gif
  99. +75 −0 examples/pyramid-attachs/pyramidattachs/templates/mytemplate.pt
  100. +16 −0 examples/pyramid-attachs/pyramidattachs/tests.py
  101. +2 −0 examples/pyramid-attachs/pyramidattachs/views.py
  102. +27 −0 examples/pyramid-attachs/setup.cfg
  103. +37 −0 examples/pyramid-attachs/setup.py
  104. +4 −0 examples/textproperty/CHANGES.txt
  105. +2 −0 examples/textproperty/MANIFEST.in
  106. +3 −0 examples/textproperty/README.txt
  107. +52 −0 examples/textproperty/development.ini
  108. +63 −0 examples/textproperty/production.ini
  109. +27 −0 examples/textproperty/setup.cfg
  110. +37 −0 examples/textproperty/setup.py
  111. +42 −0 examples/textproperty/textproperty/__init__.py
  112. 0 examples/textproperty/textproperty/main/__init__.py
  113. +7 −0 examples/textproperty/textproperty/main/models.py
  114. +10 −0 examples/textproperty/textproperty/main/templates/list.pt
  115. +10 −0 examples/textproperty/textproperty/main/templates/view.pt
  116. +88 −0 examples/textproperty/textproperty/main/views.py
  117. +3 −0 examples/textproperty/textproperty/resources.py
  118. BIN examples/textproperty/textproperty/static/favicon.ico
  119. BIN examples/textproperty/textproperty/static/footerbg.png
  120. BIN examples/textproperty/textproperty/static/headerbg.png
  121. +8 −0 examples/textproperty/textproperty/static/ie6.css
  122. BIN examples/textproperty/textproperty/static/middlebg.png
  123. +65 −0 examples/textproperty/textproperty/static/pylons.css
  124. BIN examples/textproperty/textproperty/static/pyramid-small.png
  125. BIN examples/textproperty/textproperty/static/pyramid.png
  126. BIN examples/textproperty/textproperty/static/transparent.gif
  127. +75 −0 examples/textproperty/textproperty/templates/mytemplate.pt
  128. +16 −0 examples/textproperty/textproperty/tests.py
  129. +2 −0 examples/textproperty/textproperty/views.py
  130. +0 −4 isis/model/couchdb.py
  131. +6 −4 isis/model/mapper.py
  132. BIN tools/lib/Bruma.jar
  133. BIN tools/lib/jyson-1.0.1.jar
@@ -0,0 +1,15 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <script type="text/javascript" src="/deform_static/scripts/deform.js"></script>
+ <script type="text/javascript">
+ deform.load()
+ </script>
+ </head>
+ <body>
+ <div>
+ <span tal:replace="structure content"></span>
+ </div>
+ </body>
+</html>
@@ -0,0 +1 @@
+*.pyc
@@ -0,0 +1,4 @@
+0.0
+---
+
+- Initial version
@@ -0,0 +1,2 @@
+include *.txt *.ini *.cfg *.rst
+recursive-include pyramidattachs *.ico *.png *.css *.gif *.jpg *.pt *.txt *.mak *.mako *.js *.html *.xml
@@ -0,0 +1,16 @@
+pyramid-attachs README
+
+This is an example using Isisdm+Couchdb+Pyramid
+
+Before to use:
+
+ You must have Isisdm [1] and Pyramid [2] in your enviroment
+ Your couchdb database must have an couchdb view wich list all
+documents and retrieve its name (this view already exists, you just nedd to push it)
+
+Pushing couchdb view:
+
+ Enter in 'pyattachs' folder and run:
+
+ $ couchapp push <your-database-name> #in this example, the databese is named as 'pyramid-attachments'
+
@@ -0,0 +1,13 @@
+from pyramid.config import Configurator
+from pyramidattachs.resources import Root
+
+def main(global_config, **settings):
+ """ This function returns a Pyramid WSGI application.
+ """
+ config = Configurator(root_factory=Root, settings=settings)
+ config.add_view('pyramidattachs.views.my_view',
+ context='pyramidattachs:resources.Root',
+ renderer='pyramidattachs:templates/mytemplate.pt')
+ config.add_static_view('static', 'pyramidattachs:static')
+ return config.make_wsgi_app()
+
@@ -0,0 +1,3 @@
+class Root(object):
+ def __init__(self, request):
+ self.request = request
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,8 @@
+* html img,
+* html .png{position:relative;behavior:expression((this.runtimeStyle.behavior="none")&&(this.pngSet?this.pngSet=true:(this.nodeName == "IMG" && this.src.toLowerCase().indexOf('.png')>-1?(this.runtimeStyle.backgroundImage = "none",
+this.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + this.src + "',sizingMethod='image')",
+this.src = "static/transparent.gif"):(this.origBg = this.origBg? this.origBg :this.currentStyle.backgroundImage.toString().replace('url("','').replace('")',''),
+this.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + this.origBg + "',sizingMethod='crop')",
+this.runtimeStyle.backgroundImage = "none")),this.pngSet=true)
+);}
+#wrap{display:table;height:100%}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,65 @@
+html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-size:100%;/* 16px */
+vertical-align:baseline;background:transparent;}
+body{line-height:1;}
+ol,ul{list-style:none;}
+blockquote,q{quotes:none;}
+blockquote:before,blockquote:after,q:before,q:after{content:'';content:none;}
+:focus{outline:0;}
+ins{text-decoration:none;}
+del{text-decoration:line-through;}
+table{border-collapse:collapse;border-spacing:0;}
+sub{vertical-align:sub;font-size:smaller;line-height:normal;}
+sup{vertical-align:super;font-size:smaller;line-height:normal;}
+ul,menu,dir{display:block;list-style-type:disc;margin:1em 0;padding-left:40px;}
+ol{display:block;list-style-type:decimal-leading-zero;margin:1em 0;padding-left:40px;}
+li{display:list-item;}
+ul ul,ul ol,ul dir,ul menu,ul dl,ol ul,ol ol,ol dir,ol menu,ol dl,dir ul,dir ol,dir dir,dir menu,dir dl,menu ul,menu ol,menu dir,menu menu,menu dl,dl ul,dl ol,dl dir,dl menu,dl dl{margin-top:0;margin-bottom:0;}
+ol ul,ul ul,menu ul,dir ul,ol menu,ul menu,menu menu,dir menu,ol dir,ul dir,menu dir,dir dir{list-style-type:circle;}
+ol ol ul,ol ul ul,ol menu ul,ol dir ul,ol ol menu,ol ul menu,ol menu menu,ol dir menu,ol ol dir,ol ul dir,ol menu dir,ol dir dir,ul ol ul,ul ul ul,ul menu ul,ul dir ul,ul ol menu,ul ul menu,ul menu menu,ul dir menu,ul ol dir,ul ul dir,ul menu dir,ul dir dir,menu ol ul,menu ul ul,menu menu ul,menu dir ul,menu ol menu,menu ul menu,menu menu menu,menu dir menu,menu ol dir,menu ul dir,menu menu dir,menu dir dir,dir ol ul,dir ul ul,dir menu ul,dir dir ul,dir ol menu,dir ul menu,dir menu menu,dir dir menu,dir ol dir,dir ul dir,dir menu dir,dir dir dir{list-style-type:square;}
+.hidden{display:none;}
+p{line-height:1.5em;}
+h1{font-size:1.75em;line-height:1.7em;font-family:helvetica,verdana;}
+h2{font-size:1.5em;line-height:1.7em;font-family:helvetica,verdana;}
+h3{font-size:1.25em;line-height:1.7em;font-family:helvetica,verdana;}
+h4{font-size:1em;line-height:1.7em;font-family:helvetica,verdana;}
+html,body{width:100%;height:100%;}
+body{margin:0;padding:0;background-color:#ffffff;position:relative;font:16px/24px "Nobile","Lucida Grande",Lucida,Verdana,sans-serif;}
+a{color:#1b61d6;text-decoration:none;}
+a:hover{color:#e88f00;text-decoration:underline;}
+body h1,
+body h2,
+body h3,
+body h4,
+body h5,
+body h6{font-family:"Neuton","Lucida Grande",Lucida,Verdana,sans-serif;font-weight:normal;color:#373839;font-style:normal;}
+#wrap{min-height:100%;}
+#header,#footer{width:100%;color:#ffffff;height:40px;position:absolute;text-align:center;line-height:40px;overflow:hidden;font-size:12px;vertical-align:middle;}
+#header{background:#000000;top:0;font-size:14px;}
+#footer{bottom:0;background:#000000 url(footerbg.png) repeat-x 0 top;position:relative;margin-top:-40px;clear:both;}
+.header,.footer{width:750px;margin-right:auto;margin-left:auto;}
+.wrapper{width:100%}
+#top,#top-small,#bottom{width:100%;}
+#top{color:#000000;height:230px;background:#ffffff url(headerbg.png) repeat-x 0 top;position:relative;}
+#top-small{color:#000000;height:60px;background:#ffffff url(headerbg.png) repeat-x 0 top;position:relative;}
+#bottom{color:#222;background-color:#ffffff;}
+.top,.top-small,.middle,.bottom{width:750px;margin-right:auto;margin-left:auto;}
+.top{padding-top:40px;}
+.top-small{padding-top:10px;}
+#middle{width:100%;height:100px;background:url(middlebg.png) repeat-x;border-top:2px solid #ffffff;border-bottom:2px solid #b2b2b2;}
+.app-welcome{margin-top:25px;}
+.app-name{color:#000000;font-weight:bold;}
+.bottom{padding-top:50px;}
+#left{width:350px;float:left;padding-right:25px;}
+#right{width:350px;float:right;padding-left:25px;}
+.align-left{text-align:left;}
+.align-right{text-align:right;}
+.align-center{text-align:center;}
+ul.links{margin:0;padding:0;}
+ul.links li{list-style-type:none;font-size:14px;}
+form{border-style:none;}
+fieldset{border-style:none;}
+input{color:#222;border:1px solid #ccc;font-family:sans-serif;font-size:12px;line-height:16px;}
+input[type=text],input[type=password]{width:205px;}
+input[type=submit]{background-color:#ddd;font-weight:bold;}
+/*Opera Fix*/
+body:before{content:"";height:100%;float:left;width:0;margin-top:-32767px;}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,75 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" xmlns:tal="http://xml.zope.org/namespaces/tal">
+<head>
+ <title>The Pyramid Web Application Development Framework</title>
+ <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
+ <meta name="keywords" content="python web application" />
+ <meta name="description" content="pyramid web application" />
+ <link rel="shortcut icon" href="${request.static_url('pyramidattachs:static/favicon.ico')}" />
+ <link rel="stylesheet" href="${request.static_url('pyramidattachs:static/pylons.css')}" type="text/css" media="screen" charset="utf-8" />
+ <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Neuton|Nobile:regular,i,b,bi&amp;subset=latin" type="text/css" media="screen" charset="utf-8" />
+ <!--[if lte IE 6]>
+ <link rel="stylesheet" href="${request.static_url('pyramidattachs:static/ie6.css')}" type="text/css" media="screen" charset="utf-8" />
+ <![endif]-->
+</head>
+<body>
+ <div id="wrap">
+ <div id="top">
+ <div class="top align-center">
+ <div><img src="${request.static_url('pyramidattachs:static/pyramid.png')}" width="750" height="169" alt="pyramid"/></div>
+ </div>
+ </div>
+ <div id="middle">
+ <div class="middle align-center">
+ <p class="app-welcome">
+ Welcome to <span class="app-name">${project}</span>, an application generated by<br/>
+ the Pyramid web application development framework.
+ </p>
+ </div>
+ </div>
+ <div id="bottom">
+ <div class="bottom">
+ <div id="left" class="align-right">
+ <h2>Search documentation</h2>
+ <form method="get" action="http://docs.pylonsproject.org/projects/pyramid/dev/search.html">
+ <input type="text" id="q" name="q" value="" />
+ <input type="submit" id="x" value="Go" />
+ </form>
+ </div>
+ <div id="right" class="align-left">
+ <h2>Pyramid links</h2>
+ <ul class="links">
+ <li>
+ <a href="http://pylonsproject.org">Pylons Website</a>
+ </li>
+ <li>
+ <a href="http://docs.pylonsproject.org/projects/pyramid/dev/#narrative-documentation">Narrative Documentation</a>
+ </li>
+ <li>
+ <a href="http://docs.pylonsproject.org/projects/pyramid/dev/#api-documentation">API Documentation</a>
+ </li>
+ <li>
+ <a href="http://docs.pylonsproject.org/projects/pyramid/dev/#tutorials">Tutorials</a>
+ </li>
+ <li>
+ <a href="http://docs.pylonsproject.org/projects/pyramid/dev/#change-history">Change History</a>
+ </li>
+ <li>
+ <a href="http://docs.pylonsproject.org/projects/pyramid/dev/#sample-applications">Sample Applications</a>
+ </li>
+ <li>
+ <a href="http://docs.pylonsproject.org/projects/pyramid/dev/#support-and-development">Support and Development</a>
+ </li>
+ <li>
+ <a href="irc://irc.freenode.net#pyramid">IRC Channel</a>
+ </li>
+ </ul>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div id="footer">
+ <div class="footer">&copy; Copyright 2008-2011, Agendaless Consulting.</div>
+ </div>
+</body>
+</html>
@@ -0,0 +1,16 @@
+import unittest
+
+from pyramid import testing
+
+class ViewTests(unittest.TestCase):
+ def setUp(self):
+ self.config = testing.setUp()
+
+ def tearDown(self):
+ testing.tearDown()
+
+ def test_my_view(self):
+ from pyramidattachs.views import my_view
+ request = testing.DummyRequest()
+ info = my_view(request)
+ self.assertEqual(info['project'], 'pyramid-attachs')
@@ -0,0 +1,2 @@
+def my_view(request):
+ return {'project':'pyramid-attachs'}
@@ -0,0 +1,52 @@
+[app:pyramid-attachs]
+use = egg:pyramid-attachs
+reload_templates = true
+debug_authorization = false
+debug_notfound = false
+debug_routematch = false
+debug_templates = true
+default_locale_name = en
+db_uri = http://127.0.0.1:5984
+db_name = pyramid-attachments
+
+
+[pipeline:main]
+pipeline =
+ egg:WebError#evalerror
+ pyramid-attachs
+
+[server:main]
+use = egg:Paste#http
+host = 0.0.0.0
+port = 6543
+
+# Begin logging configuration
+
+[loggers]
+keys = root, pyramidattachs
+
+[handlers]
+keys = console
+
+[formatters]
+keys = generic
+
+[logger_root]
+level = INFO
+handlers = console
+
+[logger_pyramidattachs]
+level = DEBUG
+handlers =
+qualname = pyramidattachs
+
+[handler_console]
+class = StreamHandler
+args = (sys.stderr,)
+level = NOTSET
+formatter = generic
+
+[formatter_generic]
+format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
+
+# End logging configuration
@@ -0,0 +1,63 @@
+[app:pyramid-attachs]
+use = egg:pyramid-attachs
+reload_templates = false
+debug_authorization = false
+debug_notfound = false
+debug_routematch = false
+debug_templates = false
+default_locale_name = en
+
+[filter:weberror]
+use = egg:WebError#error_catcher
+debug = false
+;error_log =
+;show_exceptions_in_wsgi_errors = true
+;smtp_server = localhost
+;error_email = janitor@example.com
+;smtp_username = janitor
+;smtp_password = "janitor's password"
+;from_address = paste@localhost
+;error_subject_prefix = "Pyramid Error"
+;smtp_use_tls =
+;error_message =
+
+[pipeline:main]
+pipeline =
+ weberror
+ pyramid-attachs
+
+[server:main]
+use = egg:Paste#http
+host = 0.0.0.0
+port = 6543
+
+# Begin logging configuration
+
+[loggers]
+keys = root, pyramidattachs
+
+[handlers]
+keys = console
+
+[formatters]
+keys = generic
+
+[logger_root]
+level = WARN
+handlers = console
+
+[logger_pyramidattachs]
+level = WARN
+handlers =
+qualname = pyramidattachs
+
+[handler_console]
+class = StreamHandler
+args = (sys.stderr,)
+level = NOTSET
+formatter = generic
+
+[formatter_generic]
+format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
+
+# End logging configuration
@@ -0,0 +1,7 @@
+[
+ // filenames matching these regexps will not be pushed to the database
+ // uncomment to activate; separate entries with ","
+ // ".*~$"
+ // ".*\\.swp$"
+ // ".*\\.bak$"
+]
@@ -0,0 +1 @@
+{}
Oops, something went wrong.

0 comments on commit a8bc906

Please sign in to comment.