Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dynamizing posts to others groups



Hello,

I've tried the change told earlier, as i'm not a developer in ruby and have only few infos about those scripts, i simply duplicated in pcast (in an other file "name pcast_listgroups") tasks done for the option "--listcameras" in order to have one named "--listgroups", here's what i've added (in bold):

  1. Query Operations
[\"--listcameras\", GetoptLong::NO_ARGUMENT],
[\"--listgroups\", GetoptLong::NO_ARGUMENT],

when '--listcameras'
    $cmd = "listcameras"
when '--listgroups'
    $cmd = "listgroups"

when "listcameras"
    $server_context = ServerContext.get
    Query.list_cameras
when "listgroups"
    $server_context = ServerContext.get
    Query.list_groups

def Query.list_cameras
    Query.new.execute_query("/cameras")
end

def Query.list_groups
    Query.new.execute_query("/groups")
end

But here is what is answered to me when executing "pcast --listgroups" (i have to authenticate before):

PcastException
/usr/bin/pcast_listgroups:97:in 'execute'
/usr/bin/pcast_listgroups:30:in 'execute_get'
/usr/bin/pcast_listgroups:213:in 'execute_query'
/usr/bin/pcast_listgroups:200:in 'list_groups'
/usr/bin/pcast_listgroups:1671
Remote command 'https://podcast.server.com:8170/podcastproducer/groups' failed: Unhandled HTTP response: #<Net::HTTPNotFound:0x37d138>

I guess it's simply that the directory groups isn't found, so my question is how for cameras and workflows PcP determines who can use them..? I'm quite sure the check is done with the help of groups in which an user is, and that's what we'd like to get..

If anyone could help.

Thanks in advance, Julien
Julien Cros
Mission TICE - Université de la Méditerranée
04.91.39.66.70
 


Julien Cros a écrit :
First, after a quick look, i thought this (in pcast):

  def Query.list_workflows
    # Request the user's primary language for names and descriptions of workflows
    user_defaults = OSX::NSUserDefaults.standardUserDefaults
    languages = user_defaults.objectForKey("AppleLanguages")
    default_language = languages[0]

    Query.new.execute_query("/workflows?language=#{default_language.to_s}")
  end


was listing workflows available for the user who identified himself...but after a longer look it is in fact only determining the language...so my question is: where is it determined to which groups belongs an user when logging to PodcastCapture or the web interface..? And is it possible to use it in order to create a list on the WebUI of them..?

Thanks in advance, Julien
Julien Cros
Mission TICE - Université de la Méditerranée
04.91.39.66.70
 


Julien Cros a écrit :
Hello,

   As we're functioning with groups to separate podcasts, we'd like to be able to propose a unique set of workflows without duplicating them for each group. I've looked pcast function and as it is possible to list workflows and cameras for an user, i'm wondering if it is possible to add a function listing groups of an user in order to display a list (like the workflows' list) on the web interface of groups in which the user is, so he can choose the target of his podcast..that would be really useful, but i guess this will only work for the web and not in podcast capture..unless it is updated
   Anyway if it is possible by an other way, i'm attentive to it and look forward for it.

Thanks in advance, Julien

Julien Cros
Mission TICE - Université de la Méditerranée
04.91.39.66.70




_______________________________________________ Do not post admin requests to the list. They will be ignored. Podcast-producer mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/podcast-producer/email@hidden This email sent to email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Podcast-producer mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/podcast-producer/email@hidden

This email sent to email@hidden

References: 
 >Re: Post without encodings (From: George Cook <email@hidden>)
 >Dynamizing posts to others groups (From: Julien Cros <email@hidden>)
 >Re: Dynamizing posts to others groups (From: Julien Cros <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.