<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
probably simpler:<br>
<blockquote><tt>mt=getToolByname(context, "portal_membership")<br>
mt.createMemberArea(userid)<br>
  </tt></blockquote>
That will also set the permissions correctly and perform any other
needed steps. It also does not need the manager proxy role since it is
a public function.<br>
<br>
Wichert.<br>
<br>
<br>
Dominik Ruf wrote:
<blockquote
 cite="mid:1188308667.468081.318990@19g2000hsx.googlegroups.com"
 type="cite">
  <pre wrap="">OK I have found the solution.
I am using a metadata file
proxy = Manager

On 28 Aug., 09:31, Dominik Ruf <a class="moz-txt-link-rfc2396E" href="mailto:dominik...@googlemail.com">&lt;dominik...@googlemail.com&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Thanks the how-to helped a lot.

But I have still one problem.
An ordinary user has no privileges to create a folder.
Is there a possibility to run the code as a different user?

On 28 Aug., 00:01, J Cameron Cooper <a class="moz-txt-link-rfc2396E" href="mailto:jccoo...@rice.edu">&lt;jccoo...@rice.edu&gt;</a> wrote:



    </pre>
    <blockquote type="cite">
      <pre wrap="">Dominik Ruf wrote:
      </pre>
      <blockquote type="cite">
        <pre wrap="">Hi,
        </pre>
      </blockquote>
    </blockquote>
    <blockquote type="cite">
      <blockquote type="cite">
        <pre wrap="">I am using apachepas to authenticate our users. Therefor there are no
user folders.
And I don't want to use automembermaker because I don't want create a
user folder for everyone.
I want to create a action that allows every user to create a user
folder by his own.
        </pre>
      </blockquote>
    </blockquote>
    <blockquote type="cite">
      <blockquote type="cite">
        <pre wrap="">Can somebody tell me how I can create a folder in python code to
        </pre>
      </blockquote>
    </blockquote>
    <blockquote type="cite">
      <pre wrap="">Plone 2.5, at least, creates member folders on login if they don't exist.
      </pre>
    </blockquote>
    <blockquote type="cite">
      <pre wrap="">One will generally create content with the 'invokeFactory' method.
      </pre>
    </blockquote>
    <blockquote type="cite">
      <pre wrap=""><a class="moz-txt-link-freetext" href="http://plone.org/documentation/how-to/add-content-programmatically">http://plone.org/documentation/how-to/add-content-programmatically</a>
      </pre>
    </blockquote>
    <blockquote type="cite">
      <pre wrap="">       --jcc
      </pre>
    </blockquote>
    <blockquote type="cite">
      <pre wrap="">--
Connexionshttp://cnx.org
      </pre>
    </blockquote>
    <blockquote type="cite">
      <pre wrap="">"Building Websites with Plone"<a class="moz-txt-link-freetext" href="http://plonebook.packtpub.com">http://plonebook.packtpub.com</a>
      </pre>
    </blockquote>
    <blockquote type="cite">
      <pre wrap="">_______________________________________________
Product-Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Product-Develop...@lists.plone.orghttp://lists.plone.org/mailman/listinfo/product-developers">Product-Develop...@lists.plone.orghttp://lists.plone.org/mailman/listinfo/product-developers</a>
      </pre>
    </blockquote>
    <pre wrap="">_______________________________________________
Product-Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Product-Develop...@lists.plone.orghttp://lists.plone.org/mailman/listinfo/product-developers">Product-Develop...@lists.plone.orghttp://lists.plone.org/mailman/listinfo/product-developers</a>
    </pre>
  </blockquote>
  <pre wrap=""><!---->

_______________________________________________
Product-Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Product-Developers@lists.plone.org">Product-Developers@lists.plone.org</a>
<a class="moz-txt-link-freetext" href="http://lists.plone.org/mailman/listinfo/product-developers">http://lists.plone.org/mailman/listinfo/product-developers</a>
  </pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
Wichert Akkerman <a class="moz-txt-link-rfc2396E" href="mailto:wichert@wiggy.net">&lt;wichert@wiggy.net&gt;</a>   It is simple to make things.
<a class="moz-txt-link-freetext" href="http://www.wiggy.net/">http://www.wiggy.net/</a>                  It is hard to make things simple.
</pre>
</body>
</html>