Merge lp:~mhall119/youoneteeoh/rem-relative-imports into lp:youoneteeoh

Proposed by Michael Hall
Status: Needs review
Proposed branch: lp:~mhall119/youoneteeoh/rem-relative-imports
Merge into: lp:youoneteeoh
Prerequisite: lp:~mhall119/youoneteeoh/add-requirements-file
Diff against target: 139 lines (+18/-18)
7 files modified
notes/models.py (+1/-1)
notes/views.py (+2/-2)
settings.py (+7/-7)
shorturl/views.py (+1/-1)
templates/frontpage.html (+1/-1)
uploader/views.py (+2/-2)
urls.py (+4/-4)
To merge this branch: bzr merge lp:~mhall119/youoneteeoh/rem-relative-imports
Reviewer Review Type Date Requested Status
The u1.to masters Pending
Review via email: mp+91653@code.launchpad.net

Commit message

Removes relative imports and imports expecting 'u1to' as the base

Description of the change

Removes relative imports and imports expecting 'u1to' as the base

To post a comment you must log in.

Unmerged revisions

19. By Michael Hall

Remove relative imports and use of u1to as the base package name

18. By Michael Hall

Add requirements file

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'notes/models.py'
2--- notes/models.py 2012-02-03 02:39:51 +0000
3+++ notes/models.py 2012-02-06 13:41:18 +0000
4@@ -3,7 +3,7 @@
5
6 from django.db import models
7
8-from u1to.shorturl import cb62
9+from shorturl import cb62
10
11 # Create your models here.
12 class PublicNote(models.Model):
13
14=== modified file 'notes/views.py'
15--- notes/views.py 2012-02-03 02:39:51 +0000
16+++ notes/views.py 2012-02-06 13:41:18 +0000
17@@ -10,8 +10,8 @@
18 from django.db.models import Max
19 from django.contrib.auth.models import User
20 from django.core.urlresolvers import reverse
21-from u1to.utils import u1url
22-from u1to.shorturl import cb62
23+from utils import u1url
24+from shorturl import cb62
25 import json
26 import xml.sax
27 import types
28
29=== modified file 'settings.py'
30--- settings.py 2012-02-05 14:18:19 +0000
31+++ settings.py 2012-02-06 13:41:18 +0000
32@@ -102,7 +102,7 @@
33 'django.contrib.messages.middleware.MessageMiddleware',
34 )
35
36-ROOT_URLCONF = 'u1to.urls'
37+ROOT_URLCONF = 'urls'
38
39 TEMPLATE_DIRS = (
40 os.path.join(os.path.dirname(__file__), "templates"),
41@@ -122,11 +122,11 @@
42 'django_oauth_client',
43 'django_openid_auth',
44 # humanize from django 1.4 (copied into libs)
45- 'humanize',
46+ 'django.contrib.humanize',
47 'django.contrib.markup',
48- 'u1to.shorturl',
49- 'u1to.uploader',
50- 'u1to.notes',
51+ 'shorturl',
52+ 'uploader',
53+ 'notes',
54 )
55
56 # A sample logging configuration. The only tangible logging
57@@ -157,7 +157,7 @@
58 LOGIN_REDIRECT_URL = '/'
59
60 AUTHENTICATION_BACKENDS = (
61- 'u1to.auth.U1OpenIDBackend',
62+ 'auth.U1OpenIDBackend',
63 'django.contrib.auth.backends.ModelBackend',
64 )
65
66@@ -183,7 +183,7 @@
67 "content_url_base": "https://files.one.ubuntu.com"
68 },
69 }
70-U1_SERVER = "ubuntuone-staging"
71+U1_SERVER = "ubuntuone"
72
73 import os
74 local_settings = os.path.join(os.path.dirname(__file__), "local_settings.py")
75
76=== modified file 'shorturl/views.py'
77--- shorturl/views.py 2012-02-05 15:12:38 +0000
78+++ shorturl/views.py 2012-02-06 13:41:18 +0000
79@@ -18,7 +18,7 @@
80
81 from . import cb62
82
83-from u1to.utils import u1url
84+from utils import u1url
85
86 def dispatch(request, username, idx, extra):
87 try:
88
89=== modified file 'templates/frontpage.html'
90--- templates/frontpage.html 2012-02-05 15:12:38 +0000
91+++ templates/frontpage.html 2012-02-06 13:41:18 +0000
92@@ -42,7 +42,7 @@
93 <ul id="dests">
94 <li><a href="{% url shorturl_index %}">get short u1.to URLs for my public files</a></li>
95 <li><a href="{% url upload_index %}">Give someone else an upload URL for my personal cloud</a></li>
96-<li><a href="%{ url notes_index %}">View and publish Tomboy notes synced to Ubuntu One</a></li>
97+<li><a href="{% url notes_index %}">View and publish Tomboy notes synced to Ubuntu One</a></li>
98 </ul>
99
100 <div id="news">
101
102=== modified file 'uploader/views.py'
103--- uploader/views.py 2011-09-29 14:20:38 +0000
104+++ uploader/views.py 2012-02-06 13:41:18 +0000
105@@ -8,13 +8,13 @@
106 from django_oauth_client.decorators import oauth_token_required
107 from django_oauth_client.utils import get_client
108 from django.forms import ModelForm
109-from u1to.uploader.models import Uploader
110+from uploader.models import Uploader
111 from django.contrib.admin import widgets
112 from django.template.defaultfilters import slugify
113 from django.conf import settings
114
115 import base64, json, urllib, datetime
116-from u1to.utils import u1url
117+from utils import u1url
118
119 class UploaderForm(ModelForm):
120 class Meta:
121
122=== modified file 'urls.py'
123--- urls.py 2012-02-05 15:12:38 +0000
124+++ urls.py 2012-02-06 13:41:18 +0000
125@@ -7,10 +7,10 @@
126 from django.contrib import admin
127 admin.autodiscover()
128
129-from . import views as u1to_views
130-from .shorturl import views as shorturl_views
131-from .uploader import views as upload_views
132-from .notes import views as notes_views
133+import views as u1to_views
134+from shorturl import views as shorturl_views
135+from uploader import views as upload_views
136+from notes import views as notes_views
137
138 urlpatterns = patterns('',
139 url(r'^upload/$', upload_views.index, name="upload_index"),

Subscribers

People subscribed via source and target branches