Sphene Community Tools

Community

Copyright © 2007-2008 by Herbert Poul
You are not logged in.
Login
Register

Change Language:



AddThis Social Bookmark Button

A Django site.
Profile for Alwin

Name Alwin
Email Address Reveal this emailaddress
Posts9
  • Re: Changing urls from /wiki/ to something other
    Board >> General
    Yes, saw and tried it. Tnx!
  • Re: Wrong Forum rights for users
    Board >> General
    Works now!

    many tnx!

    :-)
  • Re: Wrong Forum rights for users
    Board >> General
    So, I created real fresh a user via standard user interface. May interesting to you, that the database is currently a sqlite3-connection (due testing state).


    Debug output is appended as file.

    tnx
  • Re: Wrong Forum rights for users / max size of avatar-picture.
    Board >> General
    >>> user
    <User: dummy>
    >>> post.allow_editing(user)
    True
    >>> user.is_superuser
    False
    >>> from sphene.community.permissionutils import has_permission_flag
    >>> has_permission_flag(user, 'sphboard_editallposts', post.category)
    True
    >>>                                                                  
    
    So. user has the right "editallposts" - but why? User is fresh created. No role set anywhere. So I can not remove a access-right. And in category settings there is no point "allow edit all posts" or such.

    (btw.: on a second, test install it doesn't happen...)

  • Re: Wrong Forum rights for users / max size of avatar-picture.
    Board >> General
    hi,

    i've just tried it out .. and .. simply adding a user .. logging in as that user .. and i wasn't able to edit anyone else's posts ..

    maybe you are adding all users as superusers ? :)
    No. I'd checked, user "dummy" has only the "active" flag set. No other rights. No role exists, so of course the user isn't assigned to any role. :( No idea where the superuser rights come from.

    But the user may edit all posts. Is somewhere the possiblity to setup the default rights?


    CU

    Alwin

  • Wrong Forum rights for users / max size of avatar-picture.
    Board >> General
    Hi,

    may I'm blind, but...

    I setup a fresh install of the community tools. And know I see that every user is able to edit every post of another user.

    I searched around, tried setting up a role, setting single user rights - user could always edit all posts. Did I search in wrong area? Why it isn't default that new user can not change other post? Where can I setup up the default rights for every user not assigned to a special role?

    Next: I didn't find in adminearea where to increase size of avatar-pictures. in code I saw the
    "community_avatar_max_size" but never an entry elsewhere. Have I change it direct inside database?

    ciao

    Alwin
  • Re: Changing urls from /wiki/ to something other
    Board >> General
    ah, got it. there where a line

    (r'^c/',  include('sphene.sphwiki.urls'), defaultdict),


    in your example :) thats I had to remove.. now it works great. Many tnx
  • Re: Changing urls from /wiki/ to something other
    Board >> General
    where is the problem with that ? the reverse links should be found automatically ..
    i've done it at: http://sphene.net/c/Startpage/ and it seems to work for me - are your links wrong ?
    switching over to /c/ at beginning works fine meanwhile. But I want to remove the "show" in "/c/show/Start" and didn't find a real way doing this.

    got a wiki ;) ) .. but i think all you need to do is add a generic view (or a middleware ?)

    Live is sometimes that ease... found it and activated it. Its a middleware but in your small test site you have flatpages in list auf applications thats why the flatpages admin field appears. :)

    p.s.: is a search function planned for the nice forum?
    well.. i plan to implement it .. but i'm not sure how soon it will be


    Ah, ok. I think this is the most missing feature this moment. When forum will get a little larger ...

    Bye and many thanks.

    Alwin
  • Changing urls from /wiki/ to something other
    Board >> General
    hi,

    I tried getting urls not starting with /wiki/ (which I've got running) and without 'show' assuming that a wiki-page without any extras like edit or pdf is wanted to display.

    I've got it working, that /c/ or similiar worked. But problem is how will the wiki-module generate links in new style? I didn't found a config option. Is this possible without changing the code? If not, where in code?

    Next: i found inside administration area something about "flatpages". but I didn't find a hint how to activate them. E.g. tried a /about/ or whatever but got - of course - only an error. Where I have to redirect such pages? eg. I insert flat pages always /f/<page>/ - which module should handle ^/f/(.*)/ in urls.py?

    bye
    Alwin
    p.s.: is a search function planned for the nice forum?


Powered by Sphene Community Tools