Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

tagging 0.2.1

  • Loading branch information...
commit aad18f7d5afba9620301c3cc81a73b08092ec0e8 1 parent ff8ce26
percious17 authored
View
4 setup.cfg
@@ -2,5 +2,5 @@
release = egg_info -rDb "" sdist bdist_egg register upload
[egg_info]
-tag_build = dev
-tag_svn_revision = true
+#tag_build = dev
+#tag_svn_revision = true
View
7 setup.py
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages
import os
-version = '0.2'
+version = '0.2.1'
setup(name='tgext.crud',
version=version,
@@ -23,10 +23,9 @@
include_package_data=True,
zip_safe=True,
install_requires=[
- # 'setuptools',
- 'sprox',
+ 'sprox>=0.5.4.1',
+ 'tw.forms>=0.9',
# 'tw.dojo',
- 'tw.forms',
# -*- Extra requirements: -*-
],
entry_points="""
View
4 tgext/crud/controller.py
@@ -74,9 +74,6 @@ def __init__(self, session, menu_items=None):
if not hasattr(self, type_) and hasattr(self, type_+'_type'):
setattr(self, type_, getattr(self, type_+'_type')(self.session))
- if hasattr(self, 'new_form_type'):
- self.new_form = self.ne
-
if hasattr(self, 'new_form'):
#register the validators since they are none from the parent class
register_validators(self, 'post', self.new_form)
@@ -97,7 +94,6 @@ def get_all(self, *args, **kw):
values = []
try:
import tw.dojo
- print 'here'
except ImportError:
import warnings
warnings.warn("tgext.crud does not support pagination without dojo,"\
View
6 tgext/crud/templates/edit.html
@@ -4,10 +4,6 @@
<xi:include href="master.html" />
<head>
- <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
- <title>Welcome to TurboGears 2.0, standing on the
- shoulders of giants, since 2007</title>
-
<style>
#menu_items {
padding:0px 12px 0px 2px;
@@ -19,7 +15,7 @@
<div style="height:0px;"> &nbsp; </div>
<div style="float:left; padding-left:0px;">
<ul id="menu_items" py:if="hasattr(tmpl_context, 'menu_items')">
- <li py:for="lower, item in sorted(tmpl_context.menu_items.iteritems())"><a href="../../$lower">$item.__name__</a></li>
+ <li py:for="lower, item in sorted(tmpl_context.menu_items.iteritems())"><a href="../../${lower}s/">$item.__name__</a></li>
</ul>
</div>
<div style="float:left;">
View
6 tgext/crud/templates/get_all.html
@@ -3,10 +3,6 @@
xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="master.html" />
<head>
- <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
- <title>Welcome to TurboGears 2.0, standing on the
- shoulders of giants, since 2007</title>
-
<style>
#menu_items {
padding:0px 12px 0px 2px;
@@ -26,7 +22,7 @@
<h1 style="margin-top:1px;">$model Listing</h1>
<a href='new/'>New</a> $model
<div style="height:50%; width:90%">
- ${XML(tmpl_context.widget(value=values, action='../'+model.lower()+'.json'))}
+ ${XML(tmpl_context.widget(value=values, action='../'+model.lower()+'s.json'))}
</div>
</div>
</div>
View
4 tgext/crud/templates/get_delete.html
@@ -4,10 +4,6 @@
<xi:include href="master.html" />
<head>
- <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
- <title>Welcome to TurboGears 2.0, standing on the
- shoulders of giants, since 2007</title>
-
</head>
<body class="tundra">
A page to help confirm deletes.
View
5 tgext/crud/templates/new.html
@@ -4,9 +4,6 @@
<xi:include href="master.html" />
<head>
- <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
- <title>Welcome to TurboGears 2.0, standing on the
- shoulders of giants, since 2007</title>
<style>
#menu_items {
padding:0px 12px 0px 2px;
@@ -19,7 +16,7 @@
<div style="float:left; padding-left:0px;">
<ul id="menu_items" py:if="hasattr(tmpl_context, 'menu_items')">
- <li py:for="lower, item in sorted(tmpl_context.menu_items.iteritems())"><a href="../$lower">$item.__name__</a></li>
+ <li py:for="lower, item in sorted(tmpl_context.menu_items.iteritems())"><a href="../${lower}s/">$item.__name__</a></li>
</ul>
</div>
<div style="float:left;">
Please sign in to comment.
Something went wrong with that request. Please try again.