List Info

Thread: plone usernames starting with digits




plone usernames starting with digits
user name
2006-03-27 21:16:11
Hello

    It  seems that I can not create a usename that starts
with a digit. 
Is there a reason for this? Can it be configured otherwise?
We have a 
group that would like to create a user called 8pi, it is a
name they 
have used on many other accounts and would like to keep it
for their 
plone site for consistency.

Thanks
Steve McDonald

_______________________________________________
Setup mailing list
Setuplists.plone.org
http://
lists.plone.org/mailman/listinfo/setup
plone usernames starting with digits
user name
2006-03-28 07:24:45
Steven McDonald wrote:
> Hello
> 
>    It  seems that I can not create a usename that
starts with a digit. 
> Is there a reason for this? Can it be configured
otherwise? We have a 
> group that would like to create a user called 8pi, it
is a name they 
> have used on many other accounts and would like to keep
it for their 
> plone site for consistency.
> 
> Thanks
> Steve McDonald
> 

Python 2.3.5 (#1, Jun 15 2005, 14:15:25)
[GCC 3.4.3 20050227 (Red Hat 3.4.3-22.fc3)] on linux2
Type "help", "copyright",
"credits" or "license" for more
information.
 >>> class A:
...     pass
...
 >>> a = A()
 >>> a.8pi = 'foo'
   File "<stdin>", line 1
     a.8pi = 'foo'
       ^
SyntaxError: invalid syntax
 >>> setattr(a, '8pi', 'foo')
 >>> a.8pi
   File "<stdin>", line 1
     a.8pi
       ^
SyntaxError: invalid syntax
 >>> getattr(a, '8pi')
'foo'

...

So, while it's not strictly forbidden at this level
it makes life obviously harder ...
(but frankly speaking I don't know whether there
are really serious issues when enabling such ids)

Raphael

_______________________________________________
Setup mailing list
Setuplists.plone.org
http://
lists.plone.org/mailman/listinfo/setup
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )