# Path: pygowave_server/forms.py
# class MyRegistrationForm(RegistrationForm):
# 	
# 	def clean_username(self):
# 		"""
# 		Validate that the username is at least three characters long.
# 		
# 		"""
# 		username = super(MyRegistrationForm, self).clean_username()
# 		if len(username) < 3:
# 			raise forms.ValidationError(_(u'Your desired username is too short. Please enter at least three characters.'))
# 		return username


from django.conf.urls.defaults import *
from django.contrib import admin
from registration.views import register
from pygowave_server.forms import MyRegistrationForm

#
# PyGoWave Server - The Python Google Wave Server
# Copyright 2009 Patrick Schneider <patrick.p2k.schneider@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#


admin.autodiscover()


js_info_dict = {
    'packages': ('pygowave_client',),
}

urlpatterns = patterns('',
	(r'^admin/(.*)', admin.site.root),
	url(r'^accounts/register/$', register, name='registration_register', kwargs={

# Path: pygowave_server/forms.py
# class MyRegistrationForm(RegistrationForm):
# 	
# 	def clean_username(self):
# 		"""
# 		Validate that the username is at least three characters long.
# 		
# 		"""
# 		username = super(MyRegistrationForm, self).clean_username()
# 		if len(username) < 3:
# 			raise forms.ValidationError(_(u'Your desired username is too short. Please enter at least three characters.'))
# 		return username


# Path: urls.py
from django.conf.urls.defaults import *
from django.contrib import admin
from registration.views import register
from pygowave_server.forms import MyRegistrationForm


#
# PyGoWave Server - The Python Google Wave Server
# Copyright 2009 Patrick Schneider <patrick.p2k.schneider@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#


admin.autodiscover()


js_info_dict = {
    'packages': ('pygowave_client',),
}

urlpatterns = patterns('',
	(r'^admin/(.*)', admin.site.root),
	url(r'^accounts/register/$', register, name='registration_register', kwargs={

		"form_class": MyRegistrationForm,