1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-14 06:40:55 +00:00
Commit Graph

503 Commits

Author SHA1 Message Date
astaxie
13180c5a17 fix #249 2013-10-21 22:06:30 +08:00
slene
6ea8dd5999 fix #255 2013-10-18 17:37:34 +08:00
astaxie
2795ac6e6b update panic 2013-10-17 21:14:00 +08:00
slene
83e6079ff7 fix MinSize / MaxSize / Length should use Rune Count 2013-10-16 22:49:06 +08:00
slene
d043ebcdd3 orm support complete m2m operation api / auto load related api 2013-10-14 22:31:35 +08:00
astaxie
e11c40eee4 fix #244 2013-10-12 16:56:42 +08:00
slene
5d55ca19be orm add Exist func 2013-10-12 06:57:14 +08:00
slene
3f91dfbca3 Merge branch 'master' of github.com:astaxie/beego 2013-10-09 20:29:25 +08:00
slene
bf3830b6f0 orm add atomic set value 2013-10-09 20:28:54 +08:00
slene
278f8eb13e add ValidFormer interface, can custom valid 2013-10-09 20:26:23 +08:00
slene
658a671b79 all panic use Error 2013-10-09 11:37:16 +08:00
astaxie
bf836a2126 fix #233
thanks for the good suggestion
2013-09-30 11:30:22 +08:00
astaxie
35a136bcee fix #232 2013-09-29 15:38:28 +08:00
astaxie
aaf1490ff5 fix router 2013-09-28 23:37:05 +08:00
astaxie
a62ed10ab3 add supoort AppController
http://play.golang.org/p/MZptHZeYUx
2013-09-28 23:30:36 +08:00
astaxie
e79d756d06 #230 2013-09-28 22:23:00 +08:00
astaxie
904b37032c Merge pull request #227 from sdjc/patch-4
Update config.go
2013-09-28 07:09:59 -07:00
astaxie
8a37c30f35 fix #226 2013-09-28 21:45:52 +08:00
astaxie
c4edc13413 fix #230 2013-09-28 21:36:36 +08:00
sdjc
9ddbab59bb Update config.go 2013-09-27 08:37:17 +08:00
astaxie
1eb87c5c59 fix #225 2013-09-26 22:31:39 +08:00
astaxie
fb1439dfb9 Merge pull request #224 from smithfox/patch-1
fix #217
2013-09-26 06:09:03 -07:00
astaxie
d393c329c3 protect parts's len 2013-09-26 21:06:37 +08:00
smithfox
bed0fe2218 fix #217 2013-09-26 18:33:01 +08:00
astaxie
02c2e16253 Strengthens the session's function 2013-09-26 18:07:00 +08:00
astaxie
59a67720b4 xsrf's defaut time set to 0 & fix ts not use 2013-09-25 23:07:54 +08:00
astaxie
93e1206d60 xsrf change to randstr and cookie set to security cookie 2013-09-25 23:05:53 +08:00
astaxie
2249d745d9 session support secure set 2013-09-25 23:05:53 +08:00
astaxie
f9ed74a9b2 Merge pull request #219 from markstory/readme-fixes
Fix typos in the readme file.
2013-09-25 06:42:15 -07:00
Mark Story
65ec2db4e8 Fix typos in the readme file. 2013-09-25 09:41:11 -04:00
slene
001e33f310 fix #213 2013-09-22 19:20:40 +08:00
slene
09aca2528a orm RegisterDataBase remove default maxIdle/maxConn 2013-09-22 17:51:37 +08:00
astaxie
beecc5072e fix #209 2013-09-22 14:35:01 +08:00
astaxie
797bd98269 fix #210 2013-09-22 14:32:18 +08:00
astaxie
4a3d32dc1f support auto get session from input fix #211 2013-09-22 11:43:22 +08:00
astaxie
048be29fcd add w.started fix #208 2013-09-22 11:17:18 +08:00
astaxie
4ce584c5a6 fix #201 2013-09-22 11:12:37 +08:00
astaxie
3c1d23bc62 #207 2013-09-19 23:40:55 +08:00
astaxie
95307a3d78 miss filter * 2013-09-19 23:14:47 +08:00
astaxie
a85d91b4bd fix #206 2013-09-19 23:04:05 +08:00
slene
a616087cde orm now can specify engine for mysql. add api SetMaxIdleConns/SetMaxOpenConns(go 1.2) 2013-09-16 09:50:32 +08:00
slene
198d6320dd fix xsrf cookie path should use root 2013-09-13 22:42:15 +08:00
slene
1596aa7a34 orm support use any numeric type set QuerySeter.Limit value 2013-09-13 18:06:44 +08:00
slene
8e8d39d3cb fix memory cache Put method should set value when key exist. 2013-09-13 18:04:22 +08:00
astaxie
42958ddd41 update version from 0.9.0 to 0.9.9 2013-09-13 17:45:26 +08:00
astaxie
0476da503e improve template 2013-09-13 17:41:31 +08:00
astaxie
943fe971f1 support template 2013-09-13 13:57:40 +08:00
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