服务器管理系统服务器端Demo 不指定

刘天斯 , 2010/03/09 10:03 , Python , 评论(5) , 阅读(46496) , Via 本站原创 | |
开源客户端地址:http://code.google.com/p/tianyaservmanager/
代码比较简单就不加以说明了,大家有任何疑问可以留言。
服务代码


模块代码

如大家有什么疑问或感兴趣的话题可以通过weibo与我交流:http://t.qq.com/yorkoliu
小邪兽 Email
2011/06/01 19:21
我找到原因了, 我系统的编码方式是utf-8, 而你在ServerList.py 中 serverclass.append(root_child[0].text.encode('gbk)) 你用了gbk,所以报了编码的错, 在ServerList.py中还有一个问题: if not root_child.get('id') in UserPrivileges and notUserPrivileges[0]=="root":这个条件貌似没有意思?!!因为{       wx.GetApp().userinfo  = ((u'root', u'root'),)       self.CurrentPrivileges=string.split(wx.GetApp().userInfo[0][1],',')       self.CurrentPrivileges = [u'root']       }  root_child.get('id')返回的是数字,所以   ....
小邪兽 Email
2011/06/01 04:34
已经连接数据库登上了,但加载第ServManagerMain.py时报了错File \"ServManager.py\", line 192, in OnInit    self.frame = ServManageFrame(None,APP_TITLE)  File \"/home/vicious/下载/Servmanager/ServManagerMain.py\", line 519, in __init__    self.AddTreeNodes(root, tree)  File \"/home/vicious/下载/Servmanager/ServManagerMain.py\", line 1138, in AddTreeNodes    newItem = self.tree.AppendItem(parentItem, item[0])  File \"/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode/wx/_controls.py\", line 5469, in AppendItem    return _controls_.TreeCtrl_AppendItem(*args, **kwargs)  File \"/usr/lib/python2.6/encodings/utf_8.py\", line 16, in decode    return codecs.utf_8_decode(input, errors, True)UnicodeDecodeError: \'utf8\' codec can\'t decode byte 0xd3 in position 2: invalid continuation byte
刘天斯 回复于 2011/06/01 08:20
编辑文件后注意保存的编码。
花之舞 Email Homepage
2010/08/22 21:49
这软件是做什么的没看明白
刘天斯 回复于 2010/08/22 23:04
实现Linux主机管理,客户端负责发送指令,服务器负责执行指令。
renwofei423
2010/03/25 11:59
很好的东西!关注中!!!
seacoastboy Email
2010/03/09 10:37
群主好像这个没开源吧! 开了一下介绍 很强大的! 基于客户端的 服务器管理关键!不知 博主是否 要开源那
刘天斯 回复于 2010/03/09 14:24
要开源,这几天都是整理相关文档。
分页: 1/1 第一页 1 最后页
发表评论

昵称

网址

电邮

打开HTML 打开UBB 打开表情 隐藏 记住我 [登入] [注册]