The fix to this problem is to not use crypt at all. crypt is sort of
unix specific, which this day and age basicaly means non-windows
specific, and in my world windows is the minority legacy operating
system, but I suppose that's not true for everyone.

So I've just made a change to the tiddlyweb code to store passwords as
a sha hex digest instead of with crypt. Crypt was used for sake of
simplicity but that turns out not to be simple.

I'll commit this code and release a new version to the usual places.

On Dec 2, 12:10 pm, Reenen <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> Yesterday evening, I got one to work sweetly on my linux machine at
> home.  However at work I am on windows. And so, I'm trying to get it
> to work on windows... but apparently "crypt" is a linux package, and
> windows does it's stuff differently...
>
> Quote from #python on freenode:
> Reenen: nope, and as I said, it doesn't really make sense, because
> it's a *platform* service. The 'crypt' library does whatever the
> platform wants it to do. It uses DES or MD5 or SHA depending on what
> the platform wants, for instance.
>
> When I try to create an instance I get this error:
>
> C:\>python \TiddlyWiki\core\twanager instance PepWiki
> Traceback (most recent call last):
>   File "\TiddlyWiki\core\twanager", line 8, in <module>
>     from tiddlyweb.manage import handle
>   File "c:\TiddlyWiki\core\tiddlyweb\manage.py", line 11, in <module>
>     from tiddlyweb.model.user import User
>   File "c:\TiddlyWiki\core\tiddlyweb\model\user.py", line 5, in
> <module>
>     from crypt import crypt
> ImportError: cannot import name crypt
> C:\>
>
> I have further difficulties in that I am behind a firewall, but as far
> as I can tell I have all the dependencies.
>
> In terms of crossplatform crypt packages I have found 
> some:http://pypi.python.org/pypi/fcrypt         (I assume this is
> crossplatform (it says it's "pure 
> python")http://pypi.python.org/pypi/pycrypto/2.0.1 (it states that it
> supports windows)
>
> So crypt is my first hurdle (for windows), and hopefully my last.
> Yesterday evening from my linux box, it was a real pleasure to
> install, but I haven't really played around with it.
>
> Regards,
> -Reenen
>
> On Dec 1, 9:02 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
>
>
> > A new release of TiddlyWeb is available, continuing the progress
> > towards a 1.0 release.
>
> > The major difference in 0.9.1 is the "instance" command in the
> > twanager command line tool will now:
>
> > * create a system bag and install three plugins for handling automatic
> > saving of content (existing and new)
> > * create a common bag where new content will be saved
> > * create a default recipe which combines the system and common bag
> > into an available collection of tiddlers
>
> > So to get a working TiddlyWeb site that autosaves you can do the
> > following:
>
> >     sudo easy_install tiddlyweb
> >     twanager instance <dir name>
> >     cd <dir name>
> >     twanager server 0.0.0.0 8080
> >     <open your browser tohttp://0.0.0.0:8080/recipes/default/tiddlers.wiki
> > to see an autosaving wiki>
>
> > If 0.0.0.0 doesn't work for you, try 127.0.0.1.
>
> > Note this will only work if you are connected to the internet without
> > a blocking firewall, otherwise the instance command will not be able
> > to retrieve plugins from the subversion server. In the future there
> > will be a distribution that includes everything: we're still working
> > out what everything means.
>
> > 0.9.1 is available on PyPI <http://pypi.python.org/pypi/tiddlyweb> and
> > on the forthcoming tiddlyweb web site <http://tiddlyweb.peermore.com/
> > dist>.
>
> > Please post here if there are issues, questions, comments, etc.
>
> > Thanks very much to FND and others in Osmosoft who recently did a lot
> > of work on TiddlyWiki plugins to make TiddlyWiki and TiddlyWeb work
> > well together. Thanks also to Tony who has been providing invaluable
> > feedback on early releases.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/TiddlyWikiDev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to