import pingback -------------------- -------------------- ------------

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
>>> import pingback
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
/home/piranha/dev/web/byteflow/<ipython console> in <module>()
/home/piranha/dev/web/byteflow/apps/pingback/__init__.py in <module>()
14 from django.utils.encoding import force_unicode, smart_str
15
---> 16 from pingback.models import Pingback
17 from pingback.exceptions import PingbackError
18 from pingback.client import ping_external_links, ping_directories
/home/piranha/dev/web/byteflow/apps/pingback/models.py in <module>()
93 list_display = ('url', 'admin_object', 'date', 'approved', 'title')
94
---> 95 admin.site.register(Pingback, PingbackAdmin)
96
97 class PingbackClientAdmin(admin.ModelAdmin):
/usr/local/lib/python2.5/site-packages/django/contrib/admin/sites.py in register(self, model_or_iterable, admin_class, **options)
89
90 # Validate (which might be a no-op)
---> 91 validate(admin_class, model)
92
93 # Instantiate the admin class to save in the registry
/usr/local/lib/python2.5/site-packages/django/contrib/admin/validation.py in validate(cls, model)
20 # Before we can introspect models, they need to be fully loaded so that
21 # inter-relations are set up correctly. We force that here.
---> 22 models.get_apps()
23
24 opts = model._meta
/usr/local/lib/python2.5/site-packages/django/db/models/loading.py in get_apps(self)
95 def get_apps(self):
96 "Returns a list of all installed modules that contain models."
---> 97 self._populate()
98
99 # Ensure the returned list is always in the same order (with new apps
/usr/local/lib/python2.5/site-packages/django/db/models/loading.py in _populate(self)
55 if app_name in self.handled:
56 continue
---> 57 self.load_app(app_name, True)
58 if not self.nesting_level:
59 for app_name in self.postponed:
/usr/local/lib/python2.5/site-packages/django/db/models/loading.py in load_app(self, app_name, can_postpone)
70 self.handled[app_name] = None
71 self.nesting_level += 1
---> 72 mod = __import__(app_name, {}, {}, ['models'])
73 self.nesting_level -= 1
74 if not hasattr(mod, 'models'):
/home/piranha/dev/web/byteflow/apps/accounts/models.py in <module>()
3 from django.db import models
4 from django.contrib.auth.models import User
----> 5 from django.contrib.auth.admin import UserAdmin
6 from django.conf import settings
7 from django.contrib import admin
/usr/local/lib/python2.5/site-packages/django/contrib/auth/admin.py in <module>()
8 from django.http import HttpResponseRedirect
9 from django.utils.translation import ugettext, ugettext_lazy as _
---> 10 from django.contrib.auth.forms import UserCreationForm, UserChangeForm, AdminPasswordChangeForm
11 from django.contrib import admin
12
/usr/local/lib/python2.5/site-packages/django/contrib/auth/forms.py in <module>()
8 from django.utils.http import int_to_base36
9
---> 10 class UserCreationForm(forms.ModelForm):
11 """
12 A form that creates a user, with no privileges, from the given username and password.
/usr/local/lib/python2.5/site-packages/django/contrib/auth/forms.py in UserCreationForm()
14 username = forms.RegexField(label=_("Username"), max_length=30, regex=r'^\w+$',
15 help_text = _("Required. 30 characters or fewer. Alphanumeric characters only (letters, digits and underscores)."),
---> 16 error_message = _("This value must contain only letters, numbers and underscores."))
17 password1 = forms.CharField(label=_("Password"), widget=forms.PasswordInput)
18 password2 = forms.CharField(label=_("Password confirmation"), widget=forms.PasswordInput)
/usr/local/lib/python2.5/site-packages/django/forms/fields.py in __init__(self, regex, max_length, min_length, error_message, *args, **kwargs)
393 """
394 # error_message is just kept for backwards compatibility:
--> 395 if error_message:
396 error_messages = kwargs.get('error_messages') or {}
397 error_messages['invalid'] = error_message
/usr/local/lib/python2.5/site-packages/django/utils/functional.py in __wrapper__(self, *args, **kw)
186 # Automatically triggers the evaluation of a lazy value and
187 # applies the given magic method of the result type.
--> 188 res = self.__func(*self.__args, **self.__kw)
189 for t in type(res).mro():
190 if t in self.__dispatch:
/usr/local/lib/python2.5/site-packages/django/utils/translation/__init__.py in ugettext(message)
60
61 def ugettext(message):
---> 62 return real_ugettext(message)
63
64 def ungettext(singular, plural, number):
/usr/local/lib/python2.5/site-packages/django/utils/translation/__init__.py in delayed_loader(*args, **kwargs)
41
42 # Make the originally requested function call on the way out the door.
---> 43 return g['real_%s' % caller](*args, **kwargs)
44
45 g = globals()
/usr/local/lib/python2.5/site-packages/django/utils/translation/trans_real.py in ugettext(message)
288
289 def ugettext(message):
--> 290 return do_translate(message, 'ugettext')
291
292 def gettext_noop(message):
/usr/local/lib/python2.5/site-packages/django/utils/translation/trans_real.py in do_translate(message, translation_function)
278 if _default is None:
279 from django.conf import settings
--> 280 _default = translation(settings.LANGUAGE_CODE)
281 result = getattr(_default, translation_function)(message)
282 if isinstance(message, SafeData):
/usr/local/lib/python2.5/site-packages/django/utils/translation/trans_real.py in translation(language)
196 return res
197
--> 198 default_translation = _fetch(settings.LANGUAGE_CODE)
199 current_translation = _fetch(language, fallback=default_translation)
200
/usr/local/lib/python2.5/site-packages/django/utils/translation/trans_real.py in _fetch(lang, fallback)
181 app = getattr(__import__(appname[:p], {}, {}, [appname[p+1:]]), appname[p+1:])
182 else:
--> 183 app = __import__(appname, {}, {}, [])
184
185 apppath = os.path.join(os.path.dirname(app.__file__), 'locale')
/home/piranha/dev/web/byteflow/apps/tagging/__init__.py in <module>()
2
----> 3 from tagging.external_managers import ModelTaggedItemManager, TagDescriptor
4
5 VERSION = (0, 3, 'pre')
6
/home/piranha/dev/web/byteflow/apps/tagging/external_managers.py in <module>()
6 from django.db import models
7
----> 8 from tagging.models import Tag, TaggedItem
9
10 class ModelTagManager(models.Manager):
/home/piranha/dev/web/byteflow/apps/tagging/models.py in <module>()
64 class TagAdmin(admin.ModelAdmin):
65 list_display = ('name', 'translation')
66
---> 67 admin.site.register(Tag, TagAdmin)
68 admin.site.register(TaggedItem)
/usr/local/lib/python2.5/site-packages/django/contrib/admin/sites.py in register(self, model_or_iterable, admin_class, **options)
89
90 # Validate (which might be a no-op)
---> 91 validate(admin_class, model)
92
93 # Instantiate the admin class to save in the registry
/usr/local/lib/python2.5/site-packages/django/contrib/admin/validation.py in validate(cls, model)
20 # Before we can introspect models, they need to be fully loaded so that
21 # inter-relations are set up correctly. We force that here.
---> 22 models.get_apps()
23
24 opts = model._meta
/usr/local/lib/python2.5/site-packages/django/db/models/loading.py in get_apps(self)
95 def get_apps(self):
96 "Returns a list of all installed modules that contain models."
---> 97 self._populate()
98
99 # Ensure the returned list is always in the same order (with new apps
/usr/local/lib/python2.5/site-packages/django/db/models/loading.py in _populate(self)
55 if app_name in self.handled:
56 continue
---> 57 self.load_app(app_name, True)
58 if not self.nesting_level:
59 for app_name in self.postponed:
/usr/local/lib/python2.5/site-packages/django/db/models/loading.py in load_app(self, app_name, can_postpone)
70 self.handled[app_name] = None
71 self.nesting_level += 1
---> 72 mod = __import__(app_name, {}, {}, ['models'])
73 self.nesting_level -= 1
74 if not hasattr(mod, 'models'):
/home/piranha/dev/web/byteflow/apps/discussion/models.py in <module>()
175 class CommentNodeAdmin(admin.ModelAdmin):
176 list_display = ('get_clean_html', 'user', 'pub_date', 'content_type', 'object_id', 'reply_to_id', 'approved')
177
--> 178 admin.site.register(CommentNode, CommentNodeAdmin)
179
/usr/local/lib/python2.5/site-packages/django/contrib/admin/sites.py in register(self, model_or_iterable, admin_class, **options)
89
90 # Validate (which might be a no-op)
---> 91 validate(admin_class, model)
92
93 # Instantiate the admin class to save in the registry
/usr/local/lib/python2.5/site-packages/django/contrib/admin/validation.py in validate(cls, model)
20 # Before we can introspect models, they need to be fully loaded so that
21 # inter-relations are set up correctly. We force that here.
---> 22 models.get_apps()
23
24 opts = model._meta
/usr/local/lib/python2.5/site-packages/django/db/models/loading.py in get_apps(self)
95 def get_apps(self):
96 "Returns a list of all installed modules that contain models."
---> 97 self._populate()
98
99 # Ensure the returned list is always in the same order (with new apps
/usr/local/lib/python2.5/site-packages/django/db/models/loading.py in _populate(self)
55 if app_name in self.handled:
56 continue
---> 57 self.load_app(app_name, True)
58 if not self.nesting_level:
59 for app_name in self.postponed:
/usr/local/lib/python2.5/site-packages/django/db/models/loading.py in load_app(self, app_name, can_postpone)
70 self.handled[app_name] = None
71 self.nesting_level += 1
---> 72 mod = __import__(app_name, {}, {}, ['models'])
73 self.nesting_level -= 1
74 if not hasattr(mod, 'models'):
/home/piranha/dev/web/byteflow/apps/livejournal/models.py in <module>()
5
6 from lib.helpers import get_object_or_none
----> 7 from blog.models import Post, PostAdmin
8 from livejournal.utils import lj_crosspost, lj_delete
9
/home/piranha/dev/web/byteflow/apps/blog/models.py in <module>()
15 from tagging.models import Tag
16 from tagging.fields import TagField
---> 17 from pingback import Pingback, create_ping_func
18 from pingback import ping_external_links, ping_directories
19 import xmlrpc
ImportError: cannot import name Pingback