archive-org.com » ORG » R » REPOZE.ORG

Total: 111

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • Repoze Blog :)
    code So rather than configuring the middleware and attendant plugins via straight Python code you can now wire who configuration up in an ini file who ini plugin form identification and challenge use repoze who plugins form make plugin login form qs do login rememberer name cookie form here s login form html plugin auth tkt identification use repoze who plugins auth tkt make plugin secret s33kr1t cookie name oatmeal secure False include ip False plugin basicauth identification and challenge use repoze who plugins basicauth make plugin realm sample plugin htpasswd authentication use repoze who plugins htpasswd make plugin filename here s passwd check fn repoze who plugins htpasswd crypt check plugin sqlusers authentication use repoze who plugins sql make authenticator plugin query SELECT userid password FROM users where login login s conn factory repoze who plugins sql make psycopg conn factory compare fn repoze who plugins sql default password compare plugin sqlproperties name properties use repoze who plugins sql make metadata plugin query SELECT firstname lastname FROM users where userid userid s filter my package filter propmd conn factory repoze who plugins sql make psycopg conn factory general request classifier repoze who classifiers default request classifier challenge decider repoze who classifiers default challenge decider identifiers plugin name classifier name or just plugin name good for any plugins form browser auth tkt basicauth authenticators plugin name classifier name or just plugin name good for any plugins htpasswd sqlusers challengers plugin name classifier name or just plugin name good for any plugins form browser basicauth mdproviders plugins sqlproperties Then you can use a constructor to create the configuration based on the ini file e g from repoze who config import WhoConfig app next app in pipeline here os path dirname file config file os path join here who ini parser WhoConfig

    Original URL path: http://blog.repoze.org/repozewho-1.0/ (2016-01-08)
    Open archived version from archive


  • Repoze Blog :)
    1 0 2008 06 10 00 00 00 05 00 Authorization in Pylons with repoze who Tom Longson aka nym has created a useful blog post where he details a very simple integration between the repoze who WSGI authentication framework

    Original URL path: http://blog.repoze.org/pylons-who-nym/ (2016-01-08)
    Open archived version from archive

  • Repoze Blog :)
    they can be used without much effort in a Repoze WSGI environment We ve created bridges to traditionally CGI applications like Mailman so they can be served up via WSGI servers We ve created applications like repoze kiss which are Zope like but do not use any ZODB We ve evangelized Deliverance as a theming mechanism We ve reached out to other Python web projects like TurboGears Pylons and Django attempting to reuse some of their components and we ve made them aware of ours We ve given many many talks at Zope Plone Python user groups and conferences attempting to bring more folks into the fold We ve created buildouts using zc buildout for Plone and Trac What are we doing We re playing around with exernalizing declarative security so we can better integrate dissimilar WSGI applications using the same security model We re attempting to create alternate sessioning components for use under WSGI stacks We re working Repoze into our Agendaless own customer deployments What we intend to do We intend to do more evangelism via presenting to Python Zope Plone user groups and conferences We intend to reach out more to other web projects by helping them integrate Repoze code into their own projects We intend to push for Plone and possibly Zope 2 to base a release on Repoze technologies Where we need help We need help a evangelizing b bringing things to ground and c maintaining our various web presences On the evangelism front we need Python folks to understand that Repoze is not just about Zope instead it s a generically useful set of WSGI components inspired by features of Zope We need to get Zope people excited about a future that allows them to make use of best of breed components created by

    Original URL path: http://blog.repoze.org/sixmonthsofrepoze/ (2016-01-08)
    Open archived version from archive

  • Repoze Blog :)
    00 Plone Symposium New Orleans Talks We ve had good feedback on our WSGI and repoze related talks at the 2008 Plone Symposium in New Orleans Chris McDonough s Intro to WSGI talk Tres Seaver s Turplango Playing Nice with

    Original URL path: http://blog.repoze.org/nola_symposium_talks/ (2016-01-08)
    Open archived version from archive

  • Repoze Blog :)
    t move to any version of Plone 3 just yet These releases are for you Instructions are below about how to get Plone 2 5 5 and or Zope 2 9 8 installed so they run under repoze zope2 We support both buildout and virtualenv based installs so each is documented separately Installing Plone 2 5 5 implies Zope 2 9 8 Install repoze plone 2 5 5 using Buildout svn co http svn repoze org buildouts repoze plone branches 2 5 5 cd 2 5 5 python2 4 bootstrap py bin buildout follow instructions here on in or install repoze plone 2 5 5 using Virtualenv virtualenv24 no site packages plone255 cd plone255 bin easy install i http dist repoze org plone 2 5 5 simple repoze plone bin mkzope2instance bin addzope2user admin admin bin paster serve etc zope2 ini Installing Zope 2 9 8 only if you don t use Plone Install repoze zope2 2 9 8 using Buildout svn co http svn repoze org buildouts repoze zope2 branches 2 9 cd 2 9 python2 4 bootstrap py bin buildout follow instructions here on in Install repoze zope2 2 9 8 using Virtualenv virtualenv24 no site packages zope298

    Original URL path: http://blog.repoze.org/repoze-plone-255/ (2016-01-08)
    Open archived version from archive

  • Repoze Blog :)
    04 00 00 00 05 00 Martin Aspeli s Rolling Out Repoze Martin Aspeli writes a fairly lengthy article detailing how he s moved his personal blog over to running under repoze plone as well as configuration of another set

    Original URL path: http://blog.repoze.org/optilude-rolling-out-repoze/ (2016-01-08)
    Open archived version from archive

  • Repoze Blog :)
    it via easy install virtualenv suggested don t even bother trying a U upgrade from an older repoze plone it just won t work bin easy install i http dist repoze org plone 3 1 1 simple repoze plone bin addzope2user username password ignore deprecation warnings bin paster serve etc zope2 ini To get it via zc buildout check out http svn repoze org buildouts repoze plone branches 3 1

    Original URL path: http://blog.repoze.org/repoze-dot-plone3110/ (2016-01-08)
    Open archived version from archive

  • Repoze Blog :)
    ll need a metadata for each database metadata MetaData def init model engine Call me before using any of the tables or classes in the model groups table Table tg group metadata Column group id Integer primary key True Column group name Unicode 16 unique True Column display name Unicode 255 Column created DateTime default datetime datetime now users table Table tg user metadata Column user id Integer primary key True Column user name Unicode 16 unique True Column email address Unicode 255 unique True Column display name Unicode 255 Column password Unicode 40 Column created DateTime default datetime datetime now permissions table Table tg permission metadata Column permission id Integer primary key True Column permission name Unicode 16 unique True Column description Unicode 255 user group table Table tg user group metadata Column user id Integer ForeignKey tg user user id onupdate CASCADE ondelete CASCADE Column group id Integer ForeignKey tg group group id onupdate CASCADE ondelete CASCADE group permission table Table tg group permission metadata Column group id Integer ForeignKey tg group group id onupdate CASCADE ondelete CASCADE Column permission id Integer ForeignKey tg permission permission id onupdate CASCADE ondelete CASCADE identity model class Group object An ultra simple group definition def repr self return self group name class User object Reasonably basic User definition Probably would want additional attributes def repr self return self email address self display name def permissions self perms set for g in self groups perms perms set g permissions return perms permissions property permissions def by email address klass email A class method that can be used to search users based on their email addresses since it is unique session DBSession return session query klass filter klass email address email first by email address classmethod by email address def by user name klass username A class method that permits to search users based on their user name attribute session DBSession return session query klass filter klass user name username first by user name classmethod by user name def set password self password encrypts password on the fly using the encryption algo defined in the configuration algorithm config get authorize hashmethod None self password self encrypt password algorithm password def get password self returns password return self password password property get password set password def encrypt password self algorithm password Hash the given password with the specified algorithm Valid values for algorithm are md5 and sha1 All other algorithm values will be essentially a no op hashed password password if isinstance password unicode password 8bit password encode UTF 8 else password 8bit password if md5 algorithm hashed password md5 new password 8bit hexdigest elif sha1 algorithm hashed password sha new password 8bit hexdigest if not isinstance hashed password unicode hashed password hashed password decode UTF 8 return hashed password def validate password self password Check the password against existing credentials algorithm config get authorize hashmethod None return self password self encrypt password algorithm password class Permission object A relationship that determines what each

    Original URL path: http://blog.repoze.org/tgrepozewho/ (2016-01-08)
    Open archived version from archive



  •