It's not recommended, but yes, you can edit a .CHANNEL
file, but only when Awasu is not running.
The recommended way is to use the $/channels/update
API call, sending the fields you want to change as the POST data. The format of this XML is the same as what Awasu returns when you call $/channels/list
So, to change a channel's name:
Code: Select all
url = "http://localhost:2604/channels/update?id=..."
data = """<channel>
<name> new name </name>
resp = urllib2.urlopen( url , data=data )