从两个django信号只起最后一个

时间:2015-07-23 18:32:07

标签: python django python-2.7

我为loggin制作了两个信号,但只对最后一个有效。如果我切换他们仍然工作最后。有没有办法关闭这个装饰器或类似的东西?

+--------+------------+---------------------+
| userid | Qtext      | Atext               |
+--------+------------+---------------------+
|      1 | question 1 | question 1 answer 2 |
|      1 | question 2 | question 1 answer 1 |
+--------+------------+---------------------+

1 个答案:

答案 0 :(得分:1)

尝试将功能名称更改为import java.awt.Rectangle import com.vividsolutions.jts.geom.Envelope import org.geotools.coverage.grid.{GeneralGridEnvelope, GridGeometry2D} import org.geotools.geometry.jts.ReferencedEnvelope import org.geotools.referencing.crs.DefaultGeographicCRS.WGS84 val minX = -78.523 val minY = 38.010 val maxX = -78.451 val maxY = 38.069 val width = 400 val height = 300 val bounds = new ReferencedEnvelope(new Envelope(minX, maxX, minY, maxY), WGS84) val rect = new Rectangle(0, 0, width, height) val ggEnvelope = new GeneralGridEnvelope(rect, bounds.getDimension) val gm = new GridGeometry2D(ggEnvelope, bounds) ////////////////// This should be [0, 299] but is [-1, 299]////////////////////////////// gm.worldToGrid(bounds.getLowerCorner) add_score_student