+ Reply to Thread
Results 1 to 6 of 6

Thread: Revisions count

  1. #1
    Join Date
    Oct 2008
    Posts
    48

    Default Revisions count

    i need the count of revisions of a page: http://wiki.developer.mindtouch.com/...ight=revisions

    {{web.text(page.api, 'revisions/@count') }}

    (reading the xml,. that should be: )

    {{web.text(page.api, '/page/revisions/@count') }}

    but i get this error:

    (unable to fetch text document from uri [status: 401])

    Any1 could help me? please

  2. #2
    Join Date
    Oct 2008
    Posts
    48

    Default

    I'm still having this problem,
    I know that the solution maybe could be permissions, but I dunno which folder...

    Thanks

  3. #3
    Join Date
    Apr 2008
    Posts
    78

    Default Permissions...?

    So do I...
    My server config is Win2003 server + Deki VM 8.05.2 multitenant.
    Boldox, do you think it's a question of permissions? Actually I'm the wiki admin and I have all permissions (included unsafe content).
    I think more of a web.text bug (see this bug), because if I try {{page.api}} I get the API corresponding page address, which I can open in my browser, and, in other pages I have scripts using Xpath successfully...

    Will have to take a look at the Dream version and log file.

    Please, post your config too.

  4. #4
    Join Date
    Oct 2008
    Posts
    48

    Default

    i dont know server specs.
    Deki Open Source Edition v.8.08

    mmm, this could help.

    {{ web.Text("http://mydekiurl/@api/deki/users/current", "/user/nick") }} returns anonymous

    if i watch http://mydekiurl/@api/deki/users/current XML, <user><nick> is admin...

    WTF?

  5. #5
    Join Date
    Oct 2008
    Posts
    48

    Default

    Solution:
    Role none with read permission

  6. #6
    Join Date
    Apr 2008
    Posts
    78

    Default

    Ok, I'll try after the upgrade.

    By now, with 8.05.2 no way...also with role None with read permission (actually anonymous user have Viewer permissions on my server, so...).

    Thanks a lot!

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts