2006年06月22日 星期四 01:15
设置了http代理服务器,
checkout时报svn: REPORT request failed on '/svn/!svn/vcc/default'
svn: REPORT of '/svn/!svn/vcc/default': 400 Bad Request (
http://code.djangoproject.com)
windows下,linux下都是这个错误。
怀疑是http代理设置不对,请教各位。
--
devdoer
devdoer at gmail.com
http://project.mytianwang.cn/cgi-bin/blog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060622/cce667ab/attachment.html
2006年06月22日 星期四 08:35
On 6/22/06, bird devdoer <devdoer at gmail.com> wrote: > > > 设置了http代理服务器, > checkout时报svn: REPORT request failed on '/svn/!svn/vcc/default' > svn: REPORT of '/svn/!svn/vcc/default': 400 Bad Request > (http://code.djangoproject.com) > > windows下,linux下都是这个错误。 > 怀疑是http代理设置不对,请教各位。 可能是代理服务器的问题。你在windows下试过tortoisesvn吗?我用它通过代理没有问题。 -- I like python! My Blog: http://www.donews.net/limodou My Django Site: http://www.djangocn.org NewEdit Maillist: http://groups.google.com/group/NewEdit
2006年06月22日 星期四 16:46
试过了WIndows下用的tortoisesvn。是在setting-》Network里面填的代理服务器,难道是svn的协议,我的这个代理不支持。 在06-6-22,limodou <limodou at gmail.com> 写道: > > On 6/22/06, bird devdoer <devdoer at gmail.com> wrote: > > > > > > 设置了http代理服务器, > > checkout时报svn: REPORT request failed on '/svn/!svn/vcc/default' > > svn: REPORT of '/svn/!svn/vcc/default': 400 Bad Request > > (http://code.djangoproject.com) > > > > windows下,linux下都是这个错误。 > > 怀疑是http代理设置不对,请教各位。 > > 可能是代理服务器的问题。你在windows下试过tortoisesvn吗?我用它通过代理没有问题。 > > > -- > I like python! > My Blog: http://www.donews.net/limodou > My Django Site: http://www.djangocn.org > NewEdit Maillist: http://groups.google.com/group/NewEdit > > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > -- devdoer devdoer at gmail.com http://project.mytianwang.cn/cgi-bin/blog -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060622/5b1c9475/attachment.html
2006年06月22日 星期四 17:20
ÄãµÄ´úÀíÖ§³ÖwebdavÂ𣿠svn over httpʹÓÃwebdavÐÒé Best Regards, Zachary Wu (Îâ°~ÀÚ) Software Engineer, Enterprise Content Management FVT, IBM China Software Development Lab Tel: +86 10 82782244-3235. Fax: 82782244-2886 Tie Line: 915-2244-3235 Internet: xiaoleiw at cn.ibm.com Notes ID: Xiao Lei Wu/China/Contr/IBM at IBMCN Address: 8/F, Block A, Power Creative Building, No.1, East Road, Shang Di, Beijing 100085, P.R. China python-chinese-bounces at lists.python.cn дÓÚ 2006-06-22 16:46:22: > ÊÔ¹ýÁËWIndowsÏÂÓõÄtortoisesvn¡£ÊÇÔÚsetting£¡·NetworkÀïÃæÌîµÄ´úÀí·þ > ÎñÆ÷£¬ÄѵÀÊÇsvnµÄÐÒ飬ÎÒµÄÕâ¸ö´úÀí²»Ö§³Ö¡£ > ÔÚ06-6-22£¬limodou <limodou at gmail.com> дµÀ£º > On 6/22/06, bird devdoer <devdoer at gmail.com> wrote: > > > > > > ÉèÖÃÁËhttp´úÀí·þÎñÆ÷£¬ > > checkoutʱ±¨svn: REPORT request failed on '/svn/!svn/vcc/default' > > svn: REPORT of '/svn/!svn/vcc/default': 400 Bad Request > > ( http://code.djangoproject.com) > > > > windowsÏ£¬linux϶¼ÊÇÕâ¸ö´íÎó¡£ > > »³ÒÉÊÇhttp´úÀíÉèÖò»¶Ô£¬Çë½Ì¸÷λ¡£ > > ¿ÉÄÜÊÇ´úÀí·þÎñÆ÷µÄÎÊÌâ¡£ÄãÔÚwindowsÏÂÊÔ¹ýtortoisesvnÂð£¿ÎÒÓÃËüͨ¹ý´ú > ÀíûÓÐÎÊÌâ¡£ > > > -- > I like python! > My Blog: http://www.donews.net/limodou > My Django Site: http://www.djangocn.org > NewEdit Maillist: http://groups.google.com/group/NewEdit > > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > > > -- > devdoer > devdoer at gmail.com > http://project.mytianwang.cn/cgi-bin/blog > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060622/e9997dd2/attachment.html
2006年06月22日 星期四 19:08
Thanks¡£ÎÒÑо¿Ñо¿ ÔÚ06-6-22£¬Xiao Lei Wu <xiaoleiw at cn.ibm.com> дµÀ£º > > ÄãµÄ´úÀíÖ§³ÖwebdavÂ𣿠> svn over httpʹÓÃwebdavÐÒé > > Best Regards, > > Zachary Wu (Îâ°~ÀÚ) > Software Engineer, Enterprise Content Management FVT, IBM China Software > Development Lab > Tel: +86 10 82782244-3235. Fax: 82782244-2886 Tie Line: 915-2244-3235 > Internet: xiaoleiw at cn.ibm.com > Notes ID: Xiao Lei Wu/China/Contr/IBM at IBMCN > Address: 8/F, Block A, Power Creative Building, No.1, East Road, Shang Di, > Beijing 100085, P.R. China > > python-chinese-bounces at lists.python.cn дÓÚ 2006-06-22 16:46:22: > > > ÊÔ¹ýÁËWIndowsÏÂÓõÄtortoisesvn¡£ÊÇÔÚsetting£¡·NetworkÀïÃæÌîµÄ´úÀí·þ > > ÎñÆ÷£¬ÄѵÀÊÇsvnµÄÐÒ飬ÎÒµÄÕâ¸ö´úÀí²»Ö§³Ö¡£ > > > ÔÚ06-6-22£¬limodou <limodou at gmail.com> дµÀ£º > > On 6/22/06, bird devdoer <devdoer at gmail.com> wrote: > > > > > > > > > ÉèÖÃÁËhttp´úÀí·þÎñÆ÷£¬ > > > checkoutʱ±¨svn: REPORT request failed on '/svn/!svn/vcc/default' > > > svn: REPORT of '/svn/!svn/vcc/default': 400 Bad Request > > > ( http://code.djangoproject.com) > > > > > > windowsÏ£¬linux϶¼ÊÇÕâ¸ö´íÎó¡£ > > > »³ÒÉÊÇhttp´úÀíÉèÖò»¶Ô£¬Çë½Ì¸÷λ¡£ > > > > ¿ÉÄÜÊÇ´úÀí·þÎñÆ÷µÄÎÊÌâ¡£ÄãÔÚwindowsÏÂÊÔ¹ýtortoisesvnÂð£¿ÎÒÓÃËüͨ¹ý´ú > > ÀíûÓÐÎÊÌâ¡£ > > > > > > -- > > I like python! > > My Blog: http://www.donews.net/limodou > > My Django Site: http://www.djangocn.org > > NewEdit Maillist: http://groups.google.com/group/NewEdit > > > > _______________________________________________ > > python-chinese > > Post: send python-chinese at lists.python.cn > > Subscribe: send subscribe to python-chinese-request at lists.python.cn > > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > > > > > > > > -- > > devdoer > > devdoer at gmail.com > > http://project.mytianwang.cn/cgi-bin/blog > > _______________________________________________ > > python-chinese > > Post: send python-chinese at lists.python.cn > > Subscribe: send subscribe to python-chinese-request at lists.python.cn > > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > -- devdoer devdoer at gmail.com http://project.mytianwang.cn/cgi-bin/blog -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060622/683e77da/attachment-0001.html
2006年06月22日 星期四 19:35
大家好,偶是新来的,最近刚接触python,多指教。 有一个问题,我有一些module,里面都是只有一个class,这个class是从同一个基类继承而来。这些module都记录在一个文件里。 在python里面是否能够有类似java的Class.forName的方式来构建实例,在运行是能够通过module名来生成这些实例 多谢回复 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060622/98e11a9d/attachment.html
2006年06月22日 星期四 20:22
python的内省比java的反射好用多了~
写一段比较通用的示例代码,你可以根据自己的需要简化:
#假设已知这些module的名字,首先保证这些源文件都在当前的pythonpath中
modules = ['module1', 'module2']
for module_name in modules:
#导入module,同时拿到module对象本身
mymodule = __import__(module_name)
#检查mymodule的名字空间
for name in dir(mymodule):
myclass = getattr( mymodule, name)
#得到这个名字相应的对象,判断是否是你想要的class,假设你的基类叫BaseClass
try:
if issubclass(myclass, object):
obj = myclass() #或者其他形式的构造函数,接下来想干什么都可以了
...
#try...except是为了捕获myclass不是class时的抛出的异常
except:
pass
On 6/22/06, snoop <hgli0904 at gmail.com> wrote:
>
> 大家好,偶是新来的,最近刚接触python,多指教。
> 有一个问题,我有一些module,里面都是只有一个class,这个class是从同一个基类继承而来。这些module都记录在一个文件里。
> 在python里面是否能够有类似java的Class.forName的方式来构建实例,在运行是能够通过module名来生成这些实例
>
> 多谢回复
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060622/0a284c14/attachment.html
2006年06月22日 星期四 20:29
On 6/22/06, swordsp <sparas2006 at gmail.com> wrote: > > python的内省比java的反射好用多了~ > 写一段比较通用的示例代码,你可以根据自己的需要简化: > > #假设已知这些module的名字,首先保证这些源文件都在当前的pythonpath中 > modules = ['module1', 'module2'] > > for module_name in modules: > #导入module,同时拿到module对象本身 > mymodule = __import__(module_name) > #检查mymodule的名字空间 > for name in dir(mymodule): > myclass = getattr( mymodule, name) > #得到这个名字相应的对象,判断是否是你想要的class,假设你的基类叫BaseClass > try: > if issubclass(myclass, object): > 应该是: if issubclass(myclass, BaseClass): 笔误了... obj = myclass() #或者其他形式的构造函数,接下来想干什么都可以了 > ... > #try...except是为了捕获myclass不是class时的抛出的异常 > except: > pass > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060622/1354c6f7/attachment.htm
2006年06月22日 星期四 22:58
On 6/22/06, Xiao Lei Wu <xiaoleiw at cn.ibm.com> wrote: 不错。并不是简单的http。 -- I like python! My Blog: http://www.donews.net/limodou My Django Site: http://www.djangocn.org NewEdit Maillist: http://groups.google.com/group/NewEdit
2006年06月23日 星期五 11:55
多谢swordsp的答复,并给了详细的代码讲解!!茅塞顿开
但是使用中遇到1个问题:
1、在运行issubclass(myclass, object)时,BaseClass的子类返回的仍然是false?
但是在模块前段使用from mymodule import *后,issubclass返回正确为true。不使用“from mymodules imoprt *”,但是在运行时查看sys.modules,可以看到之类以及其父类Baseclass
请问为何这样?
----- Original Message -----
From: swordsp
To: python-chinese at lists.python.cn
Sent: Thursday, June 22, 2006 8:22 PM
Subject: Re: [python-chinese] 动态构建实例
python的内省比java的反射好用多了~
写一段比较通用的示例代码,你可以根据自己的需要简化:
#假设已知这些module的名字,首先保证这些源文件都在当前的pythonpath中
modules = ['module1', 'module2']
for module_name in modules:
#导入module,同时拿到module对象本身
mymodule = __import__(module_name)
#检查mymodule的名字空间
for name in dir(mymodule):
myclass = getattr( mymodule, name)
#得到这个名字相应的对象,判断是否是你想要的class,假设你的基类叫BaseClass
try:
if issubclass(myclass, object):
obj = myclass() #或者其他形式的构造函数,接下来想干什么都可以了
...
#try...except是为了捕获myclass不是class时的抛出的异常
except:
pass
On 6/22/06, snoop <hgli0904 at gmail.com> wrote:
大家好,偶是新来的,最近刚接触python,多指教。
有一个问题,我有一些module,里面都是只有一个class,这个class是从同一个基类继承而来。这些module都记录在一个文件里。
在python里面是否能够有类似java的Class.forName的方式来构建实例,在运行是能够通过module名来生成这些实例
多谢回复
------------------------------------------------------------------------------
_______________________________________________
python-chinese
Post: send python-chinese at lists.python.cn
Subscribe: send subscribe to python-chinese-request at lists.python.cn
Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn
Detail Info: http://python.cn/mailman/listinfo/python-chinese
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060623/2c5ac3d5/attachment.htm
2006年06月23日 星期五 12:32
教育网真麻烦 在06-6-22,limodou <limodou at gmail.com> 写道: > > On 6/22/06, Xiao Lei Wu <xiaoleiw at cn.ibm.com> wrote: > > 不错。并不是简单的http。 > > -- > I like python! > My Blog: http://www.donews.net/limodou > My Django Site: http://www.djangocn.org > NewEdit Maillist: http://groups.google.com/group/NewEdit > > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > -- devdoer devdoer at gmail.com http://project.mytianwang.cn/cgi-bin/blog -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060623/7b40a82a/attachment.html
2006年06月23日 星期五 19:51
On 6/23/06, snoop <hgli0904 at gmail.com> wrote: > > 多谢swordsp的答复,并给了详细的代码讲解!!茅塞顿开 > 但是使用中遇到1个问题: > 1、在运行issubclass(myclass, object)时,BaseClass的子类返回的仍然是false? > 前一封邮件说了,这里是笔误,应该是BaseClass,object是所有new style class的基类。 但是在模块前段使用from mymodule import *后,issubclass返回正确为true。不使用"from > mymodules imoprt *",但是在运行时查看sys.modules,可以看到之类以及其父类Baseclass > > 请问为何这样? > > 我是假设你的名字空间中已经存在BaseClass的,如果之前你没有import过的话,那么此时 "from mymodule import *" 或者 "from mymodule import BaseClass" 其实就相当于 导入BaseClass这个名字(因为mymodule的名字空间中肯定有BaseClass)。 不过,其实在__import__那句之后,基类的对象已经以"mymodule.BaseClass"的名字存在于当前名字空间,写成 issubclass(myclass, mymodule.BaseClass) 就可以省掉额外的import语句了。 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060623/c6128f04/attachment.htm
Zeuux © 2025
京ICP备05028076号