发现这个版本从其他系统导过来的群组列表展示 时都中文乱码(linux的时候没测过)  ,所以 干脆自己改一下

seahub\thirdpart\seaserv\service.py

# group

def get_group(group_id):

#group_id_int = int(group_id)

"""

try:

group = ccnet_threaded_rpc.get_group(group_id_int)

except SearpcError:

group = None

"""

try:

from django.db import connection

cursor = connection.cursor()

sql ="select distinct g.group_id ,g.group_name,g.creator_name,g.timestamp from `ccnet-db`.`group` g where g.group_id =%s"

cursor.execute(sql, [group_id])

group = cursor.fetchone()

return  DBGroup(group[0],group[1],group[2],group[3])

except Exception,e:

logger.error(e)

#return group

return None

其他还有不少类似的都这样修改

seafile Windows MySQL_seafile4.3.1 + windows 2012 server +mysql 部署记录(3)相关推荐

  1. 在Windows Server 2012 R2 Standard 部署 ASP.NET Core程序

    前言: 随着ASP.NET Core 1.0的发布,论坛里相关的文章也越来越多,正好有时间在测试环境上搭建 ASP.NET Core的发布环境,把过程中遇到的问题写给大家,以便有用到的朋友需要. 环境 ...

  2. 已解决At least Windows 8.1 or Windows Server 2012 are required to install Python 3.9.4(64-bit)

    已解决(window7安装Python失败)One or more issues caused the setup to fail.Please fix the issues and then ret ...

  3. win server 2012 R2 你需要先安装 对应于 KB2919355 的更新 ,然后才可在 Windows 8.1 或 Windows Server 2012 R2 上安装此产品。

    产生阻滞的问题: 你需要先安装 对应于 KB2919355 的更新 ,然后才可在 Windows 8.1 或 Windows Server 2012 R2 上安装此产品. 官方说法(这些 KB 必须按 ...

  4. wana服务器蓝屏自动重启,Windows运维之Windows server 2012 R2服务器反复蓝屏

    本文主要向大家介绍了Windows运维之Windows server 2012 R2服务器反复蓝屏,通过具体的内容向大家展现,希望对大家学习Windows运维有所帮助. ===dump informa ...

  5. 如何将Hyper-V虚拟机从Windows 10导出到Windows Server 2012 R2

    如何将Hyper-V虚拟机从Windows 10导出到Windows Server 2012 R2? 英文原版链接:https://www.codetwo.com/admins-blog/how-to ...

  6. Windows 2012 Server VMtools安装过程

    前言 Windows 2012 Server自身存在一些bug,安装vmtools时遇到了很多问题,做一个简单记录. 安装 安装VMtools后,并没有成功,所以按照下方提示输入D:\setup.ex ...

  7. 数据系列:如何在Windows Azure虚拟机上设置SQL Server

    编者按: 今天的帖子来自我们的客户体验团队高级技术作家Rick Byham.这篇文章提供的详细指导文档概述的链接在底部 将数据库操作移动到云上的速度最快的方法之一是通过移动您的数据库到Windows ...

  8. Windows 2003 AD升级至Windows 2012 AD之DHCP服务器迁移

    Windows 2003AD升级至Windows 2012AD之DHCP服务器迁移 DHCP服务器迁移原因: Windows Server 2003 将于2015年07月14日生命周期终止,微软将不再 ...

  9. windows server 2016部署wsus服务

    windows server 2016部署wsus服务 https://blog.51cto.com/14157628/2352609 wsus是微软公司推出的免费的Windows更新服务 管理软件, ...

最新文章

  1. Android 购物车图片上面添加数字
  2. Ubuntu14.04下安装wechat(微信)
  3. No_16_0303 Java基础学习第十一天
  4. MyEclipse 7.0 用java代码生成序列号
  5. python 菜鸟-Python3 集合
  6. caffe中 solver.prototxt文件
  7. 测试面试中的常见10道接口面试题
  8. 工控计算机电力行业标准,标准协议工控协议_IEC104.pdf
  9. PCB生产工艺流程博大精深
  10. 哲学家就餐问题python_无聊的哲学家进餐问题
  11. 一位10年 Java 工作经验的架构师聊 Java 和工作经验
  12. IMGUI_DX11显示自定义图片
  13. video实现控制视频进度和播放、暂停
  14. Net分布式系统之五:C#使用Redis集群缓存
  15. 【NDN IoT】Caching in Named Data Networking for the Wireless Internet of Things
  16. 网页如何展示PPT文档
  17. var和let的区别
  18. n9_Adding Interactivity Animating Plots_BeautifulSoup_Interactive backends_Tkinter_Plot.ly_FFmpeg
  19. 生产力 生产关系 生产工具_破坏生产力的5种方法
  20. 夏日葵电商:开发一个微信商城系统多少钱

热门文章

  1. SSM框架-实现Mybatis分页功能-foreknow_cms
  2. python用三种方式定义字符串、并依次输出_Python 字符串格式化输出的3种方式
  3. window 7 计算机配置,Windows7操作系统要求电脑配置
  4. 02-CSS基础与进阶-day6_2018-09-05-22-02-24
  5. python3爬虫-1
  6. 【洛谷P2279】[HNOI2003]消防局的设立
  7. mysql 目录的了解以及Linux
  8. hibernate 联合主键
  9. Ubuntu18.04安装“迅雷“
  10. android8.0以上新增Camera(七)