1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-30 20:25:46 +00:00
Commit Graph

2006 Commits

Author SHA1 Message Date
astaxie
9d84969bf6 fix #153
已经支持了任意定义变量的路由形式,具体的使用请参考:

func TestManyRoute(t *testing.T) {

	r, _ := http.NewRequest("GET", "/beego32-12.html", nil)
	w := httptest.NewRecorder()

	handler := NewControllerRegistor()
	handler.Add("/beego:id([0-9]+)-:page([0-9]+).html", &TestController{})
	handler.ServeHTTP(w, r)

	id := r.URL.Query().Get(":id")
	page := r.URL.Query().Get(":page")

	if id != "32" {
		t.Errorf("url param set to [%s]; want [%s]", id, "32")
	}
	if page != "12" {
		t.Errorf("url param set to [%s]; want [%s]", page, "12")
	}
}
2013-09-13 11:22:14 +08:00
slene
3745bb7279 orm.Read support specify condition fields, orm.Update and QuerySeter All/One support omit fields. 2013-09-12 19:04:39 +08:00
astaxie
55fe3ba52f update tempalte's regexp 2013-09-12 18:20:29 +08:00
astaxie
de2dd6e070 update template's testcase 2013-09-12 17:32:11 +08:00
astaxie
ffb347a2bb support nest template 2013-09-12 17:20:32 +08:00
astaxie
19862725f7 support template 2013-09-12 15:24:08 +08:00
astaxie
f502f84423 fix #189 2013-09-12 13:44:24 +08:00
slene
e788fb7239 add an DateParse function, parse datestring to time.Time use php date format 2013-09-11 23:47:01 +08:00
astaxie
72f5961dd8 delete docs move to github.com/beego/beedoc 2013-09-11 18:04:10 +08:00
astaxie
9f6b803a10 update middleware & beego's error 2013-09-11 17:00:39 +08:00
astaxie
0da2059f79 update info 2013-09-11 16:31:18 +08:00
astaxie
e904d26e08 modify middleware 2013-09-11 16:23:41 +08:00
astaxie
1ff0a31d3f add router test 2013-09-11 15:49:12 +08:00
astaxie
e7f08946d1 improve the performance 2013-09-11 15:16:09 +08:00
slene
ea9c2cebfd validation add more info to ValidationError, and put all messages tmpl to a map 2013-09-10 21:51:25 +08:00
astaxie
02a03cec33 add logs readme 2013-09-10 18:44:29 +08:00
astaxie
31fbd52462 add chat example 2013-09-10 18:38:40 +08:00
astaxie
a88750d2b3 support websocket 2013-09-10 17:56:06 +08:00
astaxie
da91565354 add iswebsocket method 2013-09-10 17:02:56 +08:00
astaxie
44f5c208b6 update example 2013-09-10 15:08:32 +08:00
astaxie
83e26fdc9b fix config bug 2013-09-10 14:47:48 +08:00
astaxie
4a329db792 Merge pull request #187 from Unknwon/master
compatiable for old version
2013-09-09 16:47:23 -07:00
Unknown
1f8022d4ad compatiable for old version 2013-09-09 16:43:48 -04:00
astaxie
63da329468 go on modify api 2013-09-10 00:17:49 +08:00
astaxie
acadea6afa update xml 2013-09-10 00:02:22 +08:00
astaxie
bd61dd9ffc change a log about new version 2013-09-10 00:00:18 +08:00
astaxie
5b9ae54441 update input 2013-09-10 00:00:17 +08:00
slene
41dd6e580d orm 1. complete QueryRow/QueryRows api 2. QuerySeter.All support *[]Type and *[]*Type 2013-09-09 22:33:41 +08:00
slene
22d2de9fc7 orm fix 1. support Limit when use QuerySeter.One 2. return Local time 2013-09-06 19:03:47 +08:00
slene
6064a7ab2a orm RawSeter readValues set nil when get NULL 2013-08-30 12:38:32 +08:00
slene
8f5ca303b5 orm fix when use uint as pk 2013-08-30 12:32:05 +08:00
astaxie
dc8f932009 update doc's link 2013-08-28 17:09:01 +08:00
astaxie
4922237847 sleep some time for send mail 2013-08-28 15:55:34 +08:00
astaxie
2424618163 delete default console & add bench test 2013-08-28 15:48:48 +08:00
astaxie
b96f7e2ef2 Merge pull request #174 from Xelom/FixBra
Changed ObejctController to ObjectController in beeapi
2013-08-27 18:54:52 -07:00
Arıl Bozoluk
cde38fbe1a Changed ObejctController to ObjectController 2013-08-27 20:05:35 +03:00
Arıl Bozoluk
56a1603e1f Changed ObejctController to ObjectController 2013-08-27 20:05:15 +03:00
astaxie
f92973794e finish logs module 2013-08-27 23:49:04 +08:00
slene
49bbca0ce3 orm Improve syncdb 2013-08-27 12:33:27 +08:00
slene
6686d9235c orm fix create index 2013-08-25 13:50:50 +08:00
slene
7c72b2dca7 orm fix syncdb 2013-08-25 11:35:12 +08:00
slene
4c061feddf orm support custom multi unique / index 2013-08-22 21:19:58 +08:00
slene
02d2990576 orm all docs wiil update to beego.me 2013-08-22 18:35:35 +08:00
slene
94f7ba8bdf orm add uint uint32 uint64 auto increment support 2013-08-22 18:35:26 +08:00
fanngyuan
7d7c9825e9 change to asta 2013-08-22 14:27:23 +08:00
astaxie
dee542df42 fix yaml 2013-08-22 13:46:22 +08:00
astaxie
f2b4c29f83 Merge pull request #168 from fanngyuan/master
添加用于测试的request,后面我会在bee工具里添加一个单元测试的例子。
2013-08-21 21:05:39 -07:00
astaxie
28652c5d21 Merge pull request #167 from zxcvdavid/patch-1
file name fixed
2013-08-21 21:05:07 -07:00
fanngyuan
b104bfeb93 remove comment 2013-08-22 11:05:54 +08:00
Demon
8af4ba8980 file name fixed
file name fixed :P
2013-08-22 09:15:45 +08:00